DjProg 3 Posted October 23, 2010 Report Share Posted October 23, 2010 Hello all, Do you know of a way to "catch" a popup event ? My script is running accross multiple websites and sometimes there is a popup showing up because the description was too short, or the name was too short, whatsoever . Is there a way to create an IF (popup event occurs) THEN pause ? Cheers, Quote Link to post Share on other sites
JohnB 255 Posted October 23, 2010 Report Share Posted October 23, 2010 Your bot is continuing with a live popup? Quote Link to post Share on other sites
DjProg 3 Posted October 24, 2010 Author Report Share Posted October 24, 2010 Your bot is continuing with a live popup? Hi JohnB, Sorry I wasn't clear enough :- No my Bot stops when the popup is there- But if I click the Popup button "OK" then it will continue the script What I need is :- The popup from the website comes- I click the button of the popup (Or I do it with Ubot but I don't know how since this popup will rarely comes, probably 10% of the time)- Ubot pauses so I can change the form according to what the popup said (description too short, whatsoever) So actually I would like Ubot to "know" that there has been a popup to change the workflow in this case. Hope it's clear now ! Cheers, Quote Link to post Share on other sites
DjProg 3 Posted November 4, 2010 Author Report Share Posted November 4, 2010 Hi Guys, Sorry to update this thread but I really need a solution and couldn't find any. The problem is with the following workflow :- The bot fill a form- The bot click a "Submit" button- The website opens a popup displaying an error message- The bot stops due to the popup- But if I click on the "OK" button of the popup the bot will continue (and I can't fix what the popup mentions as "invalid" data entry) So what I need is a way to monitor, during the bot execution, if a popup appears / is clicked by me, and in this case add a "pause" so I can make the change. Any idea how I could do this ? Any way to "detect" something pops up ? Thanx a lot, Cheers, Quote Link to post Share on other sites
JohnB 255 Posted November 4, 2010 Report Share Posted November 4, 2010 I am not sure if this would work, but it may be worth a try. At the point where the popup occurs throw in: If--->Click Dialog Button Then--->Pause Script You would be telling the bot to close the dialog AND pause after doing so...The drawback is you won't have any time to read the popup. Quote Link to post Share on other sites
IRobot 43 Posted November 4, 2010 Report Share Posted November 4, 2010 DjProg, Have you tried:1. the Close All Dialogs command?or2. Ubot > File > Preferences > Block popups? If still not working, do you have an example URL? 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.