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/