We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283779d commit 0ea2502Copy full SHA for 0ea2502
XPath-locators-advanced/src/XPathStartsWith.java
@@ -16,7 +16,7 @@ public static void main(String[] args) {
16
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
17
driver.get(baseURL);
18
19
- driver.findElement(By.xpath("//div[@id='navbar']//a[starts-with(@class,'navbar-link')]")).click();
+ driver.findElement(By.xpath("//a[starts-with(@class,'navbar-link')]")).click();
20
21
22
}
0 commit comments