Solved

In Selenium RC, cannot focus on window which has no id,name or title.

Posted on 2011-03-23
5
1,271 Views
Last Modified: 2012-05-11
From website A, i click on a link for Website B. But this new Window that opens, has no id, name or title. So how do i select that window?
0
Comment
Question by:renisenbe
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:Craig Kehler
ID: 35202674
Does it show up in the list of ids returned from selenium.getAllWindowIds()? If it does you should be able to iterate through the IDs until you find the one that matches the correct conditionals.
0
 

Author Comment

by:renisenbe
ID: 35202732
The problem is that the window id/name/title does not show up in the list of ids/names/titles.
0
 
LVL 6

Accepted Solution

by:
Craig Kehler earned 250 total points
ID: 35202837
Can you open a new window and have it load the url for website B? By creating the new window via selenium you should be able to control it, if that is still a valid test case for you. There have been issues detecting popup windows since I started using it. If I could see the actual site under test I might be able to figure out a work around.
0
 

Author Comment

by:renisenbe
ID: 35203325
Yes, i have tried loading the url and opening a window with it, and be able to select it.
The idea of the test was to make sure that the ad link works, where the ad opens in a new window after being clicked. And then i can select it and do some work on it.
What are you looking for on the actual site to find a workaround?
0
 
LVL 9

Assisted Solution

by:Suhas .
Suhas . earned 250 total points
ID: 35203918
For the scenarios where we dont have id,title or control. You could try with Siquli to generate the executable for clicking on that object. Refer : http://sikuli.org/ 
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
OAuth Ruby Tutorial 3 472
Software to draw a API process 4 555
what does mantis do 2 485
S.O.P. Software 8 320
If you are using Scrum Framework or another agile process, a retrospective may be part of it. Does your team perform retrospectives? Are you getting value from your retrospectives? I see a common anti-pattern when people conduct a retrospective f…
The Quality Assurance engineer of an Agile scrum team must "own" the acceptance criteria for sprint tasks.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question