Solved

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

Posted on 2011-03-23
5
1,288 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Testing on an emulated OS versus the real thing 13 428
youtube 9 439
selenium script promotion from local environment to QA and Production 2 299
Selenium tests failing on jenkins 4 43
Cobalt Digital Marketing began using the Scrum Framework development process in summer 2009.  We hired a consultant to train the teams, observe meetings, and answer questions. He recommended that we begin using one-week sprints for several reason…
By this time the large percentage of day-to-day transactions have shifted to mobile banking; here are some overriding areas QAs must investigate while testing mobile banking apps.  
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

696 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