[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1352
  • Last Modified:

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

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
renisenbe
Asked:
renisenbe
  • 2
  • 2
2 Solutions
 
Craig KehlerDirector of Quality Assurance & Community RelationsCommented:
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
 
renisenbeAuthor Commented:
The problem is that the window id/name/title does not show up in the list of ids/names/titles.
0
 
Craig KehlerDirector of Quality Assurance & Community RelationsCommented:
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
 
renisenbeAuthor Commented:
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
 
Suhas .QA ManagerCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now