Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Jira and Code Reviews Recently our company was researching switching from our current issue tracking system over to using Atlassian’s Jira product.  While doing the switchover I wanted to make sure that my team would be able to do formal code revie…
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 …
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…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now