I am trying to click on the link however I am not able to do it due to the WebTable
.
So I have created my function library and this is code for the link and I am trying to Call it. I used name fyi.
Call ClickLink ("sign-in")
Sub ClickLink(LinkName)
Set myPage=Browser("title:=.*").Page("title:=.*").Webtable()
Set wLink = description.Create()
wLink("micClass").value="Link"
Set allLinks = myPage.ChildObjects(wLink)
TotalLinks = allLinks.count()
For Iterator = 0 To TotalLinks -1
If allLinks(i).GetRoproperty("name") = LinkName Then
allLinks(i).click
wait(3)
Exit For
ElseIf TotalLinks -1 Then
reporter.ReportEvent micFail, "Find Link", LinkName
End If
Next
Set myPage = Nothing
Set wLink = Nothing
Set allLinks = Nothing
End Sub