Use relative xpath
Issue gh-702
This commit is contained in:
@@ -123,10 +123,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) {
|
||||
|
||||
Reference in New Issue
Block a user