C# extracting value from webpage

  • Thread starter Thread starter Emsen
  • Start date Start date
E

Emsen

Guest
Hello, how can i extract value by xpath in selenium.

My searching element:

<td>1.4</td>

my xpath to this value

IWebElement target = driver.FindElement(By.XPath("/html/body/table/tbody/tr[2]/td[2]/table[2]/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/div[4]/div/table/tbody//td[contains(@style,'text-align: center;')and contains(text(),'?')]/following-sibling::td[1]"));


I want to extract 1.4 and save as double type, how can I do this?

Continue reading...
 
Back
Top