In SELENIUM, how to I change focus to a new popup tab?
Posted
on Stack Overflow
See other posts from Stack Overflow
Published on 2009-04-08T21:01:17Z
Indexed on
2010/04/16
10:33 UTC
Read the original article
Hit count: 444
selenium
I'm using Selenium and Firefox.
I have a link on a page (say linkA) that opens a new page in a new tab. The new tab is displayed when linkA is clicked. I then want to interact with the new page.
Here is my selenium script:
- click linkA
- pause 5000
- selectWindow Title
- click linkB (note: linkB is on the new page)
Selenium cannot identify the new tab. It reports:
[warn] Link has target '_blank', which is not supported in Selenium! Randomizing target to be: selenium_blank24003
Is there any way to tell Selenium to interact with the displayed tab?
© Stack Overflow or respective owner