From 3ad002878504bf59f259be1975aeddff163eb626 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 11 Jan 2017 15:54:03 -0600 Subject: [PATCH] Use relative xpath Issue gh-702 --- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- .../src/integration-test/java/sample/pages/HomePage.java | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/samples/custom-cookie/src/integration-test/java/sample/pages/HomePage.java b/samples/custom-cookie/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/custom-cookie/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/custom-cookie/src/integration-test/java/sample/pages/HomePage.java @@ -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) { diff --git a/samples/hazelcast/src/integration-test/java/sample/pages/HomePage.java b/samples/hazelcast/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/hazelcast/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/hazelcast/src/integration-test/java/sample/pages/HomePage.java @@ -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) { diff --git a/samples/httpsession-jdbc-xml/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-jdbc-xml/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession-jdbc-xml/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-jdbc-xml/src/integration-test/java/sample/pages/HomePage.java @@ -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) { diff --git a/samples/httpsession-jdbc/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-jdbc/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession-jdbc/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-jdbc/src/integration-test/java/sample/pages/HomePage.java @@ -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) { diff --git a/samples/httpsession-redis-json/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-redis-json/src/integration-test/java/sample/pages/HomePage.java index 77332404..2dedd858 100644 --- a/samples/httpsession-redis-json/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-redis-json/src/integration-test/java/sample/pages/HomePage.java @@ -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) { diff --git a/samples/httpsession-xml/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-xml/src/integration-test/java/sample/pages/HomePage.java index 314334d0..b6247cb2 100644 --- a/samples/httpsession-xml/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-xml/src/integration-test/java/sample/pages/HomePage.java @@ -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) { diff --git a/samples/httpsession/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession/src/integration-test/java/sample/pages/HomePage.java @@ -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) {