Hello peeps, newbie here, i'm trying to get the value of a link using document.getelementbyClass/Name & then navigate to the page the link points to in a different window/tab using Selenium IDE. All suggestions gratefully received, thanks
views:
60answers:
2
A:
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.
edA-qa mort-ora-y
2010-03-10 14:03:11
thanks edA-qa mort-ora-y, having worked out how to store the link's text(a url) and open a new window with it i'm now faced with the problem of selecting this new window. All head ups gratefully received.
2010-03-11 17:42:05