2016-11-30 34 views
0

Casperjs快速啓動谷歌搜索代碼:目標JSP在casperjs形式

this.fill('form[action="/search"]', { q: 'google search' }, true); 

我如何瞄準這一形式casperjs?

enter image description here

回答

1

您需要使用fillSelectors()功能:

this.fillSelectors('form#frm_one', {q: 'google search'}, true);