beena 0 Posted April 8, 2010 Report Share Posted April 8, 2010 Hi Guys, I've owned UBot for about 3 months now, but only really started using it in anger about a month ago. It is a really kewl piece of kit... but I guess you already knew that. Anyway, I've been having some major issues with getting my Javascript Alerts to fire. Sometimes they will fire and at other times they won't. More frustratingly, even when I got them to fire consistently in the studio - that was no guarantee that the compiled Bot would fire as expected. I've trawled the forums... and even Aaron admitted to not knowing what the proble (let alone solution) was. Well through trial and error, I think I might havecracked it. Touch wood, but so far, I've been able to get the Alerts to fire every single time, as long as I navigate to Google (could be any other reliable site, I guess) and have a 'Stop Script' command after the Alert. This is a major breakthrough for me, and I hope it helps someone else. BTW... Did I say this Forum rocks? Quote Link to post Share on other sites
alcr 135 Posted April 8, 2010 Report Share Posted April 8, 2010 Yeah I'm always using a pause script after firing the alert. Doesn't feel like it should impact though - but I've never had any problems with it not firing. And thanks! Quote Link to post Share on other sites
webautomationlab 21 Posted April 8, 2010 Report Share Posted April 8, 2010 You cannot fire an alert if you are on a page like about:blank. I brought this up with Seth several months ago. IIRC, you must be nav'd to a page that has javascript on it in order to trigger the JS stuff in UBot. I know, because I build offline bots with UBot and I have to nav to something like Google if I want the string library to fire. Quote Link to post Share on other sites
beena 0 Posted April 12, 2010 Author Report Share Posted April 12, 2010 You are spot on. I think that was part of the problem I was having. If I tried to fire an alert early on in the script when the page was still blank it never fired. But I noticed that if I navigated to Google or another page before running the script it would fire. I put 2 and 2 together to get 5... Also, it seems that sometimes after an alert is fired, the script doesn't shutdown properly, sso next time you run script it won't fire. Hence the addition of 'stop script'.You cannot fire an alert if you are on a page like about:blank. I brought this up with Seth several months ago. IIRC, you must be nav'd to a page that has javascript on it in order to trigger the JS stuff in UBot. I know, because I build offline bots with UBot and I have to nav to something like Google if I want the string library to fire. 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.