wait_for_pop_up got frozen

17 views
Skip to first unread message

Lukas Kubicek

unread,
Jun 9, 2011, 5:16:54 AM6/9/11
to selenium-ruby
Hi,
I'm trying to open new popup window and in this new popup click on
link.. But wait_for_pop_up not working and always will fail on timeout

@selenium.click("xpath=(//td[contains(., '1a. Order approval
notification to Customer')]/../td[7]/a)");
@selenium.wait_for_pop_up("test", "10000")
@selenium.select_window("test")


running always finish on second step and after 10sec. will timed out

Do you have any idea?

Thank youo
Lukas

Steve Hill

unread,
Jun 10, 2011, 1:02:58 PM6/10/11
to selenium-ruby
Does the pop-up work when link is clicked? Can you see the pop-up
when you click? Can you increase the wait time to say 20sec?

Mike Schaufelberger

unread,
Jun 11, 2011, 12:40:18 PM6/11/11
to seleni...@googlegroups.com
Try a different xpath for step 1. Often times I find selenium actually fails on the step prior to the failed step.



--
You received this message because you are subscribed to the Google Groups "selenium-ruby" group.
To post to this group, send email to seleni...@googlegroups.com
To unsubscribe from this group, send email to selenium-rub...@googlegroups.com
For Selenium-Ruby project, visit http://seleniumhq.org/projects/ruby/
For Selenium related questions like Core, Server, and RC client in other language, please go to http://clearspace.openqa.org/community/selenium

Lukas Kubicek

unread,
Jun 13, 2011, 1:31:32 AM6/13/11
to selenium-ruby
Yes it works when I click on that link.. I also tried to change
timeout :-( ..
Now I tried to change xpath but still same..

I did little work around and it works .. but still doesn't understand
why "wait_for_pop_up" fail..

Here is the work around

@selenium.click("xpath=(//td[contains(., '3a-1. Shipping
notification to external carrier')]/../td[7]/a)");
sleep TIMEl
allWin = @selenium.get_all_window_names() # will get all open
windows
@selenium.select_window(allWin[(allWin.size)-1]) # select new
popup


Thank you
Lukas



On 11 čvn, 18:40, Mike Schaufelberger <mike.schaufelber...@gmail.com>
wrote:
> Try a different xpath for step 1. Often times I find selenium actually fails
> on the step prior to the failed step.
>
>
>
>
>
>
>
> On Fri, Jun 10, 2011 at 1:02 PM, Steve Hill <hill...@gmail.com> wrote:
> > Does the pop-up work when link is clicked?   Can you see the pop-up
> > when you click?   Can you increase the wait time to say 20sec?
>
> > On Jun 9, 4:16 am, Lukas Kubicek <lukas.kubicek.w...@gmail.com> wrote:
> > > Hi,
> > > I'm trying to open new popup window and in this new popup click on
> > > link.. But wait_for_pop_up not working and always will fail on timeout
>
> > > @selenium.click("xpath=(//td[contains(., '1a. Order approval
> > > notification to Customer')]/../td[7]/a)");
> > > @selenium.wait_for_pop_up("test", "10000")
> > > @selenium.select_window("test")
>
> > > running always finish on second step and after 10sec. will timed out
>
> > > Do you have any idea?
>
> > > Thank youo
> > > Lukas
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "selenium-ruby" group.
> > To post to this group, send email to seleni...@googlegroups.com
> > To unsubscribe from this group, send email to
> > selenium-rub...@googlegroups.com
> > For Selenium-Ruby project, visithttp://seleniumhq.org/projects/ruby/

Darren Claughton

unread,
Jun 17, 2011, 9:28:31 AM6/17/11
to seleni...@googlegroups.com
This should also work
@selenium.wait_for_pop_up @selenium.get_all_window_ids.last, "10000"
@selenium.select_window @selenium.get_all_window_ids.last

For Selenium-Ruby project, visit http://seleniumhq.org/projects/ruby/
Reply all
Reply to author
Forward
0 new messages