From 0ba38238afcfb13f8d2502ff4792c70d6dd82707 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 21 Nov 2019 10:45:52 +0400 Subject: [PATCH] fix selector --- src/test/java/page/SearchPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/page/SearchPage.java b/src/test/java/page/SearchPage.java index 87f5b38..5dc313d 100644 --- a/src/test/java/page/SearchPage.java +++ b/src/test/java/page/SearchPage.java @@ -12,7 +12,7 @@ public class SearchPage { @FindBy(css = "input.header-search-input") private WebElement inputField; - @FindBy(xpath = "//*[@class='menu border']/a[7]") + @FindBy(xpath = "//a[contains(@href, 'Users')]") private WebElement usersLink; public SearchPage(WebDriver driver) {