开发者

How to click a link that opens a sign in page on another page/window using Selenium IDE

Newbie here, I'm trying to get the value of a link using document.getelementbyClass/Name & then navigate to the page开发者_如何学Go the link points to in a different window/tab using Selenium IDE.

All suggestions gratefully received, thanks.


This is rather simple using TestPlan as a front-end to Selenium. In the scripting language it might look something like the below.

GotoURL http://mypage.com/
set %Link% as response //*[@name='myname']/@href
GotoURL %Link%

Using multiple windows requires a few sub-scripts, but it isn't too hard to do once you have the basics working. You can also use the HTMLUnit backend to test since it is faster than using Selenium.


For selecting the window, you can use the selectwindow

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜