Skip to content

Commit 0ea2502

Browse files
xpath refactor
1 parent 283779d commit 0ea2502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPath-locators-advanced/src/XPathStartsWith.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void main(String[] args) {
1616
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
1717
driver.get(baseURL);
1818

19-
driver.findElement(By.xpath("//div[@id='navbar']//a[starts-with(@class,'navbar-link')]")).click();
19+
driver.findElement(By.xpath("//a[starts-with(@class,'navbar-link')]")).click();
2020

2121

2222
}

0 commit comments

Comments
 (0)