08-03-2011, 01:42 PM
How can I check if the correct web page or browser is opened , when i click a link or a web button. Is there any procedure for this?
I'm trying this way
but , I doubt the performance of the script especially when there are too many links to be checked. I feel error check at very single link would take lots of time to run the script.
I'm trying this way
Code:
Link1Name = "Link1"
Link1Url = "http://www.link.com/Link1"
If browser().page().Link("Name:="&Link1Name&",url:="&Link1Url).Exist Then
Report Pass
Else
Report Fail
but , I doubt the performance of the script especially when there are too many links to be checked. I feel error check at very single link would take lots of time to run the script.