Forum Discussion
AlexKaras
11 years agoCommunity Hero
Hi Sunitha,
It is my guess that hmap is something like Dictionary object... but the .Find method requires either a string or an array as its parameters. So my suggestion will be to try this:
Set PrjLink = myDiv.Find( _
Array("contentText", "tagName", "innerHTML", "title"), _
Array("Project Setup", "A", "Project Setup", "Click to work on the task"), _
100)
If (PrjLink.Exists) Then
Log.Message "link exists"
PrjLink.Click
Else
Log.Message "link does not exist, "
End If
It is my guess that hmap is something like Dictionary object... but the .Find method requires either a string or an array as its parameters. So my suggestion will be to try this:
Set PrjLink = myDiv.Find( _
Array("contentText", "tagName", "innerHTML", "title"), _
Array("Project Setup", "A", "Project Setup", "Click to work on the task"), _
100)
If (PrjLink.Exists) Then
Log.Message "link exists"
PrjLink.Click
Else
Log.Message "link does not exist, "
End If