martinsuede 0 Posted December 10, 2016 Report Share Posted December 10, 2016 Part of my code below: loop while($comparison($plugin function("ExBrowser.dll", "$ExBrowser Return Element Count(Xpath)", "x://dd[contains(text(),$list item(%allauctionids,$subtract($list total(%allauctionids),1)))]"),"= Equals",0)) { add list to list(%allorders,$plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements Attribute", "x://div[contains(@class,\"myt-list2__counterpart-address\")]/a[contains(@href,\"purchaseOrderId\")]", "href"),"Delete","Global") increment(#orderlinkloop) plugin command("ExBrowser.dll", "ExBrowser Navigate", "http://www.tradera.com/my/sold?page={#orderlinkloop}") } There seems to be some issue with hot the xpath expression and the ubot codes integrate, i might have missed some chars or something that are supposed to be there. Just cant figure it out. Anyone know how to refer to vars and code inside of the xpath expression like im trying to do above? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 10, 2016 Report Share Posted December 10, 2016 Try loop while($comparison($plugin function("ExBrowser.dll", "$ExBrowser Return Element Count(Xpath)", "x://dd[contains(text(),{$list item(%allauctionids,$subtract($list total(%allauctionids),1))}]"),"= Equals",0)) { add list to list(%allorders,$plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements Attribute", "x://div[contains(@class,\"myt-list2__counterpart-address\")]/a[contains(@href,\"purchaseOrderId\")]", "href"),"Delete","Global") increment(#orderlinkloop) plugin command("ExBrowser.dll", "ExBrowser Navigate", "http://www.tradera.com/my/sold?page={#orderlinkloop}") } 2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.