diff --git a/examples/python/tests/actions_api/test_mouse.py b/examples/python/tests/actions_api/test_mouse.py index cc114389ccf4..9df04fd599f7 100644 --- a/examples/python/tests/actions_api/test_mouse.py +++ b/examples/python/tests/actions_api/test_mouse.py @@ -1,17 +1,19 @@ +import pytest from time import sleep - from selenium.webdriver import ActionChains from selenium.webdriver.common.actions.action_builder import ActionBuilder from selenium.webdriver.common.actions.mouse_button import MouseButton from selenium.webdriver.common.by import By +from selenium.webdriver.support.ui import WebDriverWait +from selenium.webdriver.support import expected_conditions as EC def test_click_and_hold(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') clickable = driver.find_element(By.ID, "clickable") - ActionChains(driver)\ - .click_and_hold(clickable)\ + ActionChains(driver) \ + .click_and_hold(clickable) \ .perform() sleep(0.5) @@ -22,8 +24,8 @@ def test_click_and_release(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') clickable = driver.find_element(By.ID, "click") - ActionChains(driver)\ - .click(clickable)\ + ActionChains(driver) \ + .click(clickable) \ .perform() assert "resultPage.html" in driver.current_url @@ -33,8 +35,8 @@ def test_right_click(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') clickable = driver.find_element(By.ID, "clickable") - ActionChains(driver)\ - .context_click(clickable)\ + ActionChains(driver) \ + .context_click(clickable) \ .perform() sleep(0.5) @@ -72,8 +74,8 @@ def test_double_click(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') clickable = driver.find_element(By.ID, "clickable") - ActionChains(driver)\ - .double_click(clickable)\ + ActionChains(driver) \ + .double_click(clickable) \ .perform() assert driver.find_element(By.ID, "click-status").text == "double-clicked" @@ -83,8 +85,8 @@ def test_hover(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') hoverable = driver.find_element(By.ID, "hover") - ActionChains(driver)\ - .move_to_element(hoverable)\ + ActionChains(driver) \ + .move_to_element(hoverable) \ .perform() assert driver.find_element(By.ID, "move-status").text == "hovered" @@ -94,8 +96,8 @@ def test_move_by_offset_from_element(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') mouse_tracker = driver.find_element(By.ID, "mouse-tracker") - ActionChains(driver)\ - .move_to_element_with_offset(mouse_tracker, 8, 0)\ + ActionChains(driver) \ + .move_to_element_with_offset(mouse_tracker, 8, 0) \ .perform() coordinates = driver.find_element(By.ID, "relative-location").text.split(", ") @@ -104,7 +106,7 @@ def test_move_by_offset_from_element(driver): def test_move_by_offset_from_viewport_origin_ab(driver): driver.get('https://selenium.dev/selenium/web/mouse_interaction.html') - + WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "absolute-location"))) action = ActionBuilder(driver) action.pointer_action.move_to_location(8, 0) action.perform() @@ -121,8 +123,8 @@ def test_move_by_offset_from_current_pointer_ab(driver): action.pointer_action.move_to_location(6, 3) action.perform() - ActionChains(driver)\ - .move_by_offset( 13, 15)\ + ActionChains(driver) \ + .move_by_offset(13, 15) \ .perform() coordinates = driver.find_element(By.ID, "absolute-location").text.split(", ") @@ -136,8 +138,8 @@ def test_drag_and_drop_onto_element(driver): draggable = driver.find_element(By.ID, "draggable") droppable = driver.find_element(By.ID, "droppable") - ActionChains(driver)\ - .drag_and_drop(draggable, droppable)\ + ActionChains(driver) \ + .drag_and_drop(draggable, droppable) \ .perform() assert driver.find_element(By.ID, "drop-status").text == "dropped" @@ -149,15 +151,8 @@ def test_drag_and_drop_by_offset(driver): draggable = driver.find_element(By.ID, "draggable") start = draggable.location finish = driver.find_element(By.ID, "droppable").location - ActionChains(driver)\ - .drag_and_drop_by_offset(draggable, finish['x'] - start['x'], finish['y'] - start['y'])\ + ActionChains(driver) \ + .drag_and_drop_by_offset(draggable, finish['x'] - start['x'], finish['y'] - start['y']) \ .perform() assert driver.find_element(By.ID, "drop-status").text == "dropped" - - - - - - - diff --git a/examples/python/tests/bidi/cdp/test_script.py b/examples/python/tests/bidi/cdp/test_script.py index c547de1d25da..81d7c5d480de 100644 --- a/examples/python/tests/bidi/cdp/test_script.py +++ b/examples/python/tests/bidi/cdp/test_script.py @@ -1,6 +1,8 @@ import pytest from selenium.webdriver.common.by import By from selenium.webdriver.common.log import Log +from selenium.webdriver.support.ui import WebDriverWait +from selenium.webdriver.support import expected_conditions as EC @pytest.mark.trio @@ -8,6 +10,7 @@ async def test_mutation(driver): async with driver.bidi_connection() as session: async with Log(driver, session).mutation_events() as event: driver.get('https://www.selenium.dev/selenium/web/dynamic.html') + WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.ID, "reveal"))) driver.find_element(By.ID, "reveal").click() assert event["element"] == driver.find_element(By.ID, "revealed") diff --git a/website_and_docs/content/documentation/webdriver/actions_api/mouse.en.md b/website_and_docs/content/documentation/webdriver/actions_api/mouse.en.md index 912517abaa43..a8932aaca1b0 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/mouse.en.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/mouse.en.md @@ -25,7 +25,7 @@ This is useful for focusing a specific element: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L22-L25" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L12-L15" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L14-L17" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L17-L20" >}} @@ -51,7 +51,7 @@ This is otherwise known as "clicking": {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L34-L37" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L24-L27" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L26-L29" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L30-L33" >}} @@ -86,7 +86,7 @@ This is otherwise known as "right-clicking": {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L46-L49" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L35-L38" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L37-L40" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L43-L46" >}} @@ -112,7 +112,7 @@ There is no convenience method for this, it is just pressing and releasing mouse {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L49-L52" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L51-L54" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -141,7 +141,7 @@ There is no convenience method for this, it is just pressing and releasing mouse {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L63-L66" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L65-L68" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -169,7 +169,7 @@ This method combines moving to the center of an element with pressing and releas {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L93-L96" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L74-L77" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L76-L79" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L91-L94" >}} @@ -196,7 +196,7 @@ Note that the element must be in the viewport or else the command will error. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L105-L108" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L85-L88" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L87-L90" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L104-L107" >}} @@ -228,7 +228,7 @@ then moves by the provided offset. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L118-L121" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L96-L99" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L98-L101" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L132-L135" >}} @@ -254,7 +254,7 @@ offset. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L131-L136" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L108-L110" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L110-L112" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L146-L150" >}} @@ -286,7 +286,7 @@ the current mouse position. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L124-L126" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L126-L128" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L167-L169" >}} @@ -312,7 +312,7 @@ moves to the location of the target element and then releases the mouse. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L166-L170" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L137-L141" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L139-L143" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L181-L185" >}} @@ -337,7 +337,7 @@ This method firstly performs a click-and-hold on the source element, moves to th {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L179-L184" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L149-L154" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L151-L156" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L195-L200" >}} diff --git a/website_and_docs/content/documentation/webdriver/actions_api/mouse.ja.md b/website_and_docs/content/documentation/webdriver/actions_api/mouse.ja.md index 66d25e2d8b75..17b06169391d 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/mouse.ja.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/mouse.ja.md @@ -25,7 +25,7 @@ This is useful for focusing a specific element: {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L22-L25" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L12-L15" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L14-L17" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L17-L20" >}} @@ -51,7 +51,7 @@ This is otherwise known as "clicking": {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L34-L37" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L24-L27" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L26-L29" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L30-L33" >}} @@ -86,7 +86,7 @@ This is otherwise known as "right-clicking": {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L46-L49" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L35-L38" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L37-L40" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L43-L46" >}} @@ -112,7 +112,7 @@ There is no convenience method for this, it is just pressing and releasing mouse {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L49-L52" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L51-L54" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -141,7 +141,7 @@ There is no convenience method for this, it is just pressing and releasing mouse {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L63-L66" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L65-L68" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -169,7 +169,7 @@ This method combines moving to the center of an element with pressing and releas {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L93-L96" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L74-L77" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L76-L79" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L91-L94" >}} @@ -196,7 +196,7 @@ Note that the element must be in the viewport or else the command will error. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L105-L108" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L85-L88" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L87-L90" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L104-L107" >}} @@ -228,7 +228,7 @@ then moves by the provided offset. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L118-L121" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L96-L99" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L98-L101" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L132-L135" >}} @@ -254,7 +254,7 @@ offset. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L131-L136" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L108-L110" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L110-L112" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L146-L150" >}} @@ -286,7 +286,7 @@ the current mouse position. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L124-L126" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L126-L128" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L167-L169" >}} @@ -312,7 +312,7 @@ moves to the location of the target element and then releases the mouse. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L166-L170" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L137-L141" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L139-L143" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L181-L185" >}} @@ -337,7 +337,7 @@ This method firstly performs a click-and-hold on the source element, moves to th {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L179-L184" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L149-L154" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L151-L156" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L195-L200" >}} diff --git a/website_and_docs/content/documentation/webdriver/actions_api/mouse.pt-br.md b/website_and_docs/content/documentation/webdriver/actions_api/mouse.pt-br.md index db6cc0c4d992..3faf08d59150 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/mouse.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/mouse.pt-br.md @@ -22,7 +22,7 @@ Este método combina mover o mouse para o centro de um elemento com a pressão d {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L22-L25" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L12-L15" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L14-L17" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L17-L20" >}} @@ -47,7 +47,7 @@ Este método combina mover o mouse para o centro de um elemento com a pressão e {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L34-L37" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L24-L27" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L26-L29" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L30-L33" >}} @@ -82,7 +82,7 @@ Este método combina mover o mouse para o centro de um elemento com a pressão e {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L46-L49" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L35-L38" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L37-L40" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L43-L46" >}} @@ -108,7 +108,7 @@ Este termo pode se referir a um clique com o botão X1 (botão de voltar) do mou {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L49-L52" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L51-L54" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -137,7 +137,7 @@ Este termo se refere a um clique com o botão X2 (botão de avançar) do mouse. {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L63-L66" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L65-L68" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -165,7 +165,7 @@ Este método combina mover o mouse para o centro de um elemento com a pressão e {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L93-L96" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L74-L77" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L76-L79" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L91-L94" >}} @@ -190,7 +190,7 @@ Este método move o mouse para o ponto central do elemento que está visível na {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L105-L108" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L85-L88" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L87-L90" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L104-L107" >}} @@ -219,7 +219,7 @@ Este método move o mouse para o ponto central do elemento visível na tela e, e {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L118-L121" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L96-L99" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L98-L101" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L132-L135" >}} @@ -244,7 +244,7 @@ Este método move o mouse a partir do canto superior esquerdo da janela de visua {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L131-L136" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L108-L110" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L110-L112" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L146-L150" >}} @@ -270,7 +270,7 @@ Observe que o primeiro argumento, X, especifica o movimento para a direita quand {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L124-L126" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L126-L128" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L167-L169" >}} @@ -295,7 +295,7 @@ Este método primeiro realiza um clique e mantém pressionado no elemento de ori {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L166-L170" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L137-L141" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L139-L143" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L181-L185" >}} @@ -320,7 +320,7 @@ Este método primeiro realiza um clique e mantém pressionado no elemento de ori {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L179-L184" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L149-L154" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L151-L156" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L195-L200" >}} diff --git a/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md b/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md index aaf255bd7814..63748d0a108f 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md @@ -26,7 +26,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L22-L25" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L12-L15" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L14-L17" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L17-L20" >}} @@ -52,7 +52,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L34-L37" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L24-L27" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L26-L29" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L30-L33" >}} @@ -87,7 +87,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L46-L49" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L35-L38" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L37-L40" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L43-L46" >}} @@ -113,7 +113,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L49-L52" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L51-L54" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -142,7 +142,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< /tab >}} {{< tab header="Python" >}} {{< badge-version version="4.2" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L63-L66" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L65-L68" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< badge-version version="4.2" >}} @@ -170,7 +170,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L93-L96" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L74-L77" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L76-L79" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L91-L94" >}} @@ -197,7 +197,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L105-L108" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L85-L88" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L87-L90" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L104-L107" >}} @@ -227,7 +227,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L118-L121" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L96-L99" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L98-L101" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L132-L135" >}} @@ -252,7 +252,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L131-L136" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L108-L110" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L110-L112" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L146-L150" >}} @@ -281,7 +281,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L124-L126" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L126-L128" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L167-L169" >}} @@ -306,7 +306,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L166-L170" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L137-L141" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L139-L143" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L181-L185" >}} @@ -330,7 +330,7 @@ Selenium组合了常见的操作并提供了方便的方法。 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L179-L184" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L149-L154" >}} +{{< gh-codeblock path="/examples/python/tests/actions_api/test_mouse.py#L151-L156" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/ActionsAPI/MouseTest.cs#L195-L200" >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.en.md b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.en.md index 6b82792f71df..b5ffc08db88b 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.en.md +++ b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.en.md @@ -42,7 +42,7 @@ methods will eventually be removed when WebDriver BiDi implemented. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidi/cdp/NetworkTest.java#L44" >}} {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L8-L9" >}} +{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L10-L11" >}} {{% /tab %}} {{% tab header="CSharp" %}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/BiDi/CDP/ScriptTest.cs#L39-L46" >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.ja.md b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.ja.md index b721b93f9b3c..aad235f720dc 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.ja.md +++ b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.ja.md @@ -51,7 +51,7 @@ methods will eventually be removed when WebDriver BiDi implemented. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidi/cdp/NetworkTest.java#L44" >}} {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L8-L9" >}} +{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L10-L11" >}} {{% /tab %}} {{% tab header="CSharp" %}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/BiDi/CDP/ScriptTest.cs#L39-L46" >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.pt-br.md b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.pt-br.md index 343170fe5404..bc76016f1eda 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.pt-br.md @@ -51,7 +51,7 @@ methods will eventually be removed when WebDriver BiDi implemented. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidi/cdp/NetworkTest.java#L44" >}} {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L8-L9" >}} +{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L10-L11" >}} {{% /tab %}} {{% tab header="CSharp" %}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/BiDi/CDP/ScriptTest.cs#L39-L46" >}} diff --git a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.zh-cn.md b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.zh-cn.md index d7f287bd3dff..f4f25d5c09b0 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/cdp/script.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/bidi/cdp/script.zh-cn.md @@ -51,7 +51,7 @@ methods will eventually be removed when WebDriver BiDi implemented. {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidi/cdp/NetworkTest.java#L44" >}} {{% /tab %}} {{% tab header="Python" %}} -{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L8-L9" >}} +{{< gh-codeblock path="/examples/python/tests/bidi/cdp/test_script.py#L10-L11" >}} {{% /tab %}} {{% tab header="CSharp" %}} {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/BiDi/CDP/ScriptTest.cs#L39-L46" >}}