@@ -46,12 +46,7 @@ Selenium will return an [element click intercepted](https://w3c.github.io/webdri
46
46
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L18-L22" >}}
47
47
{{< /tab >}}
48
48
{{< tab header="Python" >}}
49
-
50
- # Navigate to url
51
- driver.get("https://www.selenium.dev/selenium/web/inputs.html")
52
-
53
- # Click on the element
54
- driver.find_element(By.NAME, "color_input").click()
49
+ {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L12-L17" >}}
55
50
{{< /tab >}}
56
51
57
52
{{< tab header="CSharp" text=true >}}
@@ -93,17 +88,7 @@ possible keystrokes that WebDriver Supports.
93
88
{{< /tab >}}
94
89
95
90
{{< tab header="Python" >}}
96
-
97
-
98
- # Navigate to url
99
- driver.get("https://www.selenium.dev/selenium/web/inputs.html")
100
-
101
- # Clear field to empty it from any previous data
102
- driver.find_element(By.NAME, "email_input").clear()
103
-
104
- # Enter Text
105
- driver.find_element(By.NAME, "email_input").send_keys("[email protected] " )
106
-
91
+ {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L22-L27" >}}
107
92
{{< /tab >}}
108
93
109
94
{{< tab header="CSharp" text=true >}}
@@ -144,15 +129,7 @@ with a`content-editable` attribute. If these conditions are not met,
144
129
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/elements/InteractionTest.java#L38-L40" >}}
145
130
{{< /tab >}}
146
131
{{< tab header="Python" >}}
147
-
148
-
149
- # Navigate to url
150
- driver.get("https://www.selenium.dev/selenium/web/inputs.html")
151
-
152
- # Clear field to empty it from any previous data
153
- driver.find_element(By.NAME, "email_input").clear()
154
-
155
-
132
+ {{< gh-codeblock path="examples/python/tests/elements/test_interaction.py#L34" >}}
156
133
{{< /tab >}}
157
134
158
135
{{< tab header="CSharp" text=true >}}
0 commit comments