diff --git a/examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs b/examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs index abcde4c606fe..cbfdf48d4d45 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 { diff --git a/examples/java/build.gradle b/examples/java/build.gradle index 6b59d7049c2c..ec4fece1f95e 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 6660c4f83163..63259209cabd 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/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 19dd0f788132..11ccec612536 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/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java b/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java index 70ea5c18240e..28166e124804 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/kotlin/pom.xml b/examples/kotlin/pom.xml index 08929b311e69..39c06632b50b 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 diff --git a/examples/python/tests/browsers/test_firefox.py b/examples/python/tests/browsers/test_firefox.py index 82ebc47abf3e..5780e16106fd 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/examples/python/tests/elements/test_information.py b/examples/python/tests/elements/test_information.py index 53b695b6fc83..a2d5d030af81 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/examples/python/tests/interactions/test_virtual_authenticator.py b/examples/python/tests/interactions/test_virtual_authenticator.py index 25a235635223..a40576b91bfa 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/examples/ruby/Gemfile.lock b/examples/ruby/Gemfile.lock index b015e8712090..c12bca994a93 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) 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 8ae3eb9e6d02..8cd08ba25321 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 7b94be6de2f8..4d4480e4f92c 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 be0814eaa07a..739d7a2e68f2 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 240ac370a900..fc02584fe050 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 >}} 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 28c732910e44..bbbe526fa5de 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 afa973934649..2442ba4d41bd 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 b4393d23d608..c2a5d283bae3 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 ff61bdb78dce..a78ced964fb7 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" >}} 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 f2eac7c6b549..e38174e824e5 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" text=true >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< 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 126638d5acb8..664ab91d6bf6 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" text=true >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< 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 f36890f487da..0603016ae1d2 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" text=true >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< 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 b56e5f62b742..d1384cebc591 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" text=true >}} +{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}} +{{< /tab >}} +{{< tab header="Python" text=true >}} +{{< 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/elements/information.en.md b/website_and_docs/content/documentation/webdriver/elements/information.en.md index 678091095968..cc456c78bdcd 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 100d73e3f370..70b5d3d18153 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 0ce2be71c568..4b985b45398c 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 e5ca661fe87b..d603062dba81 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 >}} 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 d9c30c6eab63..654f2a489429 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 7c4dff235373..0800ff320eec 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 190899af0990..abc2839a3368 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 a05448a21886..03f348ea38d9 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/alerts.en.md b/website_and_docs/content/documentation/webdriver/interactions/alerts.en.md index 961f2143639a..8ddf4967592e 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 519f9142dc5d..eed2c39bda59 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 9b17d798786a..e741c7e2ab78 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 2ebcf0ced87e..b7986383e8f3 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 >}} 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 7346e36eabf1..faf9b67ed173 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 da5724a1f849..bbaf18f3eb89 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 ab5cda4e4cda..a43b9f30ff6f 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 4275daf24f82..ee59ba099913 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" >}} 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 229bcfcb71a3..aa46ea9c05b3 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 b5b7f772a615..f290d7cc9ced 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 d6288dde3cd3..a7e6ce41e63a 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 9e9cfb9fec17..0e5b7ba7c263 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" >}} diff --git a/website_and_docs/content/project/_index.html b/website_and_docs/content/project/_index.html index 77a8e37e4ffc..71da3e91f4dc 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 0f97c7254178..283ca9ec403a 100644 --- a/website_and_docs/content/project/structure/_index.html +++ b/website_and_docs/content/project/structure/_index.html @@ -102,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

diff --git a/website_and_docs/layouts/partials/announcement-banner.html b/website_and_docs/layouts/partials/announcement-banner.html index a4457a332eb9..c3b7d2c60cbd 100644 --- a/website_and_docs/layouts/partials/announcement-banner.html +++ b/website_and_docs/layouts/partials/announcement-banner.html @@ -6,8 +6,12 @@
diff --git a/website_and_docs/package-lock.json b/website_and_docs/package-lock.json index 08529751ff8d..165fa80261b9 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",