uRobot 1 Posted July 3, 2016 Report Share Posted July 3, 2016 add list to list(%totalElements,$plugin function("ExBrowser.dll", "$ExBrowser Scrape List Elements Attribute", "x://button[@title=\"More options\"]", ""),"Don\'t Delete","Global")alert($list total(%totalElements)) when I manually "run node" on the first line... it comes up with the correct %totalElements (32 total) but when I click "RUN" on the entire script... the alert comes up with 200+ %totalElements I also have tested the xpath and I come up with 32 totalElements as well on XPATH PRO BUILDER as well... it just mess up when I start the entire thing... Quote Link to post Share on other sites
pftg4 102 Posted July 3, 2016 Report Share Posted July 3, 2016 your clearing the list each time right???? Quote Link to post Share on other sites
stanf 43 Posted July 3, 2016 Report Share Posted July 3, 2016 without knowing the page you are working on.my first move would be change the don't delete command in your add list to list to delete.just to make sure you aren't duplicating things Quote Link to post Share on other sites
uRobot 1 Posted July 3, 2016 Author Report Share Posted July 3, 2016 your clearing the list each time right???? I do not have the clear command on each run yet... but before I start running the entire script... I cleared the values of all variables... manually.. without knowing the page you are working on.my first move would be change the don't delete command in your add list to list to delete.just to make sure you aren't duplicating things I had to do don't delete... because the "MORE OPTIONS" is a duplicate element... here's the screenshot of the button:http://image.prntscr.com/image/ee6653607e384af3a59b162ca3c2a739.png if I change the don't delete to delete.. it will only return 1 element instead of 32 elements... Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 4, 2016 Report Share Posted July 4, 2016 ExBrowser actually has a function built in to count the elements, try: set(#count,$plugin function("ExBrowser.dll", "$ExBrowser Return Element Count(Xpath)", "x://button[@title=\"More options\"]"),"Global") 1 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.