Hi,
I am
trying to use the following to click on a form submit button, then to hit ENTER
once the security alert box pops up:
ie.image(:src, /submit/).click
ie.send_keys('{ENTER}')
When I do
this, it seems that ie is waiting for the browser to be ready and the send_keys
command doesn't execute. So, I tried doing this to force the browser
ready:
ie.image(:src,
/submit/).getOLEObject.click
ie.send_keys('{ENTER}')
When I do this, the security alert box doesn't pop up
fast enough, so by the time it does appear, the send_keys command has already
executed. This works for on of my test pages that has a security box alert
coming up instantly, but for the page I am having trouble with, has the security
popup appearing after 2-3 seconds after hitting the submit button. Does
anybody have any suggestions as to clearing this alert box? (I've used
Autoit, and it works, but I would like to have my script run with just watir and
ruby installed).
I also tried this, but it also makes the browser wait
for a very long time:
ie.image(:src,
/submit/).getOLEObject.click
ie.wait(2)
ie.send_keys('{ENTER}')
Thanks for any
help...
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
