Home >  > iMacros进阶技巧

iMacros进阶技巧

0

1、在iMacros中引用两个源文件的代码示范:

VERSION BUILD=6650406 RECORDER=FX
SET !ERRORIGNORE YES
SET !DATASOURCE source1.csv
SET !DATASOURCE_COLUMNS 1
TAB T=1
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=http://www.google.com/webhp?hl=en
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG&&VALUE:GoogleSearch
WAIT SECONDS=15
SET !DATASOURCE source2.csv
URL GOTO=http://www.google.com/webhp?hl=en
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG&&VALUE:GoogleSearch

2、输入验证码,将验证码的值赋给 !VAR,然后调用。

PROMPT Pleaseenterthecaptcha. !VAR1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:createaccount ATTR=ID:newaccountcaptcha CONTENT={{!var1}}

发表评论

*

*