smartwebpoint 0 Posted July 20, 2018 Report Share Posted July 20, 2018 Hi, I am trying to create a bot that can auto fill the national geographic form at ( https://members.nationalgeographic.com/account/join). However, I am not able to select the city field. I have tried inserting a value from drop down list using a file, but it expects a value from drop down list to be clicked. The bot needs to read 3-4 characters value (from a file) into city field, once the drop down list with matching results appears , then select the random value from that generated drop down list. Will appreciate if anyone can help with this. Regards. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 20, 2018 Report Share Posted July 20, 2018 Here you go: navigate("https://members.nationalgeographic.com/account/join","Wait") wait(2) type text(<name="locationReference">,"new y","Standard") wait for element(<class="tt-suggestion">,"","Appear") wait(1) clear list(%dropdownItems) add list to list(%dropdownItems,$scrape attribute(<class="tt-suggestion">,"outerhtml"),"Delete","Global") click($element offset(<class="tt-suggestion">,$rand(0,$subtract($list total(%dropdownItems),1))),"Left Click","No") Quote Link to post Share on other sites
smartwebpoint 0 Posted July 23, 2018 Author Report Share Posted July 23, 2018 Thanks a lot. It worked!! 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.