Solved

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

Posted on 2011-03-23
5
1,300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Software development teams often use in-memory caches to improve performance. They want to speed up access to, or reduce load on, a backing store (database, file system, etc.) by keeping some or all of the data in memory.   You should implement a…
Introduction I've been in the software industry for over 20 years. I've interviewed at lots of companies, from start ups in stealth mode to some of the biggest and most successful. I've also conducted lots of interviews, especially as I've become a…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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