Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I worked at a US software company that used offshore contractors for ten years and offshore employees for three years. We had a positive experience and you can too.   When I interviewed people for positions in the US, I would tell them that we wor…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

18 Experts available now in Live!

Get 1:1 Help Now