From 3a3c6b9faabfe80933e5e6ec9cf31e1cbc874104 Mon Sep 17 00:00:00 2001 From: Swastik Baranwal Date: Sat, 30 Nov 2024 00:39:18 +0530 Subject: [PATCH] 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" >}}