1.用Imacros 的兄弟們,我剛開始學習弄這個玩意。 自己用excel寫了個csv文件 k1.csv然後放在\iMacros\Datasources 目錄下。' b4 i# U# i% z3 Z e# e2 e
可是運行的時候一直是 RuntimeError: Data source file does not exist, line: 3 (Error code: -930)0 j2 v. Z1 [2 ]7 \
# X7 p- T) S9 \) [上官網和百度 花了3個小時 還是沒有搞定。
. K; b5 h, b" `8 Z. a( P/ `
2 b3 l6 `0 F G, o那位兄弟幫我說說原因。7 V/ \0 c0 T) D# V
% ^1 X2 `- ^0 H0 ?& D* [下面是我的Imacros 的宏
V4 O- E1 l7 {( C( a
* i, S) J% J: D0 }- w) p& RVERSION BUILD=7401110 RECORDER=FX
! H" E4 e% A9 ^0 c4 bTAB T=1
+ R1 [8 T3 c4 L& \1 S) g; O. iSET !DATASOURCE k1.csv3 F# W3 z7 P" O
SET !DATASOURCE_COLUMNS 11
" H# H! y I V1 m: q; tSET !LOOP 2
3 f) X2 V4 p) w: K* C4 A8 w2 \& C; f/ L$ S6 U
URL GOTO=https://edit.yahoo.com/registration?.intl=us&.lang=en-US&.pd=ym_ver%253D0%2526c%253D%2526ivt%253D%2526sg%253D&new=1&.done=http%3A//mail.yahoo.com&.src=ym&.v=0&.u=7m0q5vd7ihs1n&partner=&.partner=&pkg=&stepid=&.p=&promo=&.last=8 l* E' G+ I( B0 l9 m7 o
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:firstname CONTENT={{!COL1}}% _% ]0 A8 Y! V$ p
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:secondname CONTENT={{!COL2}} P0 D2 B$ B/ P3 W& x/ G! A
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:gender CONTENT=%m0 H9 C9 i/ p2 C7 r X* R4 Q4 N0 d
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:mm CONTENT={{!COL4}}
3 J3 Z& \+ Y- g% B2 E& tTAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:dd CONTENT={{!COL5}}
( v0 b# u2 J/ ]/ p p! s, tTAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:yyyy CONTENT={{!COL6}}& k0 O& y: b8 \2 O- m9 @5 \% I
TAG POS=1 TYPE=SELECT FORM=NAME:regFormBody ATTR=ID:country CONTENT=%us
0 d) ^ |2 j& }6 P ~! hTAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regFormBody ATTR=ID:postalcode CONTENT={{!COL8}} |
|