From 93be87ed94db726f2ed6a046de21ae2c09c23440 Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Wed, 11 Jan 2017 22:57:23 +0100 Subject: [PATCH] Polish XPath expressions in samples integration tests --- .../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 ++-- .../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 ++-- 12 files changed, 24 insertions(+), 24 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-gemfire-boot/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-gemfire-boot/src/integration-test/java/sample/pages/HomePage.java index 7b177c82..67077fcf 100644 --- a/samples/httpsession-gemfire-boot/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-gemfire-boot/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-gemfire-clientserver-xml/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-gemfire-clientserver-xml/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession-gemfire-clientserver-xml/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-gemfire-clientserver-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-gemfire-clientserver/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-gemfire-clientserver/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession-gemfire-clientserver/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-gemfire-clientserver/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-gemfire-p2p-xml/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-gemfire-p2p-xml/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession-gemfire-p2p-xml/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-gemfire-p2p-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-gemfire-p2p/src/integration-test/java/sample/pages/HomePage.java b/samples/httpsession-gemfire-p2p/src/integration-test/java/sample/pages/HomePage.java index ead76787..67077fcf 100644 --- a/samples/httpsession-gemfire-p2p/src/integration-test/java/sample/pages/HomePage.java +++ b/samples/httpsession-gemfire-p2p/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) {