Jump to content
UBot Underground

Troublesome dropdown...


Recommended Posts

I've got a dropdown that seems to be executing some javascript or *something* when clicked manually, and UBot is not replicating the same behavior as a human click. Please see the video if you have any ideas on how to beat this...

 

http://screencast.com/t/ZWZkNjk0

 

Thanks!

 

Jonathan

Link to post
Share on other sites

I've got a dropdown that seems to be executing some javascript or *something* when clicked manually, and UBot is not replicating the same behavior as a human click. Please see the video if you have any ideas on how to beat this...

 

http://screencast.com/t/ZWZkNjk0

 

Thanks!

 

Jonathan

 

Wild stab in the dark... if there is a keypress that does the same as a mouse click you could try selecting it and sending keys to it rather than using click chosen?

 

I've not come across a box like that so this really is just a guess as to how I'd try to work around it.

 

Andy

Link to post
Share on other sites

Sadly there's no keyboard commands at all for this website... all has to be done via mouse. Thanks for the suggestion though. Any other takers??

 

This is probably the last major obstacle I have to getting this bot to do everything I need it to. So close and yet...

 

Jonathan

Link to post
Share on other sites

OMG! You just gave me an idea... I tried selecting a field to the left of the one I want, then hitting TAB a few times to get to it, then hitting the first letter of the option I want and VOILA it worked!!

 

Only problem now is, how the heck do you send a TAB keystroke?? There doesn't appear to be a function for that...??

 

Jonathan

Link to post
Share on other sites

GOT IT!!!!

 

All I had to do was select the field as I already was, and send the "t" key - being the first letter of the option I wanted. I really didn't think that would also execute the javascript behind the scenes but it does. W00T!

 

Thanks for pointing me in the right direction... :)

 

Jonathan

Link to post
Share on other sites

Yes it does and it doesn't. I hadn't thought to try that trick because this particular field has some javascript hidden behind it, and I didn't think that selecting via keystrokes like this would also fire the JS... but it does. Had the JS not been part of the equation then this would have been the solution of choice from the get-go. :)

 

Thanks again!

 

Jonathan

Link to post
Share on other sites

Cool. Just FYI, my skills are very limited here, so I just try and keep up with issues others are having and try to solve them any way I can to help with my own learning process. Most of my attempts are truly just trial and error guesses, so don't be upset WHEN I'm way off! lol

 

I know zero, nada, zip, zilch about js, and have been taking tutorials to try and learn it. Therefore when it becomes part of the issue, I am totally lost! But thanks to people like you (and several others)on this forum, I am learning new things everyday, so maybe sometime soon I will actually have a solution for someone! lol Have a great day!

 

John

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...