Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

selenium doesnt see new window

View previous topic View next topic Go down

selenium doesnt see new window

Post by Jenka156 on 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?

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: selenium doesnt see new window

Post by Jenka156 on 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

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: selenium doesnt see new window

Post by Jenka156 on Wed Aug 31, 2011 6:19 pm

does anyone know how to solve this?..

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: selenium doesnt see new window

Post by ejaenv on Sat Sep 03, 2011 1:16 pm

have you tried selectWindow | name= ?

ejaenv

Posts : 5
Join date : 2011-08-26

Back to top Go down

Re: selenium doesnt see new window

Post by gaurang033 on Sun Sep 04, 2011 8:52 pm

go through following blogspot it might help you
Handle window in selenium

gaurang033
Active particpant
Active particpant

Posts : 13
Join date : 2011-03-19

Back to top Go down

Re: selenium doesnt see new window

Post by Jenka156 on 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?

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: selenium doesnt see new window

Post by ejaenv on 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" ?

ejaenv

Posts : 5
Join date : 2011-08-26

Back to top Go down

Re: selenium doesnt see new window

Post by Jenka156 on 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

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: selenium doesnt see new window

Post by gaurang033 on Tue Sep 06, 2011 6:19 pm

try putting Thread.sleep(6000); before selectWindow statement.

gaurang033
Active particpant
Active particpant

Posts : 13
Join date : 2011-03-19

Back to top Go down

Re: selenium doesnt see new window

Post by Jenka156 on 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

Jenka156

Posts : 8
Join date : 2011-08-29
Age : 28
Location : Russia

Back to top Go down

Re: selenium doesnt see new window

Post by selftechy on 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.

selftechy

Posts : 9
Join date : 2011-09-14
Location : Bangalore, India

http://www.selftechy.com

Back to top Go down

Re: selenium doesnt see new window

Post by rkearney on Wed Sep 28, 2011 12:29 am

Hi,

I am having the same problem, just posted it now, did you get a resolution?

rkearney

Posts : 6
Join date : 2011-09-20

Back to top Go down

Re: selenium doesnt see new window

Post by include85 on 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");


include85
Regular Participant
Regular Participant

Posts : 27
Join date : 2011-09-22
Age : 31
Location : Italia, Sicily

Back to top Go down

Re: selenium doesnt see new window

Post by Bhuvaneswari on 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.

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: selenium doesnt see new window

Post by Sanjay S on 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 ?????

Sanjay S
Regular Participant
Regular Participant

Posts : 34
Join date : 2012-02-10
Age : 29
Location : Chennai

Back to top Go down

Re: selenium doesnt see new window

Post by Sponsored content Today at 3:10 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum