selenium doesnt see new window
+4
selftechy
gaurang033
ejaenv
Jenka156
8 posters
- Jenka156
- Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia
selenium doesnt see new window
Mon Aug 29, 2011 2:59 pm
Hello! i have a problem.
New page opens when user click on button. But this page opens in new tab and selenium doesnt see it... I made firefox profile without tabs. All pages opens in new windows, but selenium still doesnt see it.
I use getAllWindowTitles() and return in output window result of this method, but there is only one window.
what's the problem? maybe there are another ways of solving this problem?
New page opens when user click on button. But this page opens in new tab and selenium doesnt see it... I made firefox profile without tabs. All pages opens in new windows, but selenium still doesnt see it.
I use getAllWindowTitles() and return in output window result of this method, but there is only one window.
what's the problem? maybe there are another ways of solving this problem?
- Jenka156
- Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia
Re: selenium doesnt see new window
Mon Aug 29, 2011 7:31 pm
whether it can be associated with a button's link?
it looks like:
a href="/user/unionmessage/11" target="t11" onclick="makeTaskRead(11);"
target is not standart
it looks like:
a href="/user/unionmessage/11" target="t11" onclick="makeTaskRead(11);"
target is not standart
- Jenka156
- Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia
Re: selenium doesnt see new window
Wed Aug 31, 2011 6:19 pm
does anyone know how to solve this?..
- ejaenv
- Posts : 5
Join date : 2011-08-26
Re: selenium doesnt see new window
Sat Sep 03, 2011 1:16 pm
have you tried selectWindow | name= ?
- gaurang033Active particpant
- Posts : 13
Join date : 2011-03-19
Re: selenium doesnt see new window
Sun Sep 04, 2011 8:52 pm
go through following blogspot it might help you
Handle window in selenium
Handle window in selenium
- Jenka156
- Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia
Re: selenium doesnt see new window
Tue Sep 06, 2011 3:16 pm
thanks, but this blogspot didnt help me. tried all ways.
so I tried to use functions getAllWindowNames(), getAllWindowTitles() and getAllWindowIds()
They all returns array with only one window. I dont know why selenium cant see this window. maybe it's not window?
so I tried to use functions getAllWindowNames(), getAllWindowTitles() and getAllWindowIds()
They all returns array with only one window. I dont know why selenium cant see this window. maybe it's not window?
- ejaenv
- Posts : 5
Join date : 2011-08-26
Re: selenium doesnt see new window
Tue Sep 06, 2011 4:49 pm
Jenka156, it's extrange. Which is the opened window's name ? You can see it in the browser.
again, have you tried selectWindow | name="windows name" ?
again, have you tried selectWindow | name="windows name" ?
- Jenka156
- Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia
Re: selenium doesnt see new window
Tue Sep 06, 2011 6:09 pm
yes, i tried selectWindow | name="windows name"
name of window in browser is: "Task:with time"
(i also get it from title tag in THML code)
I tried to write: selectWindow(name="Task:with time");
and selectWindow("Task:with time");
doesnt help. error: windw does not exist
or: there is no window with title Task:with time
name of window in browser is: "Task:with time"
(i also get it from title tag in THML code)
I tried to write: selectWindow(name="Task:with time");
and selectWindow("Task:with time");
doesnt help. error: windw does not exist
or: there is no window with title Task:with time
- gaurang033Active particpant
- Posts : 13
Join date : 2011-03-19
Re: selenium doesnt see new window
Tue Sep 06, 2011 6:19 pm
try putting Thread.sleep(6000); before selectWindow statement.
- Jenka156
- Posts : 8
Join date : 2011-08-29
Age : 35
Location : Russia
Re: selenium doesnt see new window
Tue Sep 06, 2011 6:29 pm
it was my first idea. I thought that test try to select window befor it opens.
so I wrote Thread.sleep(20000)
nothing
so I wrote Thread.sleep(20000)
nothing
Re: selenium doesnt see new window
Thu Sep 15, 2011 6:44 pm
Is it possible to record the steps with Selenium IDE and share the code snippet, so that we can analyze the code and try our best.
- rkearney
- Posts : 6
Join date : 2011-09-20
Re: selenium doesnt see new window
Wed Sep 28, 2011 12:29 am
Hi,
I am having the same problem, just posted it now, did you get a resolution?
I am having the same problem, just posted it now, did you get a resolution?
- include85Regular Participant
- Posts : 27
Join date : 2011-09-22
Age : 38
Location : Italia, Sicily
Re: selenium doesnt see new window
Thu Sep 29, 2011 3:13 pm
- Code:
session().waitForPopUp(name_windowPopUp, "30000");
session().selectWindow("name="+name_windowPopUp);
ACTIONS
session().close();
session().selectWindow("first window_name_or_id");
- BhuvaneswariRegular Participant
- Posts : 30
Join date : 2011-09-30
Location : India
Re: selenium doesnt see new window
Fri Feb 24, 2012 6:19 pm
This way I tried already but not helped me. On clicking a link, a new browser window opens, and I tried to select that using the above posted code. What I could've done wrong here. Solution to this problem will be greatly appreciated.
- Sanjay SRegular Participant
- Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai
Re: selenium doesnt see new window
Fri Mar 09, 2012 5:10 pm
Phew... i have been searching the solution for the same kinda problem for the past 2 weeks but nothin helped me up .. Wt could be the solution for this ?????
Permissions in this forum:
You cannot reply to topics in this forum
|
|