Udayreddy_90
13 years agoContributor
Find link in the tabel/Page
What is the wrong in this code. I am unable to click on the the specified link in the Table.\
How to use Find Object here?
In this case which is most suitable url? ( url1 or url2)
Sub Test
Dim url, page, props, values, link
url1 = "C:\Documents and Settings\kalyan.urimi\Desktop\child.html"
url2 = "file:///C:/Documents%20and%20Settings/kalyan.urimi/Desktop/child.html"
set page = Sys.Process("iexplore").Page("*").Table(0)
' Specify the sought-for properties and values
props = Array("tagName", "innerText")
values = Array("A", "This is a link1")
' Find an object that corresponds to the specified criteria
Set link = page.FindChild(props, values)
link.Click
End Sub
How to use Find Object here?
In this case which is most suitable url? ( url1 or url2)
Sub Test
Dim url, page, props, values, link
url1 = "C:\Documents and Settings\kalyan.urimi\Desktop\child.html"
url2 = "file:///C:/Documents%20and%20Settings/kalyan.urimi/Desktop/child.html"
set page = Sys.Process("iexplore").Page("*").Table(0)
' Specify the sought-for properties and values
props = Array("tagName", "innerText")
values = Array("A", "This is a link1")
' Find an object that corresponds to the specified criteria
Set link = page.FindChild(props, values)
link.Click
End Sub