From a22e840e4119c83be1e3be6c267f50a24462afff Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Wed, 28 Aug 2024 20:08:17 -0400 Subject: [PATCH 1/9] Added section on ByChained --- .../webdriver/elements/locators.en.md | 44 +++++++++++++++++++ .../webdriver/elements/locators.ja.md | 42 ++++++++++++++++++ .../webdriver/elements/locators.pt-br.md | 44 +++++++++++++++++++ .../webdriver/elements/locators.zh-cn.md | 44 +++++++++++++++++++ 4 files changed, 174 insertions(+) diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.en.md b/website_and_docs/content/documentation/webdriver/elements/locators.en.md index 9ad95c1d13cd..61279f8dd2aa 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.en.md @@ -336,6 +336,8 @@ The FindElement makes using locators a breeze! For most languages, all you need to do is utilize `webdriver.common.by.By`, however in others it's as simple as setting a parameter in the FindElement function +### By + {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} @@ -366,6 +368,48 @@ others it's as simple as setting a parameter in the FindElement function {{< /tab >}} {{< /tabpane >}} +### ByChained + +Say, for example, you had the following html: + +```html + + +
+ +
+ + + +``` + +and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. + +{{< tabpane langEqualsHeader=true >}} +{{< badge-examples >}} + {{< tab header="Java" >}} + import org.openqa.selenium.By; + import org.openqa.selenium.support.pagefactory.ByChained; + By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); + driver.findElements(example); + {{< /tab >}} + {{< tab header="Python" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="CSharp" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Ruby" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="JavaScript" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Kotlin" text=true >}} + {{< badge-code >}} + {{< /tab >}} +{{< /tabpane >}} + ## Relative Locators **Selenium 4** introduces Relative Locators (previously diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md index 2510c7d0bbaa..919fb4974a50 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md @@ -326,6 +326,8 @@ The FindElement makes using locators a breeze! For most languages, all you need to do is utilize `webdriver.common.by.By`, however in others it's as simple as setting a parameter in the FindElement function +### By + {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} @@ -356,7 +358,47 @@ others it's as simple as setting a parameter in the FindElement function {{< /tab >}} {{< /tabpane >}} +### ByChained + +Say, for example, you had the following html: + +```html + + +
+ +
+ + + +``` + +and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. +{{< tabpane langEqualsHeader=true >}} +{{< badge-examples >}} + {{< tab header="Java" >}} + import org.openqa.selenium.By; + import org.openqa.selenium.support.pagefactory.ByChained; + By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); + driver.findElements(example); + {{< /tab >}} + {{< tab header="Python" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="CSharp" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Ruby" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="JavaScript" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Kotlin" text=true >}} + {{< badge-code >}} + {{< /tab >}} +{{< /tabpane >}} ## 相対ロケーター diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md index bef40f0290f0..38b60fc2ab62 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md @@ -329,6 +329,8 @@ The FindElement makes using locators a breeze! For most languages, all you need to do is utilize `webdriver.common.by.By`, however in others it's as simple as setting a parameter in the FindElement function +### By + {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} @@ -359,6 +361,48 @@ others it's as simple as setting a parameter in the FindElement function {{< /tab >}} {{< /tabpane >}} +### ByChained + +Say, for example, you had the following html: + +```html + + +
+ +
+ + + +``` + +and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. + +{{< tabpane langEqualsHeader=true >}} +{{< badge-examples >}} + {{< tab header="Java" >}} + import org.openqa.selenium.By; + import org.openqa.selenium.support.pagefactory.ByChained; + By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); + driver.findElements(example); + {{< /tab >}} + {{< tab header="Python" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="CSharp" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Ruby" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="JavaScript" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Kotlin" text=true >}} + {{< badge-code >}} + {{< /tab >}} +{{< /tabpane >}} + ## Relative Locators **Selenium 4** introduces Relative Locators (previously diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md index b7891592f87b..3babf0b903c8 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md @@ -329,6 +329,8 @@ The FindElement makes using locators a breeze! For most languages, all you need to do is utilize `webdriver.common.by.By`, however in others it's as simple as setting a parameter in the FindElement function +### By + {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} @@ -359,6 +361,48 @@ others it's as simple as setting a parameter in the FindElement function {{< /tab >}} {{< /tabpane >}} +### ByChained + +Say, for example, you had the following html: + +```html + + +
+ +
+ + + +``` + +and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. + +{{< tabpane langEqualsHeader=true >}} +{{< badge-examples >}} + {{< tab header="Java" >}} + import org.openqa.selenium.By; + import org.openqa.selenium.support.pagefactory.ByChained; + By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); + driver.findElements(example); + {{< /tab >}} + {{< tab header="Python" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="CSharp" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Ruby" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="JavaScript" text=true >}} + {{< badge-code >}} + {{< /tab >}} + {{< tab header="Kotlin" text=true >}} + {{< badge-code >}} + {{< /tab >}} +{{< /tabpane >}} + ## Relative Locators **Selenium 4** introduces Relative Locators (previously From 164e5c041ab4ebe68d63de53b8989f016d2c9c74 Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Mon, 9 Sep 2024 18:03:45 -0400 Subject: [PATCH 2/9] moved code example to LocatorsTest.java --- .../dev/selenium/elements/LocatorsTest.java | 26 ++++++++++++++++++- .../webdriver/elements/locators.en.md | 5 +--- .../webdriver/elements/locators.ja.md | 5 +--- .../webdriver/elements/locators.pt-br.md | 5 +--- .../webdriver/elements/locators.zh-cn.md | 5 +--- 5 files changed, 29 insertions(+), 17 deletions(-) diff --git a/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java b/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java index 08f73a7384d6..d3386ed4b456 100644 --- a/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java +++ b/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java @@ -1,7 +1,31 @@ package dev.selenium.elements; - +import org.openqa.selenium.By; +import org.openqa.selenium.support.pagefactory.ByChained; import dev.selenium.BaseTest; public class LocatorsTest extends BaseTest { + WebDriver driver = new ChromeDriver(); + // Navigate to Url + driver.get("https://www.selenium.dev/documentation/webdriver/elements/locators/"); + + // Find element using ByChained + // utilizes html described on page + By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); + driver.findElements(example); + } + + +/* ByChained examples utilizes the following HTML located in locators.md + + + +
+ +
+ + + + +*/ \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.en.md b/website_and_docs/content/documentation/webdriver/elements/locators.en.md index 61279f8dd2aa..650ff0ed0cca 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.en.md @@ -388,10 +388,7 @@ and you need to access the input of type text, instead of the input of type numb {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - import org.openqa.selenium.By; - import org.openqa.selenium.support.pagefactory.ByChained; - By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); - driver.findElements(example); + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md index 919fb4974a50..dfa5feb5ffc1 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md @@ -378,10 +378,7 @@ and you need to access the input of type text, instead of the input of type numb {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - import org.openqa.selenium.By; - import org.openqa.selenium.support.pagefactory.ByChained; - By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); - driver.findElements(example); + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md index 38b60fc2ab62..dc03607ea7d5 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md @@ -381,10 +381,7 @@ and you need to access the input of type text, instead of the input of type numb {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - import org.openqa.selenium.By; - import org.openqa.selenium.support.pagefactory.ByChained; - By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); - driver.findElements(example); + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md index 3babf0b903c8..97a102e2b29d 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md @@ -381,10 +381,7 @@ and you need to access the input of type text, instead of the input of type numb {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - import org.openqa.selenium.By; - import org.openqa.selenium.support.pagefactory.ByChained; - By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); - driver.findElements(example); + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} From f0f34df945ca84aae424d0f8b776654ec91d2029 Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Tue, 10 Sep 2024 11:31:28 -0400 Subject: [PATCH 3/9] fixed code example --- .vscode/settings.json | 3 ++ .../dev/selenium/elements/LocatorsTest.java | 38 +++++++++---------- .../webdriver/elements/locators.en.md | 17 +-------- .../webdriver/elements/locators.ja.md | 19 ++-------- .../webdriver/elements/locators.pt-br.md | 19 ++-------- .../webdriver/elements/locators.zh-cn.md | 17 +-------- 6 files changed, 30 insertions(+), 83 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000000..7b016a89fbaf --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "automatic" +} \ No newline at end of file diff --git a/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java b/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java index d3386ed4b456..c06969030ed4 100644 --- a/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java +++ b/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java @@ -2,30 +2,26 @@ import org.openqa.selenium.By; import org.openqa.selenium.support.pagefactory.ByChained; import dev.selenium.BaseTest; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.chrome.ChromeDriver; public class LocatorsTest extends BaseTest { - WebDriver driver = new ChromeDriver(); - // Navigate to Url - driver.get("https://www.selenium.dev/documentation/webdriver/elements/locators/"); + public String ByChainedTest() + { + // Create instance of ChromeDriver + WebDriver driver = new ChromeDriver(); + // Navigate to Url + driver.get("https://www.selenium.dev/selenium/web/login.html"); - // Find element using ByChained - // utilizes html described on page - By example = new ByChained(By.id("parentDiv"), By.id("phoneNumber")); - driver.findElements(example); + // Find username-field inside of login-form + By example = new ByChained(By.id("login-form"), By.id("username-field")); + WebElement username_input = driver.findElement(example); -} + //return placeholder text + String placeholder = username_input.getAttribute("placeholder"); + return placeholder; + } - -/* ByChained examples utilizes the following HTML located in locators.md - - - -
- -
- - - - -*/ \ No newline at end of file +} \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.en.md b/website_and_docs/content/documentation/webdriver/elements/locators.en.md index 650ff0ed0cca..b0660bbd963a 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.en.md @@ -370,25 +370,12 @@ others it's as simple as setting a parameter in the FindElement function ### ByChained -Say, for example, you had the following html: - -```html - - -
- -
- - - -``` - -and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. +The `ByChained` class enables you to _chain_ two By locators together. For example, instead of having to locate a parent element, and then a child element of that parent, you can instead combine those two `FindElement` functions into one. {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md index dfa5feb5ffc1..85f984bf36d3 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md @@ -360,25 +360,12 @@ others it's as simple as setting a parameter in the FindElement function ### ByChained -Say, for example, you had the following html: - -```html - - -
- -
- - - -``` - -and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. +The `ByChained` class enables you to _chain_ two By locators together. For example, instead of having to locate a parent element, and then a child element of that parent, you can instead combine those two `FindElement` functions into one. {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} @@ -395,7 +382,7 @@ and you need to access the input of type text, instead of the input of type numb {{< tab header="Kotlin" text=true >}} {{< badge-code >}} {{< /tab >}} -{{< /tabpane >}} +{{< /tabpane >}} ## 相対ロケーター diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md index dc03607ea7d5..2ce83c4fe354 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md @@ -363,25 +363,12 @@ others it's as simple as setting a parameter in the FindElement function ### ByChained -Say, for example, you had the following html: - -```html - - -
- -
- - - -``` - -and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. +The `ByChained` class enables you to _chain_ two By locators together. For example, instead of having to locate a parent element, and then a child element of that parent, you can instead combine those two `FindElement` functions into one. {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} @@ -398,7 +385,7 @@ and you need to access the input of type text, instead of the input of type numb {{< tab header="Kotlin" text=true >}} {{< badge-code >}} {{< /tab >}} -{{< /tabpane >}} +{{< /tabpane >}} ## Relative Locators diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md index 97a102e2b29d..9727bbb5a410 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md @@ -363,25 +363,12 @@ others it's as simple as setting a parameter in the FindElement function ### ByChained -Say, for example, you had the following html: - -```html - - -
- -
- - - -``` - -and you need to access the input of type text, instead of the input of type number. With ByChained you can access the desired input by chaining two Bys together, first to the div with `id="parentDiv"` and from that div to its child: `id="phoneNumber"`. +The `ByChained` class enables you to _chain_ two By locators together. For example, instead of having to locate a parent element, and then a child element of that parent, you can instead combine those two `FindElement` functions into one. {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#L12-15" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} From dd6406b826315591ff0cf3737bcab53e55a13b8f Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:25:55 -0400 Subject: [PATCH 4/9] removed extra space --- .../src/test/java/dev/selenium/elements/LocatorsTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java b/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java index c06969030ed4..6e98ce25c6e2 100644 --- a/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java +++ b/examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java @@ -8,8 +8,7 @@ public class LocatorsTest extends BaseTest { - public String ByChainedTest() - { + public String ByChainedTest() { // Create instance of ChromeDriver WebDriver driver = new ChromeDriver(); // Navigate to Url @@ -23,5 +22,4 @@ public String ByChainedTest() String placeholder = username_input.getAttribute("placeholder"); return placeholder; } - -} \ No newline at end of file +} From ca18684d1c9a81078a1158ece7f43e9e8f45fc4b Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:26:33 -0400 Subject: [PATCH 5/9] changed code example lines --- .../content/documentation/webdriver/elements/locators.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.en.md b/website_and_docs/content/documentation/webdriver/elements/locators.en.md index b0660bbd963a..3a7751845753 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.en.md @@ -375,7 +375,7 @@ The `ByChained` class enables you to _chain_ two By locators together. For examp {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#17-19" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} From 544393fcade6b91dd295636274a95b4156339439 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:27:22 -0400 Subject: [PATCH 6/9] changed code example lines --- .../content/documentation/webdriver/elements/locators.ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md index 85f984bf36d3..0547c0be8aad 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.ja.md @@ -365,7 +365,7 @@ The `ByChained` class enables you to _chain_ two By locators together. For examp {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#17-19" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} From 62eb9fc30b9d0f4d1a1d76b08097c05cc441fbd4 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:27:38 -0400 Subject: [PATCH 7/9] changed code example lines --- .../content/documentation/webdriver/elements/locators.pt-br.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md index 2ce83c4fe354..f8c851b386ab 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.pt-br.md @@ -368,7 +368,7 @@ The `ByChained` class enables you to _chain_ two By locators together. For examp {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#17-19" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} From 0bc6a1b6b1f2d43c26ae82801383bc47ce4e2653 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:27:55 -0400 Subject: [PATCH 8/9] changed code example lines --- .../content/documentation/webdriver/elements/locators.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md index 9727bbb5a410..e1cc00eacf53 100644 --- a/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/locators.zh-cn.md @@ -368,7 +368,7 @@ The `ByChained` class enables you to _chain_ two By locators together. For examp {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} {{< tab header="Java" >}} - {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#11-25" >}} + {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/LocatorsTest.java#17-19" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< badge-code >}} From be456bf316485d6e64555d425e64e350f5195e4e Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:28:50 -0400 Subject: [PATCH 9/9] Delete .vscode/settings.json --- .vscode/settings.json | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 7b016a89fbaf..000000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "java.compile.nullAnalysis.mode": "automatic" -} \ No newline at end of file