Jump to content
UBot Underground

National Geographic Form Auto Fill


Recommended Posts

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.
Link to post
Share on other sites

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")
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...