Skip to main content
Formatting
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

How to access a Hyper link using XpathXPath

What is correct format for using XPath?

doesDoes XPath vary with the browser?

drchrome.findElement(By.xpath("//a[contains(.,'Google')]")).click();

drchrome.findElement(By.xpath("//a[contains(.,'Google')]")).click();

How to access a Hyper link using Xpath

What is correct format for using XPath?

does XPath vary with the browser

drchrome.findElement(By.xpath("//a[contains(.,'Google')]")).click();

How to access a Hyper link using XPath

What is correct format for using XPath?

Does XPath vary with the browser?

drchrome.findElement(By.xpath("//a[contains(.,'Google')]")).click();
Source Link

How to access a Hyper link using Xpath

What is correct format for using XPath?

does XPath vary with the browser

drchrome.findElement(By.xpath("//a[contains(.,'Google')]")).click();