From b6fabdaa507f623398441bfa953b9e20b6c3a18b Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Wed, 21 Aug 2024 19:30:05 -0400 Subject: [PATCH 1/6] added quitting examples for all lanaguges/translations --- .../content/documentation/webdriver/drivers/_index.en.md | 4 ++++ .../content/documentation/webdriver/drivers/_index.ja.md | 4 ++++ .../content/documentation/webdriver/drivers/_index.pt-br.md | 4 ++++ .../content/documentation/webdriver/drivers/_index.zh-cn.md | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md index 797a010aba7c..e25b6789c506 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md @@ -61,21 +61,25 @@ and it is recommended to always use `quit` to end the session {{< tabpane text=true >}} {{< tab header="Java" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} +{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} +{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} {{< badge-code >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md index 8dee6ebaaf89..150301ac6c42 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md @@ -60,21 +60,25 @@ weight: 3 {{< tabpane text=true >}} {{< tab header="Java" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} +{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} +{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} {{< badge-code >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md index 2e335ce8673f..7c507867bedf 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md @@ -61,21 +61,25 @@ and it is recommended to always use `quit` to end the session {{< tabpane text=true >}} {{< tab header="Java" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} +{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} +{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} {{< badge-code >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md index 430c7f34b67e..ce50d1ecb2fd 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md @@ -61,21 +61,25 @@ weight: 3 {{< tabpane text=true >}} {{< tab header="Java" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} +{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}} {{< /tab >}} {{< tab header="JavaScript" >}} +{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} +{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >} {{< badge-code >}} {{< /tab >}} {{< /tabpane >}} From 331c4d0261b370d4ae75e714a6eaf36355e0d5a7 Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Thu, 22 Aug 2024 09:27:29 -0400 Subject: [PATCH 2/6] fixed xpath child note being in wrong place of code example --- .../content/documentation/webdriver/elements/finders.en.md | 2 +- .../content/documentation/webdriver/elements/finders.ja.md | 2 +- .../content/documentation/webdriver/elements/finders.pt-br.md | 2 +- .../content/documentation/webdriver/elements/finders.zh-cn.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/finders.en.md b/website_and_docs/content/documentation/webdriver/elements/finders.en.md index ecdc2680977f..533e13eab3a9 100644 --- a/website_and_docs/content/documentation/webdriver/elements/finders.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/finders.en.md @@ -314,12 +314,12 @@ driver.get("https://www.example.com") element = driver.find_element(By.TAG_NAME, 'div') # Get all the elements available with tag name 'p' - # NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path elements = element.find_elements(By.TAG_NAME, 'p') for e in elements: print(e.text) ##get elements from parent element using XPATH +##NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path # Get first element of tag 'ul' element = driver.find_element(By.XPATH, '//ul') diff --git a/website_and_docs/content/documentation/webdriver/elements/finders.ja.md b/website_and_docs/content/documentation/webdriver/elements/finders.ja.md index f8f03a1d1fa5..47c4adac366d 100644 --- a/website_and_docs/content/documentation/webdriver/elements/finders.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/finders.ja.md @@ -300,12 +300,12 @@ driver.get("https://www.example.com") element = driver.find_element(By.TAG_NAME, 'div') # Get all the elements available with tag name 'p' - # NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path elements = element.find_elements(By.TAG_NAME, 'p') for e in elements: print(e.text) ##get elements from parent element using XPATH +##NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path # Get first element of tag 'ul' element = driver.find_element(By.XPATH, '//ul') diff --git a/website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md index fd501bc10123..89e20a5414f0 100644 --- a/website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md @@ -299,12 +299,12 @@ Para realizar isso, o WebElement pai é encadeado com o 'findElements' para aces element = driver.find_element(By.TAG_NAME, 'div') # Obtém todos os elementos disponíveis com o nome da tag 'p' - # NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path elements = element.find_elements(By.TAG_NAME, 'p') for e in elements: print(e.text) ##get elements from parent element using XPATH +##NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path # Get first element of tag 'ul' element = driver.find_element(By.XPATH, '//ul') diff --git a/website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md index 36d9980e0401..372a13880ed4 100644 --- a/website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md @@ -309,12 +309,12 @@ driver.get("https://www.example.com") element = driver.find_element(By.TAG_NAME, 'div') # Get all the elements available with tag name 'p' - # NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path elements = element.find_elements(By.TAG_NAME, 'p') for e in elements: print(e.text) ##get elements from parent element using XPATH +##NOTE: in order to utilize XPATH from current element, you must add "." to beginning of path # Get first element of tag 'ul' element = driver.find_element(By.XPATH, '//ul') From 6b2f2bbe4e7d5a1b66cdd176c89e94893abd4574 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:05:25 -0400 Subject: [PATCH 3/6] Update _index.en.md w/ csharp example --- .../content/documentation/webdriver/drivers/_index.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md index e25b6789c506..d4d194929965 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.en.md @@ -68,7 +68,7 @@ and it is recommended to always use `quit` to end the session {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} From 7080be1fcf9cd9319e648c2787029b82eec52f47 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:05:41 -0400 Subject: [PATCH 4/6] Update _index.ja.md w/ csharp example --- .../content/documentation/webdriver/drivers/_index.ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md index 150301ac6c42..6dbc132b0761 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.ja.md @@ -67,7 +67,7 @@ weight: 3 {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} From 26185c64eba1bd533ab3a1ec13e70d31fe5211b6 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:05:59 -0400 Subject: [PATCH 5/6] Update _index.pt-br.md w/ csharp example --- .../content/documentation/webdriver/drivers/_index.pt-br.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md index 7c507867bedf..3080c59843e2 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md @@ -68,7 +68,7 @@ and it is recommended to always use `quit` to end the session {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}} From be7df5c24e7eb3d8973eb24da63c16bf744b8f16 Mon Sep 17 00:00:00 2001 From: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:06:14 -0400 Subject: [PATCH 6/6] Update _index.zh-cn.md w/ csharp example --- .../content/documentation/webdriver/drivers/_index.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md index ce50d1ecb2fd..67f0bb3f4874 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md @@ -68,7 +68,7 @@ weight: 3 {{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} +{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >} {{< badge-code >}} {{< /tab >}} {{< tab header="Ruby" >}}