Forum Discussion

asharagov's avatar
12 years ago

Is it possible to run EvaluateXPath for results returned by EvaluateXPath?

Good day,

I want to parse data from table on the web page, to do so I am executing the following code:



curRows = pnlGrid.EvaluateXPath("//table/tbody/tr[@role=""row""]")

For Each row in curRows

    Dim s

    Dim values, clientId, clientName

    s = "/td[@role=" & """gridcell""]"

    values = row.EvaluateXPath(s)

    'some code goes here

Next



But I get the error in TC 9.30 that row object doesn't support method Evaluate XPath. Can anyone elaborate on that, please?

1 Reply

  • Maybe you should obtain all grid cells directly?



    allValues = pnlGrid.EvaluateXPath("//table/tbody/tr[@role=""row""]/td[@role=""gridcell""]")