ArmandsBruns
11 years agoFrequent Contributor
XPath expression
Hi,
I am trying to use EvaluateXPath method to find the objects and how is possible to get faster XPath, specially for CHROME:
This Xpath expressions doesn't work:
Set page = Sys.Browser("*").Page("*")
Set obj= page.EvaluateXPath("//DIV[@id='SAD.htm.0']/TABLE/TBODY/TR[3]/TD[2]", False)
This expressions works:
Set page = Sys.Browser("*").Page("*")
Set obj = page.FindChildByXPath("//SPAN[@id='SAD.htm.0']", False)
How can I use [TD], [TR] in XPath expression?
Reagrds,
Armands
I am trying to use EvaluateXPath method to find the objects and how is possible to get faster XPath, specially for CHROME:
This Xpath expressions doesn't work:
Set page = Sys.Browser("*").Page("*")
Set obj= page.EvaluateXPath("//DIV[@id='SAD.htm.0']/TABLE/TBODY/TR[3]/TD[2]", False)
This expressions works:
Set page = Sys.Browser("*").Page("*")
Set obj = page.FindChildByXPath("//SPAN[@id='SAD.htm.0']", False)
How can I use [TD], [TR] in XPath expression?
Reagrds,
Armands