Use relative xpath

Issue gh-702
This commit is contained in:
Rob Winch
2017-01-11 15:54:03 -06:00
parent 801f88d793
commit 3ad0028785
7 changed files with 14 additions and 14 deletions

View File

@@ -107,10 +107,10 @@ public class HomePage {
}
public static class Attribute {
@FindBy(xpath = "//td[1]")
@FindBy(xpath = ".//td[1]")
WebElement attributeName;
@FindBy(xpath = "//td[2]")
@FindBy(xpath = ".//td[2]")
WebElement attributeValue;
public Attribute(SearchContext context) {