iMacro - Using XPATH in TAG Command - Wrong Format of TAG Command -
i getting wrong format of tag command @ line 4" of macro. strange thing when remove variable , run tag line separate macro, works fine. removed variable , put in 1 in place of still same error in displayed. can please help? have searched everywhere answer.
const l = "\n"; var pc; var bret; pc = 1; bret = 1; while (pc < 16 && bret > 0) { iimset("var1",pc) bret = iimplaycode("tag xpath=/html/body/form/div[3]/div[7]/div[1]/div[2]/div[3]/div[{{!var1}}]/div/div/div[1]/div[2]/div[1]/a" + l + "wait seconds=3" + l + "tag pos=1 type=div attr=id:navlink extract=txt" + l + "tag pos=1 type=span attr=id:lbltitle extract:txt" + l + "tag pos=1 type=span attr=id:lblprice extract:txt" + l + "screenshot type=page folder=* file="+pc + l + "saveas type=extract folder=* file=wassup.csv" + l + "back"); pc++; }
i figured out on own. happening since on line 4 of iimplaycode, extract:txt mentioned whereas should extract=txt.
const l = "\n"; var pc; var bret; pc = 1; bret = 1; while (pc < 16 && bret > 0) { iimset("var1",pc); bret = iimplaycode("tag xpath=/html/body/form/div[3]/div[7]/div[1]/div[2]/div[3]/div[{{!var1}}]/div/div/div[1]/div[2]/div[1]/a" + l + "wait seconds=3" + l + "tag pos=1 type=div attr=id:navlink extract=txt" + l + "tag pos=1 type=span attr=id:lbltitle extract=txt" + l + "tag pos=1 type=span attr=id:lblprice extract=txt" + l + "screenshot type=page folder=* file="+pc + l + "saveas type=extract folder=* file=wassup.csv" + l + "back"); pc++; }
Comments
Post a Comment