I am also receiving the TimeOutException but am using solution #4 from
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups so do not have
anywhere to place the sleep.
Segment of my script;
ie.button(:class, button_checkout).click_no_wait
hwnd = ie.enabled_popup(5)
if (hwnd) #yeah! a popup
Hi sir,
thanks a lot for the solution it worked for me, since a week i had
problem with handling popup. thankyou very much.
On Mar 3, 8:52 pm, Jim Matthews jim_m...@swbell.net wrote:
Here are the steps to reproduct the problem. First bring up unittests
\html\popups1.html in IE.
This solution worked fine for popup raised when a button is clicked,
but it is not working for popup raised when clicked on a link, please
suggest some solution
On Mar 3, 8:52 pm, Jim Matthews jim_m...@swbell.net wrote:
Here are the steps to reproduct the problem. First bring up unittests
sir,
I used the method you suggested but, it is not working i've to click
the popup button manually to go further testing the application. I'm
putting the code i'm using for the handling popup below, please
suggest me corrections that are to be made
require 'Watir'
require 'test/unit'
require
I have figured a few things out with the click_no_wait problem. This
potentially affects any program that uses the Ruby system call,
which click_no_wait does. There is also appears to be a problem with
Watir#wait_until, that is used by enabled_popup, which is used to
check for the presence of a
Here are the steps to reproduct the problem. First bring up unittests
\html\popups1.html in IE.
\Ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\unittests\html\popups1.html
Next run this script. I have extra puts in it to try to figure out
what is going on. They can be remvoed or commented out.
Jim