diff --git a/examples/python/tests/drivers/test_options.py b/examples/python/tests/drivers/test_options.py index e45895911566..fb5193f33b2f 100644 --- a/examples/python/tests/drivers/test_options.py +++ b/examples/python/tests/drivers/test_options.py @@ -5,40 +5,24 @@ def test_page_load_strategy_normal(): options = webdriver.ChromeOptions() - options.page_load_strategy = 'normal' driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() def test_page_load_strategy_eager(): options = webdriver.ChromeOptions() - options.page_load_strategy = 'eager' driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() def test_page_load_strategy_none(): options = webdriver.ChromeOptions() - options.page_load_strategy = 'none' driver = webdriver.Chrome(options=options) - - driver.get("https://www.selenium.dev/") - driver.quit() - -def test_capabilities(): - options = webdriver.ChromeOptions() - options.browser_version = 'stable' - options.platform_name = 'any' - options.accept_insecure_certs = True - driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -46,7 +30,6 @@ def test_timeouts_script(): options = webdriver.ChromeOptions() options.timeouts = { 'script': 5000 } driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -54,7 +37,6 @@ def test_timeouts_page_load(): options = webdriver.ChromeOptions() options.timeouts = { 'pageLoad': 5000 } driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -62,7 +44,6 @@ def test_timeouts_implicit_wait(): options = webdriver.ChromeOptions() options.timeouts = { 'implicit': 5000 } driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -70,7 +51,6 @@ def test_unhandled_prompt(): options = webdriver.ChromeOptions() options.unhandled_prompt_behavior = 'accept' driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -78,7 +58,6 @@ def test_set_window_rect(): options = webdriver.FirefoxOptions() options.set_window_rect = True # Full support in Firefox driver = webdriver.Firefox(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -86,7 +65,6 @@ def test_strict_file_interactability(): options = webdriver.ChromeOptions() options.strict_file_interactability = True driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") driver.quit() @@ -94,6 +72,34 @@ def test_proxy(): options = webdriver.ChromeOptions() options.proxy = Proxy({ 'proxyType': ProxyType.MANUAL, 'httpProxy' : 'http.proxy:1234'}) driver = webdriver.Chrome(options=options) - driver.get("https://www.selenium.dev/") - driver.quit() \ No newline at end of file + driver.quit() + +def test_set_browser_name(): + options = webdriver.ChromeOptions() + assert options.capabilities['browserName'] == 'chrome' + driver = webdriver.Chrome(options=options) + driver.get("https://www.selenium.dev/") + driver.quit() + +def test_set_browser_version(): + options = webdriver.ChromeOptions() + options.browser_version = 'latest' + assert options.capabilities['browserVersion'] == 'latest' + driver = webdriver.Chrome(options=options) + driver.get("https://www.selenium.dev/") + driver.quit() + +def test_platform_name(): + options = webdriver.ChromeOptions() + options.platform_name = 'any' + driver = webdriver.Chrome(options=options) + driver.get("https://www.selenium.dev/") + driver.quit() + +def test_accept_insecure_certs(): + options = webdriver.ChromeOptions() + options.accept_insecure_certs = True + driver = webdriver.Chrome(options=options) + driver.get("https://www.selenium.dev/") + driver.quit() diff --git a/examples/python/tests/interactions/test_prints_page.py b/examples/python/tests/interactions/test_prints_page.py new file mode 100644 index 000000000000..2735e4228fc2 --- /dev/null +++ b/examples/python/tests/interactions/test_prints_page.py @@ -0,0 +1,15 @@ +import pytest +from selenium import webdriver +from selenium.webdriver.common.print_page_options import PrintOptions + +pytest.fixture() +def driver(): + driver = webdriver.Chrome() + yield driver + driver.quit() + +def test_prints_page(driver): + driver.get("https://www.selenium.dev/") + print_options = PrintOptions() + pdf = driver.print_page(print_options) + assert len(pdf) > 0 \ No newline at end of file diff --git a/website_and_docs/content/blog/2024/selenium-milestone-20yrs-blog.md b/website_and_docs/content/blog/2024/selenium-milestone-20yrs-blog.md index d63fc5c4a784..f6f524595991 100644 --- a/website_and_docs/content/blog/2024/selenium-milestone-20yrs-blog.md +++ b/website_and_docs/content/blog/2024/selenium-milestone-20yrs-blog.md @@ -42,3 +42,14 @@ Join Us in Celebrating Selenium’s Incredible Journey! For 20 years, Selenium has helped shape how we test, automate, and innovate on the web. This is your opportunity to celebrate that legacy and learn what the future holds for browser automation. We can’t wait to see you there! Event Organizers - **Maaret**, **Diego**, and **Pallavi**. +## Watch the Recording of Our 20th Anniversary Event + +Couldn’t join us live? Watch the entire **"Celebrating 20 Years of Selenium"** +event on YouTube. Relive the milestone moments, hear directly from +the Selenium leadership team, and get insights into the future of browser automation. + +📹 Recording Link: [Watch the Event Recording on YouTube](https://www.youtube.com/watch?v=TO-ZCl2LZ50) + +This recording covers the highlights, including discussions on Selenium’s evolution, +its role in the testing ecosystem, and the exciting advancements in WebDriver BiDi. + diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.en.md b/website_and_docs/content/documentation/webdriver/drivers/options.en.md index dd767e885b2e..3bd3b64f5795 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.en.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.en.md @@ -34,7 +34,7 @@ Browser name is set by default when using an Options class instance. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L73-74" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L36" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L79-80" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -61,7 +61,7 @@ it will be automatically downloaded by [Selenium Manager]({{< ref "../../seleniu {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L80-82" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L37" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L86-88" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -117,7 +117,7 @@ event fire is returned. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L21-L23">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L9-L10">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L7-9">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -174,7 +174,7 @@ event fire is returned. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L34-L36">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L19-L20">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L15-L17">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -230,7 +230,7 @@ WebDriver only waits until the initial page is downloaded. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L47-L49">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L29-L30">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L23-L25">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -290,7 +290,7 @@ setting `platformName` sets the OS at the remote-end. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L88-L90">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L38">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L94-96">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -328,7 +328,7 @@ effect for the entire session. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L60-L61">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L39-40">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L101-103">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -363,7 +363,7 @@ is imposed when a new session is created by WebDriver. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L96-L98">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L47-48">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L30-32">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -392,7 +392,7 @@ _TimeoutException_. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L111-L113">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L55-56">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L37-39">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -419,7 +419,7 @@ is imposed when a new session is created by WebDriver. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L126-L128">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L63-64">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L44-46">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -457,7 +457,7 @@ user prompt encounters at the remote-end. This is defined by {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L141-L142">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L71-72">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L51-53">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -482,7 +482,7 @@ Indicates whether the remote end supports all of the [resizing and repositioning {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L151-L152">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L79-80">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L58-60">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -510,7 +510,7 @@ when using _Element Send Keys_ with hidden file upload controls. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L163-L164">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L87-88">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L65-67">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -571,7 +571,7 @@ public class ProxyTest { ``` {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L95-96">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L72-74">}} {{% /tab %}} {{% tab header="CSharp" %}} ```CSharp diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md index 6df6df28da6b..90d657ccc802 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md @@ -34,7 +34,7 @@ Browser name is set by default when using an Options class instance. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L73-74" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L36" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L79-80" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -62,7 +62,7 @@ it will be automatically downloaded by [Selenium Manager]({{< ref "../../seleniu {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L80-82" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L37" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L86-88" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -115,7 +115,7 @@ WebDriver は [load](https://developer.mozilla.org/ja/docs/Web/API/Window/load_e {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L21-L23">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L9-L10">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L7-9">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -171,7 +171,7 @@ WebDriver は、[DOMContentLoaded](https://developer.mozilla.org/ja/docs/Web/API {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L34-L36">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L19-L20">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L15-L17">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -226,7 +226,7 @@ WebDriver は、最初のページがダウンロードされるまで待機し {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L47-L49">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L29-L30">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L23-L25">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -284,7 +284,7 @@ fun main() { {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L88-L90">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L38">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L94-96">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -316,7 +316,7 @@ fun main() { {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L60-L61">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L39-40">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L101-103">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -348,7 +348,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L96-L98">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L47-48">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L30-32">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -374,7 +374,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L111-L113">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L55-56">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L37-39">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -399,7 +399,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L126-L128">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L63-64">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L44-46">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -436,7 +436,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L141-L142">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L71-72">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L51-53">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -462,7 +462,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L151-L152">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L79-80">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L58-60">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -489,7 +489,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L163-L164">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L87-88">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L65-67">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -545,7 +545,7 @@ public class ProxyTest { ``` {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L95-96">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L72-74">}} {{% /tab %}} {{% tab header="CSharp" %}} ```CSharp diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md index b5b295536e6f..574b772527ec 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md @@ -46,7 +46,7 @@ extremidade remota, a criação da sessão falhará. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L73-74" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L36" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L79-80" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -74,7 +74,7 @@ tiver apenas 80 instalados, a criação da sessão falhará. {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L80-82" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L37" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L86-88" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -130,7 +130,7 @@ event fire is returned. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L21-L23">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L9-L10">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L7-9">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -186,7 +186,7 @@ event fire is returned. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L34-L36">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L19-L20">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L15-L17">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -241,7 +241,7 @@ WebDriver only waits until the initial page is downloaded. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L47-L49">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L29-L30">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L23-L25">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -301,7 +301,7 @@ setting `platformName` sets the OS at the remote-end. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L88-L90">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L38">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L94-96">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -339,7 +339,7 @@ effect for the entire session. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L60-L61">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L39-40">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L101-103">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -375,7 +375,7 @@ is imposed when a new session is created by WebDriver. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L96-L98">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L47-48">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L30-32">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -404,7 +404,7 @@ _TimeoutException_. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L111-L113">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L55-56">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L37-39">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -431,7 +431,7 @@ is imposed when a new session is created by WebDriver. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L126-L128">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L63-64">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L44-46">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -470,7 +470,7 @@ user prompt encounters at the remote-end. This is defined by {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L141-L142">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L71-72">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L51-53">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -496,7 +496,7 @@ Indicates whether the remote end supports all of the [resizing and repositioning {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L151-L152">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L79-80">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L58-60">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -525,7 +525,7 @@ when using _Element Send Keys_ with hidden file upload controls. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L163-L164">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L87-88">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L65-67">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -587,7 +587,7 @@ public class ProxyTest { ``` {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L95-96">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L72-74">}} {{% /tab %}} {{% tab header="CSharp" %}} ```CSharp diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md index b94b88ac546f..035ae4883aae 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.zh-cn.md @@ -37,7 +37,7 @@ aliases: [ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L73-74" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L36" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L79-80" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -66,7 +66,7 @@ aliases: [ {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L80-82" >}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L37" >}} +{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L86-88" >}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -126,7 +126,7 @@ WebDriver一直等到 [load](https://developer.mozilla.org/en-US/docs/Web/API/Wi {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L21-L23">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L9-L10">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L7-9">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -182,7 +182,7 @@ WebDriver一直等到 [DOMContentLoaded](https://developer.mozilla.org/en-US/doc {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L34-L36">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L19-L20">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L15-L17">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -237,7 +237,7 @@ WebDriver 仅等待初始页面已下载. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L47-L49">}} {{< /tab >}} {{< tab header="Python" text=true >}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L29-L30">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L23-L25">}} {{< /tab >}} {{< tab header="CSharp" >}} using OpenQA.Selenium; @@ -297,7 +297,7 @@ fun main() { {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L88-L90">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L38">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L94-96">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -332,7 +332,7 @@ fun main() { {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L60-L61">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L39-40">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L101-103">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -367,7 +367,7 @@ WebDriver创建新会话时, {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L96-L98">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L47-48">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L30-32">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -395,7 +395,7 @@ WebDriver创建新会话时, {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L111-L113">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L55-56">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L37-39">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -421,7 +421,7 @@ WebDriver创建新会话时, {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L126-L128">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L63-64">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L44-46">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -460,7 +460,7 @@ WebDriver创建新会话时, {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L141-L142">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L71-72">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L51-53">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -487,7 +487,7 @@ WebDriver创建新会话时, {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L151-L152">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L79-80">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L58-60">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -516,7 +516,7 @@ WebDriver创建新会话时, {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L163-L164">}} {{< /tab >}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L87-88">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L65-67">}} {{% /tab %}} {{< tab header="CSharp" >}} {{< badge-code >}} @@ -575,7 +575,7 @@ public class ProxyTest { ``` {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L95-96">}} +{{< gh-codeblock path="/examples/python/tests/drivers/test_options.py#L72-74">}} {{% /tab %}} {{% tab header="CSharp" %}} ```CSharp diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md index 37277550a7bc..c9f160ceed03 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.en.md @@ -210,8 +210,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B {{< tab header="Ruby" >}} {{< badge-implementation >}} {{< /tab >}} -{{< tab header="Python" >}} -{{< badge-code >}} +{{% tab header="Python" %}} +**print_page()** +{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-implementation >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md index 25fd68d99315..dacc73ad9b68 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md @@ -210,8 +210,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B {{< tab header="Ruby" >}} {{< badge-implementation >}} {{< /tab >}} -{{< tab header="Python" >}} -{{< badge-code >}} +{{% tab header="Python" %}} +**print_page()** +{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-implementation >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md index f172d2538658..59c05c42ff85 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md @@ -210,8 +210,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B {{< tab header="Ruby" >}} {{< badge-implementation >}} {{< /tab >}} -{{< tab header="Python" >}} -{{< badge-code >}} +{{% tab header="Python" %}} +**print_page()** +{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-implementation >}} diff --git a/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md b/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md index a5383bd7dcce..0268055e33e7 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/interactions/print_page.zh-cn.md @@ -210,8 +210,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B {{< tab header="Ruby" >}} {{< badge-implementation >}} {{< /tab >}} -{{< tab header="Python" >}} -{{< badge-code >}} +{{% tab header="Python" %}} +**print_page()** +{{< gh-codeblock path="examples/python/tests/interactions/test_prints_page.py#L11-L15" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-implementation >}} diff --git a/website_and_docs/content/ecosystem/_index.html b/website_and_docs/content/ecosystem/_index.html index 1cf19fe4365d..64963cbf544d 100644 --- a/website_and_docs/content/ecosystem/_index.html +++ b/website_and_docs/content/ecosystem/_index.html @@ -476,6 +476,17 @@

Frameworks

Java Mohab Mohie + + +

+ + Ellithium + +

+ + Java + Abdelrahman Ellithy +

diff --git a/website_and_docs/layouts/partials/announcement-banner.html b/website_and_docs/layouts/partials/announcement-banner.html index eeda4eae191b..a4457a332eb9 100644 --- a/website_and_docs/layouts/partials/announcement-banner.html +++ b/website_and_docs/layouts/partials/announcement-banner.html @@ -9,10 +9,6 @@

Selenium Conf 2025 Call for Proposals is now open! Submissions close 01 Dec, 2024. Learn more & submit!

-

- Join us for Celebrating 20 Glorious Years of Selenium on Oct 28th, 2024 - - More information here -

diff --git a/website_and_docs/layouts/partials/selenium-clients-and-webdriver-bindings.html b/website_and_docs/layouts/partials/selenium-clients-and-webdriver-bindings.html index 98baa7539dcc..fbc10ba8244d 100644 --- a/website_and_docs/layouts/partials/selenium-clients-and-webdriver-bindings.html +++ b/website_and_docs/layouts/partials/selenium-clients-and-webdriver-bindings.html @@ -36,7 +36,7 @@

Selenium Clients and WebDriver Language Bin

- + API Docs