In these cases I execute command in another thread. If anybody suggest
another usefull method I will be happy :) . Try this:

...
thr = Thread.new {
   ie.goto  "javascript:OpenPage();"
}
sleep(3) #time to wait of javascript popup
thr.kill

puts ie.modal_dialog.html # now must gets here

On 10 дек, 06:42, Sean <[EMAIL PROTECTED]> wrote:
> Hello All --
>
> I'm trying to launch a modal dialog using the following code. I
> believe I have to tell the goto to not wait for the page to finish
> loading but I cant find out how.  if it was a button, I could use
> click_no_wait. Is there a goto_no_wait or a way I can tell Watir to
> not wait.  Thanks in advance.
>
> ie = Watir::IE.new
>
> loginURL = "login.aspx"
> puts "Opening login page (#{loginURL}) ... "
> ie.goto loginURL
> Watir::Waiter::wait_until {ie.text_field(:name, "txtUser").exists?}
>
> ie.text_field(:name, "txtUser").set username
> ie.text_field(:name, "txtPassword").set password
>
> ie.button(:name, "cmdLogin").click
>
> ie.goto  "javascript:OpenPage();"
>
> puts ie.modal_dialog.html # never gets here
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to