From 3a3c6b9faabfe80933e5e6ec9cf31e1cbc874104 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Sat, 30 Nov 2024 00:39:18 +0530 Subject: [PATCH 01/16] chore: add `text=true` to the broken code examples (#2088)[deploy site] chore: add text=true to the broken code examples --- .../webdriver/elements/interactions.en.md | 6 +++--- .../webdriver/elements/interactions.ja.md | 6 +++--- .../webdriver/elements/interactions.pt-br.md | 6 +++--- .../webdriver/elements/interactions.zh-cn.md | 6 +++--- .../webdriver/interactions/cookies.en.md | 18 +++++++++--------- .../webdriver/interactions/cookies.ja.md | 12 ++++++------ .../webdriver/interactions/cookies.pt-br.md | 12 ++++++------ .../webdriver/interactions/cookies.zh-cn.md | 12 ++++++------ 8 files changed, 39 insertions(+), 39 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/interactions.en.md b/website_and_docs/content/documentation/webdriver/elements/interactions.en.md index d9c30c6eab6..654f2a48942 100644 --- a/website_and_docs/content/documentation/webdriver/elements/interactions.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/interactions.en.md @@ -48,7 +48,7 @@ Selenium will return an [element click intercepted](https://w3c.github.io/webdri {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L18-L22" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L12-L17" >}} {{< /tab >}} @@ -89,7 +89,7 @@ possible keystrokes that WebDriver Supports. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L27-L32" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L22-L27" >}} {{< /tab >}} @@ -131,7 +131,7 @@ with a`content-editable` attribute. If these conditions are not met, {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L38-L40" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L34" >}} {{< /tab >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/interactions.ja.md b/website_and_docs/content/documentation/webdriver/elements/interactions.ja.md index 7c4dff23537..0800ff320ee 100644 --- a/website_and_docs/content/documentation/webdriver/elements/interactions.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/interactions.ja.md @@ -44,7 +44,7 @@ Selenium will return an [element click intercepted](https://w3c.github.io/webdri {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L18-L22" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L12-L17" >}} {{< /tab >}} @@ -86,7 +86,7 @@ possible keystrokes that WebDriver Supports. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L27-L32" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L22-L27" >}} {{< /tab >}} @@ -127,7 +127,7 @@ with a`content-editable` attribute. If these conditions are not met, {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L38-L40" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L34" >}} {{< /tab >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/interactions.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/interactions.pt-br.md index 190899af099..abc2839a336 100644 --- a/website_and_docs/content/documentation/webdriver/elements/interactions.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/interactions.pt-br.md @@ -45,7 +45,7 @@ Selenium will return an [element click intercepted](https://w3c.github.io/webdri {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L18-L22" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L12-L17" >}} {{< /tab >}} @@ -87,7 +87,7 @@ possible keystrokes that WebDriver Supports. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L27-L32" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L22-L27" >}} {{< /tab >}} @@ -128,7 +128,7 @@ with a`content-editable` attribute. If these conditions are not met, {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L38-L40" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L34" >}} {{< /tab >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/interactions.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/interactions.zh-cn.md index a05448a2188..03f348ea38d 100644 --- a/website_and_docs/content/documentation/webdriver/elements/interactions.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/interactions.zh-cn.md @@ -47,7 +47,7 @@ Selenium将返回一个 [元素点击中断](https://w3c.github.io/webdriver/#df {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L18-L22" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L12-L17" >}} {{< /tab >}} @@ -89,7 +89,7 @@ Selenium将返回一个 [元素点击中断](https://w3c.github.io/webdriver/#df {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L27-L32" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L22-L27" >}} {{< /tab >}} @@ -132,7 +132,7 @@ Selenium将返回一个 [元素点击中断](https://w3c.github.io/webdriver/#df {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L38-L40" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L34" >}} {{< /tab >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/cookies.en.md b/website_and_docs/content/documentation/webdriver/interactions/cookies.en.md index 7346e36eabf..faf9b67ed17 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/cookies.en.md +++ b/website_and_docs/content/documentation/webdriver/interactions/cookies.en.md @@ -30,7 +30,7 @@ e.g. http://example.com/some404page) {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L30-L32" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L5-L9" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -79,7 +79,7 @@ It returns the serialized cookie data matching with the cookie name among all as {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L38-L42" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L13-L20" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -132,7 +132,7 @@ If browser is no longer available it returns error. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L52-L66" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L24-L32" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -187,8 +187,8 @@ It deletes the cookie data matching with the provided cookie name. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L74-L77" >}} {{< /tab >}} - {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L35-L43" >}} + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L35-L43" text=true >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/CookiesTest.cs#L70-L73" >}} @@ -245,8 +245,8 @@ It deletes all the cookies of the current browsing context. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L100-L105" >}} {{< /tab >}} - {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L47-L55" >}} + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L47-L55" text=true >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/CookiesTest.cs#L92-L97" >}} @@ -333,8 +333,8 @@ public class cookieTest { } } {{< /tab >}} - {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L59-L71" >}} + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L59-L71" text=true >}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; diff --git a/website_and_docs/content/documentation/webdriver/interactions/cookies.ja.md b/website_and_docs/content/documentation/webdriver/interactions/cookies.ja.md index da5724a1f84..bbaf18f3eb8 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/cookies.ja.md +++ b/website_and_docs/content/documentation/webdriver/interactions/cookies.ja.md @@ -27,7 +27,7 @@ Cookieの追加では、一連の定義済みのシリアル化可能なJSONオ {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L30-L32" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L5-L9" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -75,7 +75,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L38-L42" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L13-L20" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -127,7 +127,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L52-L66" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L24-L32" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -181,7 +181,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L74-L77" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L35-L43" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -238,7 +238,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L100-L105" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L47-L55" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -323,7 +323,7 @@ public class cookieTest { } } {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L59-L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/cookies.pt-br.md b/website_and_docs/content/documentation/webdriver/interactions/cookies.pt-br.md index ab5cda4e4cd..a43b9f30ff6 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/cookies.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/interactions/cookies.pt-br.md @@ -29,7 +29,7 @@ por exemplo http://example.com/some404page) {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L30-L32" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L5-L9" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -77,7 +77,7 @@ Retorna os dados do cookie serializado correspondentes ao nome do cookie entre t {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L38-L42" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L13-L20" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -129,7 +129,7 @@ Se o navegador não estiver mais disponível, ele retornará um erro. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L52-L66" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L24-L32" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -183,7 +183,7 @@ Exclui os dados do cookie que correspondem ao nome do cookie fornecido. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L74-L77" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L35-L43" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -240,7 +240,7 @@ Exclui todos os cookies do contexto de navegação atual. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L100-L105" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L47-L55" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -327,7 +327,7 @@ public class cookieTest { } } {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L59-L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/cookies.zh-cn.md b/website_and_docs/content/documentation/webdriver/interactions/cookies.zh-cn.md index 4275daf24f8..ee59ba09991 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/cookies.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/interactions/cookies.zh-cn.md @@ -25,7 +25,7 @@ WebDriver API提供了一种使用内置的方法与Cookie进行交互: {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L30-L32" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L5-9" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -73,7 +73,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L38-L42" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L13-L20" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -124,7 +124,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L52-L66" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L24-L32" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -178,7 +178,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L74-L77" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L35-L43" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -235,7 +235,7 @@ fun main() { {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/CookiesTest.java#L100-L105" >}} {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L47-L55" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} @@ -321,7 +321,7 @@ public class cookieTest { } } {{< /tab >}} - {{< tab header="Python" >}} + {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_cookies.py#L59-L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} From 9060cb947137a372eb5fbfaecc8e4864cd6dab90 Mon Sep 17 00:00:00 2001 From: Navin Chandra <98466550+navin772@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:38:31 +0530 Subject: [PATCH 02/16] [java][py]: move java and python firefox profile code (#2090)[deploy site] move java and python firefox profile code --- .../dev/selenium/browsers/FirefoxTest.java | 12 ++++++++++ .../python/tests/browsers/test_firefox.py | 14 ++++++++++++ .../webdriver/browsers/firefox.en.md | 20 +++++------------ .../webdriver/browsers/firefox.ja.md | 22 ++++++------------- .../webdriver/browsers/firefox.pt-br.md | 20 +++++------------ .../webdriver/browsers/firefox.zh-cn.md | 20 +++++------------ 6 files changed, 51 insertions(+), 57 deletions(-) diff --git a/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java b/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java index 70ea5c18240..28166e12480 100644 --- a/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java +++ b/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java @@ -205,4 +205,16 @@ public void setContext() { driver.quit(); } + + @Test + public void firefoxProfile() { + FirefoxProfile profile = new FirefoxProfile(); + FirefoxOptions options = new FirefoxOptions(); + profile.setPreference("javascript.enabled", "False"); + options.setProfile(profile); + + driver = new FirefoxDriver(options); + + driver.quit(); + } } diff --git a/examples/python/tests/browsers/test_firefox.py b/examples/python/tests/browsers/test_firefox.py index 82ebc47abf3..5780e16106f 100644 --- a/examples/python/tests/browsers/test_firefox.py +++ b/examples/python/tests/browsers/test_firefox.py @@ -151,3 +151,17 @@ def test_set_context(firefox_driver): # Check if the context is back to content assert driver.execute("GET_CONTEXT")["value"] == "content" + + +def test_firefox_profile(): + from selenium.webdriver.firefox.options import Options + from selenium.webdriver.firefox.firefox_profile import FirefoxProfile + + options = Options() + firefox_profile = FirefoxProfile() + firefox_profile.set_preference("javascript.enabled", False) + options.profile = firefox_profile + + driver = webdriver.Firefox(options=options) + + driver.quit() diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md index f2eac7c6b54..6d7f2c150cf 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md @@ -102,20 +102,12 @@ There are several ways to work with Firefox profiles. {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} - {{< tab header="Java" >}} -FirefoxProfile profile = new FirefoxProfile(); -FirefoxOptions options = new FirefoxOptions(); -options.setProfile(profile); -driver = new FirefoxDriver(options); - {{< /tab >}} - {{< tab header="Python" >}} -from selenium.webdriver.firefox.options import Options -from selenium.webdriver.firefox.firefox_profile import FirefoxProfile -options=Options() -firefox_profile = FirefoxProfile() -firefox_profile.set_preference("javascript.enabled", False) -options.profile = firefox_profile - {{< /tab >}} +{{< tab header="Java" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} +{{< /tab >}} {{< tab header="CSharp" >}} var options = new FirefoxOptions(); var profile = new FirefoxProfile(); diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md index 126638d5acb..8b565f4c4ee 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md @@ -106,21 +106,13 @@ Firefoxプロファイルを操作するにはいくつかの方法がありま
{{< tabpane langEqualsHeader=true >}} - {{< tab header="Java" >}} -FirefoxProfile profile = new FirefoxProfile(); -FirefoxOptions options = new FirefoxOptions(); -options.setProfile(profile); -driver = new RemoteWebDriver(options); - {{< /tab >}} - {{< tab header="Python" >}} -from selenium.webdriver.firefox.options import Options -from selenium.webdriver.firefox.firefox_profile import FirefoxProfile -options=Options() -firefox_profile = FirefoxProfile() -firefox_profile.set_preference("javascript.enabled", False) -options.profile = firefox_profile - {{< /tab >}} - {{< tab header="CSharp" >}} +{{< tab header="Java" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} +{{< /tab >}} +{{< tab header="CSharp" >}} var options = new FirefoxOptions(); var profile = new FirefoxProfile(); options.Profile = profile; diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md index f36890f487d..e0f02a2bc95 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md @@ -105,20 +105,12 @@ Existem várias formas de trabalhar com perfis Firefox
{{< tabpane langEqualsHeader=true >}} - {{< tab header="Java" >}} -FirefoxProfile profile = new FirefoxProfile(); -FirefoxOptions options = new FirefoxOptions(); -options.setProfile(profile); -driver = new RemoteWebDriver(options); - {{< /tab >}} - {{< tab header="Python" >}} -from selenium.webdriver.firefox.options import Options -from selenium.webdriver.firefox.firefox_profile import FirefoxProfile -options=Options() -firefox_profile = FirefoxProfile() -firefox_profile.set_preference("javascript.enabled", False) -options.profile = firefox_profile - {{< /tab >}} +{{< tab header="Java" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} +{{< /tab >}} {{< tab header="CSharp" >}} var options = new FirefoxOptions(); var profile = new FirefoxProfile(); diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md index b56e5f62b74..ed1794f23e3 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md @@ -104,20 +104,12 @@ There are several ways to work with Firefox profiles
{{< tabpane langEqualsHeader=true >}} - {{< tab header="Java" >}} -FirefoxProfile profile = new FirefoxProfile(); -FirefoxOptions options = new FirefoxOptions(); -options.setProfile(profile); -driver = new RemoteWebDriver(options); - {{< /tab >}} - {{< tab header="Python" >}} -from selenium.webdriver.firefox.options import Options -from selenium.webdriver.firefox.firefox_profile import FirefoxProfile -options=Options() -firefox_profile = FirefoxProfile() -firefox_profile.set_preference("javascript.enabled", False) -options.profile = firefox_profile - {{< /tab >}} +{{< tab header="Java" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" >}} +{{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} +{{< /tab >}} {{< tab header="CSharp" >}} var options = new FirefoxOptions(); var profile = new FirefoxProfile(); From ecb9ef0db3cfcf39a34b75d7db59cf0c73e43603 Mon Sep 17 00:00:00 2001 From: Navin Chandra <98466550+navin772@users.noreply.github.com> Date: Mon, 2 Dec 2024 23:07:06 +0530 Subject: [PATCH 03/16] fix rendering of examples in firefox profile (#2092)[deploy site] add `text=true` to render properly --- .../content/documentation/webdriver/browsers/firefox.en.md | 4 ++-- .../content/documentation/webdriver/browsers/firefox.ja.md | 4 ++-- .../content/documentation/webdriver/browsers/firefox.pt-br.md | 4 ++-- .../content/documentation/webdriver/browsers/firefox.zh-cn.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md index 6d7f2c150cf..e38174e824e 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.en.md @@ -102,10 +102,10 @@ There are several ways to work with Firefox profiles. {{< tabpane langEqualsHeader=true >}} {{< badge-examples >}} -{{< tab header="Java" >}} +{{< tab header="Java" text=true >}} {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md index 8b565f4c4ee..664ab91d6bf 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md @@ -106,10 +106,10 @@ Firefoxプロファイルを操作するにはいくつかの方法がありま
{{< tabpane langEqualsHeader=true >}} -{{< tab header="Java" >}} +{{< tab header="Java" text=true >}} {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md index e0f02a2bc95..0603016ae1d 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.pt-br.md @@ -105,10 +105,10 @@ Existem várias formas de trabalhar com perfis Firefox
{{< tabpane langEqualsHeader=true >}} -{{< tab header="Java" >}} +{{< tab header="Java" text=true >}} {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md index ed1794f23e3..d1384cebc59 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md @@ -104,10 +104,10 @@ There are several ways to work with Firefox profiles
{{< tabpane langEqualsHeader=true >}} -{{< tab header="Java" >}} +{{< tab header="Java" text=true >}} {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} {{< /tab >}} -{{< tab header="Python" >}} +{{< tab header="Python" text=true >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165" >}} {{< /tab >}} {{< tab header="CSharp" >}} From 26f46f82080200a33289c8e2b54fdf392e7d73d3 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 3 Dec 2024 15:54:04 +0100 Subject: [PATCH 04/16] Adding HTML Unit [deploy site] --- website_and_docs/content/project/_index.html | 3 +++ website_and_docs/content/project/structure/_index.html | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/website_and_docs/content/project/_index.html b/website_and_docs/content/project/_index.html index 77a8e37e4ff..71da3e91f4d 100644 --- a/website_and_docs/content/project/_index.html +++ b/website_and_docs/content/project/_index.html @@ -62,6 +62,9 @@

Structure

Selenium IDE Committers

+

+ Selenium Html Unit Committers +

Selenium Committers

diff --git a/website_and_docs/content/project/structure/_index.html b/website_and_docs/content/project/structure/_index.html index 0f97c725417..816155534ee 100644 --- a/website_and_docs/content/project/structure/_index.html +++ b/website_and_docs/content/project/structure/_index.html @@ -52,6 +52,12 @@

Selenium IDE Committers

{{< gh-user "https://api.github.com/users/toddtarsi" >}}
+
+

Selenium Html Unit Committers

+
+ {{< gh-user "https://api.github.com/users/rbri" >}} +
+

Selenium Committers

From 940e90d73b1681180475fab58d3df95b4b52d215 Mon Sep 17 00:00:00 2001 From: Sri Harsha Date: Tue, 3 Dec 2024 12:52:31 -0500 Subject: [PATCH 05/16] [c#] change devtools 131 --- .../dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs b/examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs index abcde4c606f..cbfdf48d4d4 100644 --- a/examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs +++ b/examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs @@ -4,8 +4,8 @@ using OpenQA.Selenium; using OpenQA.Selenium.DevTools; using System.Linq; -using OpenQA.Selenium.DevTools.V130.Network; -using OpenQA.Selenium.DevTools.V130.Performance; +using OpenQA.Selenium.DevTools.V131.Network; +using OpenQA.Selenium.DevTools.V131.Performance; namespace SeleniumDocs.BiDi.CDP @@ -16,7 +16,7 @@ public class NetworkTest : BaseTest [TestInitialize] public void Startup() { - StartDriver("130"); + StartDriver("131"); } [TestMethod] @@ -109,9 +109,9 @@ public async Task PerformanceMetrics() driver.Url = "https://www.selenium.dev/selenium/web/frameset.html"; var session = ((IDevTools)driver).GetDevToolsSession(); - var domains = session.GetVersionSpecificDomains(); + var domains = session.GetVersionSpecificDomains(); - await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V130.Performance.EnableCommandSettings()); + await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V131.Performance.EnableCommandSettings()); var metricsResponse = await session.SendCommand( new GetMetricsCommandSettings() @@ -130,8 +130,8 @@ await session.SendCommand( public async Task SetCookie() { var session = ((IDevTools)driver).GetDevToolsSession(); - var domains = session.GetVersionSpecificDomains(); - await domains.Network.Enable(new OpenQA.Selenium.DevTools.V130.Network.EnableCommandSettings()); + var domains = session.GetVersionSpecificDomains(); + await domains.Network.Enable(new OpenQA.Selenium.DevTools.V131.Network.EnableCommandSettings()); var cookieCommandSettings = new SetCookieCommandSettings { From f70edb684f4763321dcdf12ca8a3e80833045783 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Fri, 6 Dec 2024 00:37:15 +0530 Subject: [PATCH 06/16] [py] move information code to files (#2093)[deploy site] * [py] move information code to files * fix close tabs --------- Co-authored-by: Sri Harsha --- .../python/tests/elements/test_information.py | 45 ++++++++ .../webdriver/elements/information.en.md | 68 +++-------- .../webdriver/elements/information.ja.md | 78 ++++--------- .../webdriver/elements/information.pt-br.md | 107 +++++------------- .../webdriver/elements/information.zh-cn.md | 87 +++----------- 5 files changed, 125 insertions(+), 260 deletions(-) diff --git a/examples/python/tests/elements/test_information.py b/examples/python/tests/elements/test_information.py index 53b695b6fc8..a2d5d030af8 100644 --- a/examples/python/tests/elements/test_information.py +++ b/examples/python/tests/elements/test_information.py @@ -1,2 +1,47 @@ from selenium import webdriver +from selenium.webdriver.common.by import By +import pytest + + +def test_informarion(): + # Initialize WebDriver + driver = webdriver.Chrome() + driver.implicitly_wait(0.5) + + driver.get("https://www.selenium.dev/selenium/web/inputs.html") + + # isDisplayed + is_email_visible = driver.find_element(By.NAME, "email_input").is_displayed() + assert is_email_visible == True + + # isEnabled + is_enabled_button = driver.find_element(By.NAME, "button_input").is_enabled() + assert is_enabled_button == True + + # isSelected + is_selected_check = driver.find_element(By.NAME, "checkbox_input").is_selected() + assert is_selected_check == True + + # TagName + tag_name_inp = driver.find_element(By.NAME, "email_input").tag_name + assert tag_name_inp == "input" + + # GetRect + rect = driver.find_element(By.NAME, "range_input").rect + assert rect["x"] == 10 + + # CSS Value + css_value = driver.find_element(By.NAME, "color_input").value_of_css_property( + "font-size" + ) + assert css_value == "13.3333px" + + # GetText + text = driver.find_element(By.TAG_NAME, "h1").text + assert text == "Testing Inputs" + + # FetchAttributes + email_txt = driver.find_element(By.NAME, "email_input") + value_info = email_txt.get_attribute("value") + assert value_info == "admin@localhost" diff --git a/website_and_docs/content/documentation/webdriver/elements/information.en.md b/website_and_docs/content/documentation/webdriver/elements/information.en.md index 67809109596..cc456c78bdc 100644 --- a/website_and_docs/content/documentation/webdriver/elements/information.en.md +++ b/website_and_docs/content/documentation/webdriver/elements/information.en.md @@ -29,12 +29,8 @@ nature and relationship in the tree to return a value. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L20-L25" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Get boolean value for is element display -is_email_visible = driver.find_element(By.NAME, "email_input").is_displayed() +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L12-L15" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L18-L23" >}} @@ -68,12 +64,8 @@ Returns a boolean value, **True** if the connected element is {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L27-L30" >}} {{< /tab >}} - {{< tab header="Python" >}} - # Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - - # Returns true if element is enabled else returns false -value = driver.find_element(By.NAME, 'button_input').is_enabled() + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L19" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L25-L28" >}} @@ -106,12 +98,8 @@ Returns a boolean value, **True** if referenced element is {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L32-L35" >}} {{< /tab >}} - {{< tab header="Python" >}} - # Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - - # Returns true if element is checked else returns false -value = driver.find_element(By.NAME, "checkbox_input").is_selected() + {{< tab header="Python" text=true >}} + {{< gh-codeblock path="examples/python/tests/elements/test_information.py#L23" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L30-L33" >}} @@ -140,12 +128,8 @@ of the referenced Element which has the focus in the current browsing context. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L37-L40" >}} {{< /tab >}} - {{< tab header="Python" >}} - # Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - - # Returns TagName of the element -attr = driver.find_element(By.NAME, "email_input").tag_name + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L27" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L35-L38" >}} @@ -180,12 +164,8 @@ The fetched data body contain the following details: {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L42-L46" >}} {{< /tab >}} - {{< tab header="Python" >}} - # Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - - # Returns height, width, x and y coordinates referenced element -res = driver.find_element(By.NAME, "range_input").rect + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L31" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L40-L47" >}} @@ -217,13 +197,8 @@ of an element in the current browsing context. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L49-L51" >}} {{< /tab >}} - {{< tab header="Python" >}} - - # Navigate to Url -driver.get('https://www.selenium.dev/selenium/web/colorPage.html') - - # Retrieves the computed style property 'color' of linktext -cssValue = driver.find_element(By.ID, "namedColor").value_of_css_property('background-color') + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L35-L37" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L49-L51" >}} @@ -253,12 +228,8 @@ Retrieves the rendered text of the specified element. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L54-L57" >}} {{< /tab >}} - {{< tab header="Python" >}} - # Navigate to url -driver.get("https://www.selenium.dev/selenium/web/linked_image.html") - - # Retrieves the text of the element -text = driver.find_element(By.ID, "justanotherlink").text + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L41" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L53-L56" >}} @@ -290,15 +261,8 @@ with the DOM attribute or property of the element. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L60-L65" >}} {{< /tab >}} - {{< tab header="Python" >}} -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Identify the email text box -email_txt = driver.find_element(By.NAME, "email_input") - -# Fetch the value property associated with the textbox -value_info = email_txt.get_attribute("value") + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L44-L46" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L58-L63" >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/information.ja.md b/website_and_docs/content/documentation/webdriver/elements/information.ja.md index 100d73e3f37..70b5d3d1815 100644 --- a/website_and_docs/content/documentation/webdriver/elements/information.ja.md +++ b/website_and_docs/content/documentation/webdriver/elements/information.ja.md @@ -29,14 +29,8 @@ nature and relationship in the tree to return a value. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L20-L25" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Get boolean value for is element display -is_email_visible = driver.find_element(By.NAME, "email_input").is_displayed() - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L12-L15" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L18-L23" >}} @@ -69,12 +63,8 @@ is_email_visible = driver.find_element(By.NAME, "email_input").is_displayed() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L27-L30" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns true if element is enabled else returns false -value = driver.find_element(By.NAME, 'button_input').is_enabled() +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L19" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L25-L28" >}} @@ -105,12 +95,8 @@ value = driver.find_element(By.NAME, 'button_input').is_enabled() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L32-L35" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns true if element is checked else returns false -value = driver.find_element(By.NAME, "checkbox_input").is_selected() +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L23" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L30-L33" >}} @@ -139,12 +125,8 @@ val attr = driver.findElement(By.name("checkbox_input")).isSelected() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L37-L40" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns TagName of the element -attr = driver.find_element(By.NAME, "email_input").tag_name +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L27" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L35-L38" >}} @@ -179,13 +161,9 @@ val attr = driver.findElement(By.name("email_input")).getTagName() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L42-L46" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns height, width, x and y coordinates referenced element -res = driver.find_element(By.NAME, "range_input").rect -{{< /tab >}} + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L31" >}} + {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L40-L47" >}} {{< /tab >}} @@ -215,14 +193,9 @@ println(res.getX()) {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L49-L51" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to Url -driver.get('https://www.selenium.dev/selenium/web/colorPage.html') - -# Retrieves the computed style property 'color' of linktext -cssValue = driver.find_element(By.ID, "namedColor").value_of_css_property('background-color') - -{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L35-L37" >}} +{{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L49-L51" >}} {{< /tab >}} @@ -249,12 +222,8 @@ val cssValue = driver.findElement(By.id("namedColor")).getCssValue("background-c {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L54-L57" >}} {{< /tab >}} -{{< tab header="Python" >}} -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/linked_image.html") - -# Retrieves the text of the element -text = driver.find_element(By.ID, "justanotherlink").text +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L41" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L53-L56" >}} @@ -284,18 +253,9 @@ with the DOM attribute or property of the element. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L60-L65" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Identify the email text box -email_txt = driver.find_element(By.NAME, "email_input") - -# Fetch the value property associated with the textbox -value_info = email_txt.get_attribute("value") - -{{< /tab >}} + {{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L44-L46" >}} + {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L58-L63" >}} {{< /tab >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/information.pt-br.md b/website_and_docs/content/documentation/webdriver/elements/information.pt-br.md index 0ce2be71c56..4b985b45398 100644 --- a/website_and_docs/content/documentation/webdriver/elements/information.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/elements/information.pt-br.md @@ -30,14 +30,8 @@ nature and relationship in the tree to return a value. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L20-L25" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Get boolean value for is element display -is_email_visible = driver.find_element(By.NAME, "email_input").is_displayed() - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L12-L15" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L18-L23" >}} @@ -70,14 +64,8 @@ Returns a boolean value, **True** if the connected element is {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L27-L30" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns true if element is enabled else returns false -value = driver.find_element(By.NAME, 'button_input').is_enabled() - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L19" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L25-L28" >}} @@ -89,13 +77,11 @@ value = driver.find_element(By.NAME, 'button_input').is_enabled() {{< gh-codeblock path="/examples/javascript/test/elements/information.spec.js#L23-L24">}} {{< /tab >}} {{< tab header="Kotlin" >}} +//navigates to url +driver.get("https://www.selenium.dev/selenium/web/inputs.html") - //navigates to url - driver.get("https://www.selenium.dev/selenium/web/inputs.html") - - //returns true if element is enabled else returns false - val attr = driver.findElement(By.name("button_input")).isEnabled() - +//returns true if element is enabled else returns false +val attr = driver.findElement(By.name("button_input")).isEnabled() {{< /tab >}} {{< /tabpane >}} @@ -115,14 +101,8 @@ Retorna um valor booleano, **true** se o elemento referenciado for {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L32-L35" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns true if element is checked else returns false -value = driver.find_element(By.NAME, "checkbox_input").is_selected() - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L23" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L30-L33" >}} @@ -153,14 +133,8 @@ do elemento referenciado que tem o foco no contexto de navegação atual. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L37-L40" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns TagName of the element -attr = driver.find_element(By.NAME, "email_input").tag_name - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L27" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L35-L38" >}} @@ -171,13 +145,13 @@ attr = driver.find_element(By.NAME, "email_input").tag_name {{< tab header="JavaScript" text=true >}} {{< gh-codeblock path="/examples/javascript/test/elements/information.spec.js#L37-L38">}} {{< /tab >}} - {{< tab header="Kotlin" >}} - //navigates to url - driver.get("https://www.selenium.dev/selenium/web/inputs.html") +{{< tab header="Kotlin" >}} +//navigates to url +driver.get("https://www.selenium.dev/selenium/web/inputs.html") - //returns TagName of the element - val attr = driver.findElement(By.name("email_input")).getTagName() - {{< /tab >}} +//returns TagName of the element +val attr = driver.findElement(By.name("email_input")).getTagName() +{{< /tab >}} {{< /tabpane >}} ## Coletar retângulo do elemento @@ -196,14 +170,8 @@ O corpo de dados buscado contém os seguintes detalhes: {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L42-L46" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns height, width, x and y coordinates referenced element -res = driver.find_element(By.NAME, "range_input").rect - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L31" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L40-L47" >}} @@ -235,15 +203,9 @@ de um elemento no contexto de navegação atual. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L49-L51" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to Url -driver.get('https://www.selenium.dev/selenium/web/colorPage.html') - -# Retrieves the computed style property 'color' of linktext -cssValue = driver.find_element(By.ID, "namedColor").value_of_css_property('background-color') - -{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L35-L37" >}} +{{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L49-L51" >}} {{< /tab >}} @@ -273,14 +235,8 @@ Recupera o texto renderizado do elemento especificado. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L54-L57" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/linked_image.html") - -# Retrieves the text of the element -text = driver.find_element(By.ID, "justanotherlink").text - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L41" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L53-L56" >}} @@ -312,17 +268,8 @@ with the DOM attribute or property of the element. {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L60-L65" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Identify the email text box -email_txt = driver.find_element(By.NAME, "email_input") - -# Fetch the value property associated with the textbox -value_info = email_txt.get_attribute("value") - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L44-L46" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L58-L63" >}} diff --git a/website_and_docs/content/documentation/webdriver/elements/information.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/information.zh-cn.md index e5ca661fe87..d603062dba8 100644 --- a/website_and_docs/content/documentation/webdriver/elements/information.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/information.zh-cn.md @@ -23,14 +23,8 @@ description: > {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L20-L25" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Get boolean value for is element display -is_email_visible = driver.find_element(By.NAME, "email_input").is_displayed() - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L12-L15" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L18-L23" >}} @@ -61,14 +55,8 @@ val flag = driver.findElement(By.name("email_input")).isDisplayed() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L27-L30" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns true if element is enabled else returns false -value = driver.find_element(By.NAME, 'button_input').is_enabled() - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L19" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L25-L28" >}} @@ -100,14 +88,8 @@ val attr = driver.findElement(By.name("button_input")).isEnabled() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L32-L35" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns true if element is checked else returns false -value = driver.find_element(By.NAME, "checkbox_input").is_selected() - +{{< tab header="Python" text=true >}} + {{< gh-codeblock path="examples/python/tests/elements/test_information.py#L23" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L30-L33" >}} @@ -137,14 +119,8 @@ val attr = driver.findElement(By.name("checkbox_input")).isSelected() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L37-L40" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns TagName of the element -attr = driver.find_element(By.NAME, "email_input").tag_name - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L27" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L35-L38" >}} @@ -181,14 +157,8 @@ val attr = driver.findElement(By.name("email_input")).getTagName() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L42-L46" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Returns height, width, x and y coordinates referenced element -res = driver.find_element(By.NAME, "range_input").rect - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L31" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L40-L47" >}} @@ -221,15 +191,9 @@ println(res.getX()) {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L49-L51" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to Url -driver.get('https://www.selenium.dev/selenium/web/colorPage.html') - -# Retrieves the computed style property 'color' of linktext -cssValue = driver.find_element(By.ID, "namedColor").value_of_css_property('background-color') - -{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L35-L37" >}} +{{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L49-L51" >}} {{< /tab >}} @@ -259,14 +223,8 @@ val cssValue = driver.findElement(By.id("namedColor")).getCssValue("background-c {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L54-L57" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to url -driver.get("https://www.selenium.dev/selenium/web/linked_image.html") - -# Retrieves the text of the element -text = driver.find_element(By.ID, "justanotherlink").text - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L41" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L53-L56" >}} @@ -297,17 +255,8 @@ val text = driver.findElement(By.id("justanotherlink")).getText() {{< tab header="Java" text=true >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L60-L65" >}} {{< /tab >}} -{{< tab header="Python" >}} - -# Navigate to the url -driver.get("https://www.selenium.dev/selenium/web/inputs.html") - -# Identify the email text box -email_txt = driver.find_element(By.NAME, "email_input") - -# Fetch the value property associated with the textbox -value_info = email_txt.get_attribute("value") - +{{< tab header="Python" text=true >}} +{{< gh-codeblock path="examples/python/tests/elements/test_information.py#L44-L46" >}} {{< /tab >}} {{< tab header="CSharp" text=true >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L58-L63" >}} @@ -327,4 +276,4 @@ driver.get("https://www.selenium.dev/selenium/web/inputs.html") val attr = driver.findElement(By.name("email_input")).getAttribute("value") {{< /tab >}} -{{< /tabpane >}} \ No newline at end of file +{{< /tabpane >}} From 58cfa4f397d0875bb8caed492842167a55365faf Mon Sep 17 00:00:00 2001 From: Sri Harsha Date: Fri, 6 Dec 2024 12:03:40 -0500 Subject: [PATCH 07/16] update banner for selenium conf reg [deploy site] --- website_and_docs/layouts/partials/announcement-banner.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website_and_docs/layouts/partials/announcement-banner.html b/website_and_docs/layouts/partials/announcement-banner.html index a4457a332eb..2d2edb0278e 100644 --- a/website_and_docs/layouts/partials/announcement-banner.html +++ b/website_and_docs/layouts/partials/announcement-banner.html @@ -6,8 +6,8 @@
From 862708e13dfaaa34f6e6bd3695b9d5b3071e7c48 Mon Sep 17 00:00:00 2001 From: Sri Harsha Date: Fri, 6 Dec 2024 21:24:32 -0500 Subject: [PATCH 08/16] update banner for Coomunity live event [deploy site] --- website_and_docs/layouts/partials/announcement-banner.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website_and_docs/layouts/partials/announcement-banner.html b/website_and_docs/layouts/partials/announcement-banner.html index 2d2edb0278e..c3b7d2c60cb 100644 --- a/website_and_docs/layouts/partials/announcement-banner.html +++ b/website_and_docs/layouts/partials/announcement-banner.html @@ -9,6 +9,10 @@

Registrations Open for SeleniumConf 2025 | March 26–28 | Join Us In-Person! Register now!

+

+ Join us for Selenium Community Live on Dec 18th, 2024 - + More information here +

From 4567a5aa097d3c70c089906a3321021ae5e5aa32 Mon Sep 17 00:00:00 2001 From: praveenmar <61787598+praveenmar@users.noreply.github.com> Date: Sun, 8 Dec 2024 23:18:53 +0530 Subject: [PATCH 09/16] =?UTF-8?q?Add=20=20java=20alerts=20code=20from=20ex?= =?UTF-8?q?amples=20to=20code=20snippet=20section=20in=20seleni=E2=80=A6?= =?UTF-8?q?=20(#2094)[deploy=20site]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add java alerts code from examples to code snippet section in selenium docs (alerts.en.md) * updated correct line number --- .../documentation/webdriver/interactions/alerts.en.md | 11 ++++------- .../documentation/webdriver/interactions/alerts.ja.md | 6 +++--- .../webdriver/interactions/alerts.pt-br.md | 6 +++--- .../webdriver/interactions/alerts.zh-cn.md | 6 +++--- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/interactions/alerts.en.md b/website_and_docs/content/documentation/webdriver/interactions/alerts.en.md index 961f2143639..8ddf4967592 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/alerts.en.md +++ b/website_and_docs/content/documentation/webdriver/interactions/alerts.en.md @@ -25,9 +25,8 @@ WebDriver can get the text from the popup and accept or dismiss these alerts. {{< tabpane langEqualsHeader=true >}} -{{< badge-examples >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L56" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L57" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -77,9 +76,8 @@ a sample confirm. This example also shows a different approach to storing an alert: {{< tabpane langEqualsHeader=true >}} -{{< badge-examples >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L71" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L72" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -137,9 +135,8 @@ See a sample prompt. {{< tabpane langEqualsHeader=true >}} -{{< badge-examples >}} - {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L87" >}} +{{< tab header="Java" text=true >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L88" >}} {{< /tab >}} {{< tab header="Python" text=true >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/alerts.ja.md b/website_and_docs/content/documentation/webdriver/interactions/alerts.ja.md index 519f9142dc5..eed2c39bda5 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/alerts.ja.md +++ b/website_and_docs/content/documentation/webdriver/interactions/alerts.ja.md @@ -22,7 +22,7 @@ WebDriverはポップアップからテキストを取得し、これらのア {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L56" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L57" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -72,7 +72,7 @@ alert.accept() {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L71" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L72" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -129,7 +129,7 @@ alert.dismiss() {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L87" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L88" >}} {{< /tab >}} {{< tab header="Python" text=true >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/alerts.pt-br.md b/website_and_docs/content/documentation/webdriver/interactions/alerts.pt-br.md index 9b17d798786..e741c7e2ab7 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/alerts.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/interactions/alerts.pt-br.md @@ -26,7 +26,7 @@ alertas. {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L56" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L57" >}} {{< /tab >}} {{< tab header="Python" text=true >}} {{< gh-codeblock path="examples/python/tests/interactions/test_alerts.py#L12-L18" >}} @@ -63,7 +63,7 @@ Este exemplo também mostra uma abordagem diferente para armazenar um alerta: {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L71" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L72" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -122,7 +122,7 @@ Veja um exemplo de prompt . {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L87" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L88" >}} {{< /tab >}} {{< tab header="Python" text=true >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/alerts.zh-cn.md b/website_and_docs/content/documentation/webdriver/interactions/alerts.zh-cn.md index 2ebcf0ced87..b7986383e8f 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/alerts.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/interactions/alerts.zh-cn.md @@ -19,7 +19,7 @@ WebDriver可以从弹窗获取文本并接受或关闭这些警告. {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L56" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L51-L57" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -68,7 +68,7 @@ alert.accept() {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L71" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L66-L72" >}} {{< /tab >}} {{< tab header="Python" text=true >}} @@ -124,7 +124,7 @@ alert.dismiss() {{< tabpane langEqualsHeader=true >}} {{< tab header="Java" text=true >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L87" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/AlertsTest.java#L80-L88" >}} {{< /tab >}} {{< tab header="Python" text=true >}} From 723e2c92335d7b87f6871ede37b3e6d264980924 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Tue, 10 Dec 2024 07:38:52 +0530 Subject: [PATCH 10/16] [py] add remaining code for virtual authenticator (#2096)[deploy site] * [py] add remaining code for virtual authenticator * add --- .../interactions/test_virtual_authenticator.py | 4 ++-- .../interactions/virtual_authenticator.en.md | 14 +++++++------- .../interactions/virtual_authenticator.ja.md | 14 +++++++------- .../interactions/virtual_authenticator.pt-br.md | 14 +++++++------- .../interactions/virtual_authenticator.zh-cn.md | 14 +++++++------- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/examples/python/tests/interactions/test_virtual_authenticator.py b/examples/python/tests/interactions/test_virtual_authenticator.py index 25a23563522..a40576b91bf 100644 --- a/examples/python/tests/interactions/test_virtual_authenticator.py +++ b/examples/python/tests/interactions/test_virtual_authenticator.py @@ -48,7 +48,7 @@ def test_virtual_authenticator_options(): assert len(options.to_dict()) == 6 -def test_create_authenticator(driver): +def test_add_authenticator(driver): # Create virtual authenticator options options = VirtualAuthenticatorOptions() options.protocol = VirtualAuthenticatorOptions.Protocol.U2F @@ -93,7 +93,7 @@ def test_create_and_add_resident_key(driver): privatekey = urlsafe_b64decode(BASE64__ENCODED_PK) sign_count = 0 - # create a resident credential using above parameters + # create a resident credential using above parameters resident_credential = Credential.create_resident_credential(credential_id, rp_id, user_handle, privatekey, sign_count) # add the credential created to virtual authenticator diff --git a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.en.md b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.en.md index 229bcfcb71a..aa46ea9c05b 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.en.md +++ b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.en.md @@ -107,7 +107,7 @@ Creates a resident (stateful) credential with the given required credential [par {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L89-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}} @@ -132,7 +132,7 @@ Creates a resident (stateless) credential with the given required credential [pa {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L140-L147" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}} @@ -157,7 +157,7 @@ Registers the credential with the authenticator. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L150" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}} @@ -182,7 +182,7 @@ Returns the list of credentials owned by the authenticator. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L183" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}} @@ -207,7 +207,7 @@ Removes a credential from the authenticator based on the passed credential id. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L209" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -233,7 +233,7 @@ Removes all the credentials from the authenticator. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L239" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}} @@ -258,7 +258,7 @@ Sets whether the authenticator will simulate success or fail on user verificatio {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L245-L247" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.ja.md b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.ja.md index b5b7f772a61..f290d7cc9ce 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.ja.md +++ b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.ja.md @@ -113,7 +113,7 @@ Creates a resident (stateful) credential with the given required credential [par {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L89-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}} @@ -137,7 +137,7 @@ Creates a resident (stateless) credential with the given required credential [pa {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L140-L147" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}} @@ -161,7 +161,7 @@ Registers the credential with the authenticator. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L150" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}} @@ -185,7 +185,7 @@ Returns the list of credentials owned by the authenticator. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L183" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}} @@ -210,7 +210,7 @@ Removes a credential from the authenticator based on the passed credential id. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L209" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< /tab >}} @@ -234,7 +234,7 @@ Removes all the credentials from the authenticator. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L239" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}} @@ -258,7 +258,7 @@ Sets whether the authenticator will simulate success or fail on user verificatio {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L245-L247" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.pt-br.md b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.pt-br.md index d6288dde3cd..a7e6ce41e63 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.pt-br.md @@ -104,7 +104,7 @@ Cria uma resident (stateful) credential com os requeridos [parâmetros](https:// {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L89-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}} @@ -128,7 +128,7 @@ Cria uma resident (stateless) credential com os requeridos [parâmetros](https:/ {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L140-L147" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}} @@ -152,7 +152,7 @@ Registra a credencial com o autenticador. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L150" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}} @@ -176,7 +176,7 @@ Retorna a lista de credenciais que o autenticador possui. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L183" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}} @@ -201,7 +201,7 @@ Remove a credencial do autenticador baseado na id da credencial passado. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L209" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< /tab >}} @@ -225,7 +225,7 @@ Remove todas as credenciais do autenticador. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L239" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}} @@ -249,7 +249,7 @@ Diz se o autenticador simulará sucesso ou falha na verificação de usuário. {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L245-L247" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.zh-cn.md b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.zh-cn.md index 9e9cfb9fec1..0e5b7ba7c26 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.zh-cn.md @@ -104,7 +104,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L80-L97" >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L89-L97" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L80-L94" >}} @@ -128,7 +128,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L140-L147" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}} @@ -152,7 +152,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L150" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}} @@ -176,7 +176,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L183" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}} @@ -201,7 +201,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L209" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< /tab >}} @@ -225,7 +225,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L239" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}} @@ -249,7 +249,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身 {{< badge-code >}} {{< /tab >}} {{< tab header="Python" >}} -{{< badge-code >}} +{{< gh-codeblock path="examples/python/tests/interactions/test_virtual_authenticator.py#L245-L247" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}} From ff1ddd78c84b0027b43dcaebde1511c07c0edf7b Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 10 Dec 2024 11:42:53 +0100 Subject: [PATCH 11/16] Correcting HTML Unit [deploy site] --- .../content/project/structure/_index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website_and_docs/content/project/structure/_index.html b/website_and_docs/content/project/structure/_index.html index 816155534ee..283ca9ec403 100644 --- a/website_and_docs/content/project/structure/_index.html +++ b/website_and_docs/content/project/structure/_index.html @@ -52,12 +52,6 @@

Selenium IDE Committers

{{< gh-user "https://api.github.com/users/toddtarsi" >}}
-
-

Selenium Html Unit Committers

-
- {{< gh-user "https://api.github.com/users/rbri" >}} -
-

Selenium Committers

@@ -108,6 +102,12 @@

Selenium Committers

{{< gh-user "https://api.github.com/users/VietND96" >}}
+
+

Selenium HtmlUnit Driver Committers

+
+ {{< gh-user "https://api.github.com/users/rbri" >}} +
+

Selenium Website & Docs Committers

From 6b3cccc0e32b97a2a88350983e4b7c73836e0733 Mon Sep 17 00:00:00 2001 From: Puja Jagani Date: Mon, 16 Dec 2024 23:21:20 +0530 Subject: [PATCH 12/16] [java] Remove a wrong code example and update code lines (#2104) Remove a wrong code example and update code lines --- .../bidirectional/webdriver_bidi/LogTest.java | 15 --------------- .../documentation/webdriver/bidi/w3c/log.en.md | 6 +++--- .../documentation/webdriver/bidi/w3c/log.ja.md | 6 +++--- .../documentation/webdriver/bidi/w3c/log.pt-br.md | 6 +++--- .../documentation/webdriver/bidi/w3c/log.zh-cn.md | 10 +++++----- 5 files changed, 14 insertions(+), 29 deletions(-) diff --git a/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java b/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java index 19dd0f78813..11ccec61253 100644 --- a/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java +++ b/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java @@ -27,21 +27,6 @@ public void setup() { driver = new FirefoxDriver(options); } - @Test - public void jsErrors() { - CopyOnWriteArrayList logs = new CopyOnWriteArrayList<>(); - - try (LogInspector logInspector = new LogInspector(driver)) { - logInspector.onConsoleEntry(logs::add); - } - - driver.get("https://www.selenium.dev/selenium/web/bidi/logEntryAdded.html"); - driver.findElement(By.id("consoleLog")).click(); - - new WebDriverWait(driver, Duration.ofSeconds(5)).until(_d -> !logs.isEmpty()); - Assertions.assertEquals("Hello, world!", logs.get(0).getText()); - } - @Test void testListenToConsoleLog() throws ExecutionException, InterruptedException, TimeoutException { try (LogInspector logInspector = new LogInspector(driver)) { diff --git a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.en.md b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.en.md index 8ae3eb9e6d0..8cd08ba2532 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.en.md +++ b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.en.md @@ -16,7 +16,7 @@ Listen to the `console.log` events and register callbacks to process the event. {{< tabpane text=true >}} {{< tab header="Java" >}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L31-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L33-L39" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} @@ -36,7 +36,7 @@ and register callbacks to process the exception details. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L70-L77" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L73-L78" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} @@ -56,7 +56,7 @@ Listen to all JS logs at all levels and register callbacks to process the log. {{< tabpane text=true >}} {{< tab header="Java" >}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L52-L59" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L55-L60" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.ja.md b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.ja.md index 7b94be6de2f..4d4480e4f92 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.ja.md +++ b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.ja.md @@ -22,7 +22,7 @@ Listen to the `console.log` events and register callbacks to process the event. {{< tabpane text=true >}} {{< tab header="Java" >}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L31-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L33-L39" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} @@ -42,7 +42,7 @@ and register callbacks to process the exception details. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L70-L77" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L73-L78" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} @@ -62,7 +62,7 @@ Listen to all JS logs at all levels and register callbacks to process the log. {{< tabpane text=true >}} {{< tab header="Java" >}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L52-L59" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L55-L60" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.pt-br.md b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.pt-br.md index be0814eaa07..739d7a2e68f 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.pt-br.md @@ -22,7 +22,7 @@ Listen to the `console.log` events and register callbacks to process the event. {{< tabpane text=true >}} {{< tab header="Java" >}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L31-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L33-L39" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} @@ -42,7 +42,7 @@ and register callbacks to process the exception details. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L70-L77" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L73-L78" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} @@ -62,7 +62,7 @@ Listen to all JS logs at all levels and register callbacks to process the log. {{< tabpane text=true >}} {{< tab header="Java" >}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L52-L59" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L55-L60" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.zh-cn.md b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.zh-cn.md index 240ac370a90..fc02584fe05 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/w3c/log.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/bidi/w3c/log.zh-cn.md @@ -22,13 +22,13 @@ Listen to the `console.log` events and register callbacks to process the event. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L31-L38" >}} +{{< badge-version version="4.8" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L33-L39" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-version version="4.8" >}} {{< gh-codeblock path="/examples/javascript/test/bidirectional/logInspector.spec.js#L23-37" >}} {{< /tab >}} {{< tab header="Kotlin" >}} @@ -43,13 +43,12 @@ and register callbacks to process the exception details. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L70-L77" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L73-L78" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} {{< /tab >}} {{< tab header="JavaScript" >}} -{{< badge-version version="4.8" >}} {{< gh-codeblock path="/examples/javascript/test/bidirectional/logInspector.spec.js#L44-54" >}} {{< /tab >}} {{< tab header="Kotlin" >}} @@ -63,7 +62,8 @@ Listen to all JS logs at all levels and register callbacks to process the log. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L52-L59" >}} +{{< badge-version version="4.8" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/LogTest.java#L55-L60" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-code >}} From 66bd786821fc98816ba9bd0e1e20ad8be6a04ce6 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Mon, 16 Dec 2024 23:24:37 +0530 Subject: [PATCH 13/16] [java] fix java code lines for edge (#2103)[deploy site] Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com> --- .../webdriver/browsers/edge.en.md | 22 +++++++++---------- .../webdriver/browsers/edge.ja.md | 22 +++++++++---------- .../webdriver/browsers/edge.pt-br.md | 20 ++++++++--------- .../webdriver/browsers/edge.zh-cn.md | 22 +++++++++---------- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.en.md b/website_and_docs/content/documentation/webdriver/browsers/edge.en.md index 28c732910e4..bbbe526fa5d 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.en.md @@ -20,7 +20,7 @@ Starting an Edge session with basic defined options looks like this: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} @@ -52,7 +52,7 @@ Add an argument to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}} @@ -80,7 +80,7 @@ Add a browser location to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L54" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L55" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}} @@ -109,7 +109,7 @@ Add an extension to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}} @@ -166,7 +166,7 @@ Set excluded arguments on options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}} @@ -203,7 +203,7 @@ To change the logging output to save to a specific file: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}} **Note**: Java also allows setting file output by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ Property value: String representing path to log file @@ -233,7 +233,7 @@ To change the logging output to display in the console as STDOUT: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}} **Note**: Java also allows setting console output by System Property;\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` @@ -266,7 +266,7 @@ so this example is just setting the log level generically: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}} **Note**: Java also allows setting log level by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\ Property value: String representation of `ChromiumDriverLogLevel` enum @@ -300,7 +300,7 @@ The log output will be managed by the driver, not the process, so minor differen {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}} **Note**: Java also allows toggling these features by System Property:\ Property keys: `EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` and `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\ Property value: `"true"` or `"false"` @@ -332,7 +332,7 @@ Note that this is an unsupported feature, and bugs will not be investigated. {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}} **Note**: Java also allows disabling build checks by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\ Property value: `"true"` or `"false"` @@ -443,7 +443,7 @@ You can simulate various network conditions. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}} {{< /tab >}} {{< tab header="Python" >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md b/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md index afa97393464..2442ba4d41b 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md @@ -21,7 +21,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https:// {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L38" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} @@ -52,7 +52,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https:// {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}} @@ -79,7 +79,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https:// {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L54" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L55" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}} @@ -106,7 +106,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https:// {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}} @@ -158,7 +158,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}} @@ -193,7 +193,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}} **注意**: Javaでもシステムプロパティを使用してファイル出力を設定できます:\ プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ プロパティ値: ログファイルのパスを表す文字列 @@ -223,7 +223,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}} **注**: Javaでは、システムプロパティを使用してコンソール出力を設定することもできます。\ プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ プロパティ値:`DriverService.LOG_STDOUT` または `DriverService.LOG_STDERR` @@ -254,7 +254,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}} **注意**: Javaでは、システムプロパティを使用してログレベルを設定することもできます:\ プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\ プロパティ値:`ChromiumDriverLogLevel` 列挙型の文字列表現 @@ -287,7 +287,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}} **注意**: Javaでは、これらの機能をSystem Propertyによって切り替えることもできます:\ プロパティキー:`EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` および `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\ プロパティ値: `"true"` または `"false"` @@ -318,7 +318,7 @@ Edge ブラウザとmsedgedriverのバージョンは一致する必要があり {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}} **注**: Javaでは、システムプロパティを使用してビルドチェックを無効にすることもできます:\ プロパティキー:`EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\ プロパティ値: `"true"` または `"false"` @@ -429,7 +429,7 @@ Edge を使用して Chrome Cast デバイスを操作し、タブを共有す {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}} {{< /tab >}} {{< tab header="Python" >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md index b4393d23d60..c2a5d283bae 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md @@ -22,7 +22,7 @@ Este é um exemplo de como iniciar uma sessão Edge com um conjunto de opções {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} @@ -54,7 +54,7 @@ Adicione uma opção: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}} @@ -111,7 +111,7 @@ Add an extension to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}} @@ -168,7 +168,7 @@ Set excluded arguments on options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}} @@ -205,7 +205,7 @@ To change the logging output to save to a specific file: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}} **Note**: Java also allows setting file output by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ Property value: String representing path to log file @@ -235,7 +235,7 @@ To change the logging output to display in the console as STDOUT: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}} **Note**: Java also allows setting console output by System Property;\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` @@ -268,7 +268,7 @@ so this example is just setting the log level generically: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}} **Note**: Java also allows setting log level by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\ Property value: String representation of `ChromiumDriverLogLevel` enum @@ -302,7 +302,7 @@ The log output will be managed by the driver, not the process, so minor differen {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}} **Note**: Java also allows toggling these features by System Property:\ Property keys: `EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` and `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\ Property value: `"true"` or `"false"` @@ -334,7 +334,7 @@ Note that this is an unsupported feature, and bugs will not be investigated. {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}} **Note**: Java also allows disabling build checks by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\ Property value: `"true"` or `"false"` @@ -445,7 +445,7 @@ You can simulate various network conditions. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}} {{< /tab >}} {{< tab header="Python" >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md index ff61bdb78dc..a78ced964fb 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.zh-cn.md @@ -22,7 +22,7 @@ Capabilities unique to Chromium are documented at Google's page for {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} @@ -54,7 +54,7 @@ Add an argument to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}} @@ -82,7 +82,7 @@ Add a browser location to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L54" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L55" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}} @@ -111,7 +111,7 @@ Add an extension to options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}} @@ -168,7 +168,7 @@ Set excluded arguments on options: {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}} {{< /tab >}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}} @@ -205,7 +205,7 @@ To change the logging output to save to a specific file: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}} **Note**: Java also allows setting file output by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ Property value: String representing path to log file @@ -235,7 +235,7 @@ To change the logging output to display in the console as STDOUT: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}} **Note**: Java also allows setting console output by System Property;\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` @@ -268,7 +268,7 @@ so this example is just setting the log level generically: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}} **Note**: Java also allows setting log level by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\ Property value: String representation of `ChromiumDriverLogLevel` enum @@ -302,7 +302,7 @@ The log output will be managed by the driver, not the process, so minor differen {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}} **Note**: Java also allows toggling these features by System Property:\ Property keys: `EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` and `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\ Property value: `"true"` or `"false"` @@ -334,7 +334,7 @@ Note that this is an unsupported feature, and bugs will not be investigated. {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}} **Note**: Java also allows disabling build checks by System Property:\ Property key: `EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\ Property value: `"true"` or `"false"` @@ -445,7 +445,7 @@ You can simulate various network conditions. {{< tabpane text=true >}} {{< tab header="Java" >}} -{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}} +{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}} {{< /tab >}} {{< tab header="Python" >}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}} From 4998efedafc30474741a02de1859c909ac639891 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:47:14 -0500 Subject: [PATCH 14/16] Bump nanoid from 3.3.7 to 3.3.8 in /website_and_docs (#2101) Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.3.7...3.3.8) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- website_and_docs/package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website_and_docs/package-lock.json b/website_and_docs/package-lock.json index 08529751ff8..165fa80261b 100644 --- a/website_and_docs/package-lock.json +++ b/website_and_docs/package-lock.json @@ -503,9 +503,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "funding": [ { "type": "github", @@ -1245,9 +1245,9 @@ } }, "nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==" + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==" }, "node-releases": { "version": "2.0.18", From 8c378ccf0d960e2438537319836db4b9c4db9d34 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:45:31 -0500 Subject: [PATCH 15/16] fix(deps): update dependency org.junit.jupiter:junit-jupiter-engine to v5.11.4 (#2105) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com> --- examples/java/build.gradle | 2 +- examples/java/pom.xml | 2 +- examples/kotlin/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/java/build.gradle b/examples/java/build.gradle index 6b59d7049c2..ec4fece1f95 100644 --- a/examples/java/build.gradle +++ b/examples/java/build.gradle @@ -11,7 +11,7 @@ repositories { dependencies { testImplementation 'org.seleniumhq.selenium:selenium-java:4.27.0' - testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.3' + testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.4' } test { diff --git a/examples/java/pom.xml b/examples/java/pom.xml index 6660c4f8316..63259209cab 100644 --- a/examples/java/pom.xml +++ b/examples/java/pom.xml @@ -40,7 +40,7 @@ org.junit.jupiter junit-jupiter-engine - 5.11.3 + 5.11.4 test diff --git a/examples/kotlin/pom.xml b/examples/kotlin/pom.xml index 9ca94d9d711..6b35c216cb8 100644 --- a/examples/kotlin/pom.xml +++ b/examples/kotlin/pom.xml @@ -14,7 +14,7 @@ 2.0.16 1.5.12 - 5.11.3 + 5.11.4 5.2.3 3.5.2 From 47280ab4d4fe64adf4cbfc35ec6179981c051bdb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:10:49 -0500 Subject: [PATCH 16/16] chore(deps): update dependency rubocop-rspec to v3.3.0 (#2098) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com> --- examples/ruby/Gemfile.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/ruby/Gemfile.lock b/examples/ruby/Gemfile.lock index b015e871209..c12bca994a9 100644 --- a/examples/ruby/Gemfile.lock +++ b/examples/ruby/Gemfile.lock @@ -4,17 +4,17 @@ GEM ast (2.4.2) base64 (0.2.0) diff-lcs (1.5.1) - json (2.7.5) + json (2.9.0) language_server-protocol (3.17.0.3) logger (1.6.1) parallel (1.26.3) - parser (3.3.5.0) + parser (3.3.6.0) ast (~> 2.4.1) racc racc (1.8.1) rainbow (3.1.1) rake (13.2.1) - regexp_parser (2.9.2) + regexp_parser (2.9.3) rexml (3.3.9) rspec (3.13.0) rspec-core (~> 3.13.0) @@ -29,19 +29,19 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.0) - rubocop (1.68.0) + rubocop (1.69.2) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.4, < 3.0) - rubocop-ast (>= 1.32.2, < 2.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.36.2, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.33.0) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.36.2) parser (>= 3.3.1.0) - rubocop-rspec (3.2.0) + rubocop-rspec (3.3.0) rubocop (~> 1.61) ruby-progressbar (1.13.0) rubyzip (2.3.2)