Set allLinks=gamesPage.Panel(\"page\").Panel(\"MyContent\").getElementsByTagName(\"A\")
For each link in allLinks
Dim strLocation, outerHtmlTxt
strLocation = aqString.Find(link.outerHTML,\"xyz\", 1)
If strLocation <> -1 Then
link.Click
Exit For
End If
Next
I am not able to use the same script for FF, I had to change it as given below, to get list of hyper links. But link.Click is giving VBScript error (method not available). But in object browser I could see 'Click' method under Actions section. But when I see variable 'link' in Evaluate-Inspect option, I could see only Firefox methods only. I could not see Click method. Could you please suggest work around to come across this issue.
Also I have tried with NameMapping for this particular Link object (\"xyz\" link that I wanted to click) and I am able to make Click call on this object.
Thanks in advance.
Pushpa.
Set allLinks=gamesPage.Panel(\"page\").Panel(\"MyContent\").getElementsByTagName(\"A\")
For each link in allLinks
Dim strLocation, outerHtmlTxt
strLocation = aqString.Find(link.outerHTML,\"xyz\", 1)
If strLocation <> -1 Then
link.Click
Exit For
End If
Next
I am not able to use the same script for FF, I had to change it as given below, to get list of hyper links. But link.Click is giving VBScript error (method not available). But in object browser I could see 'Click' method under Actions section. But when I see variable 'link' in Evaluate-Inspect option, I could see only Firefox methods only. I could not see Click method. Could you please suggest work around to come across this issue.
Also I have tried with NameMapping for this particular Link object (\"xyz\" link that I wanted to click) and I am able to make Click call on this object.
Thanks in advance.
Pushpa.