Skip to content

Commit d8b5bf2

Browse files
authored
Merge branch 'trunk' into safari_java
2 parents cd01d45 + 63af349 commit d8b5bf2

22 files changed

+141
-104
lines changed

examples/java/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

examples/python/tests/browsers/test_chrome.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,22 @@ def test_build_checks(capfd):
121121
assert expected in err
122122

123123
driver.quit()
124+
125+
126+
def test_set_network_conditions():
127+
driver = webdriver.Chrome()
128+
129+
network_conditions = {
130+
"offline": False,
131+
"latency": 20, # 20 ms of latency
132+
"download_throughput": 2000 * 1024 / 8, # 2000 kbps
133+
"upload_throughput": 2000 * 1024 / 8, # 2000 kbps
134+
}
135+
driver.set_network_conditions(**network_conditions)
136+
137+
driver.get("https://www.selenium.dev")
138+
139+
# check whether the network conditions are set
140+
assert driver.get_network_conditions() == network_conditions
141+
142+
driver.quit()

examples/python/tests/browsers/test_edge.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,21 @@ def test_build_checks(log_path):
122122

123123
driver.quit()
124124

125+
126+
def test_set_network_conditions():
127+
driver = webdriver.Edge()
128+
129+
network_conditions = {
130+
"offline": False,
131+
"latency": 20, # 20 ms of latency
132+
"download_throughput": 2000 * 1024 / 8, # 2000 kbps
133+
"upload_throughput": 2000 * 1024 / 8, # 2000 kbps
134+
}
135+
driver.set_network_conditions(**network_conditions)
136+
137+
driver.get("https://www.selenium.dev")
138+
139+
# check whether the network conditions are set
140+
assert driver.get_network_conditions() == network_conditions
141+
142+
driver.quit()

website_and_docs/assets/scss/_links.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.selenium-link {
22
color: $primary;
3-
border-bottom: 2px solid;
43
transition: 0.3s;
54
}
65

@@ -10,7 +9,6 @@
109

1110
p > a, main a, div > a {
1211
color: $primary !important;
13-
border-bottom: 2px solid;
1412
transition: 0.3s;
1513
}
1614

website_and_docs/content/documentation/selenium_manager.en.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,20 +337,21 @@ sudo apt-get install libatk-bridge2.0-0
337337
It's possible to use an environment variable to specify the driver path without using Selenium Manager.
338338
The following environment variables are supported:
339339

340-
* SE_CHROMEDRIVER
341-
* SE_EDGEDRIVER
342-
* SE_GECKODRIVER
343-
* SE_IEDRIVER
344-
* SE_SAFARIDRIVER
340+
* `SE_CHROMEDRIVER`
341+
* `SE_EDGEDRIVER`
342+
* `SE_GECKODRIVER`
343+
* `SE_IEDRIVER`
344+
* `SE_SAFARIDRIVER`
345345

346346
For example, to specify the path to the chromedriver,
347347
you can set the `SE_CHROMEDRIVER` environment variable to the path of the chromedriver executable.
348348
The following bindings allow you to specify the driver path using an environment variable:
349349

350350
* Ruby
351351
* Java
352+
* Python
352353

353-
This feature is available in the Selenium Ruby binding starting from version 4.25.0.
354+
This feature is available in the Selenium Ruby binding starting from version 4.25.0 and in the Python binding from version 4.26.0.
354355

355356
## Building a Custom Selenium Manager
356357
In order to build your own custom Selenium Manager that works in an architecture we don't currently support, you can

website_and_docs/content/documentation/selenium_manager.ja.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,20 +337,21 @@ sudo apt-get install libatk-bridge2.0-0
337337
It's possible to use an environment variable to specify the driver path without using Selenium Manager.
338338
The following environment variables are supported:
339339

340-
* SE_CHROMEDRIVER
341-
* SE_EDGEDRIVER
342-
* SE_GECKODRIVER
343-
* SE_IEDRIVER
344-
* SE_SAFARIDRIVER
340+
* `SE_CHROMEDRIVER`
341+
* `SE_EDGEDRIVER`
342+
* `SE_GECKODRIVER`
343+
* `SE_IEDRIVER`
344+
* `SE_SAFARIDRIVER`
345345

346346
For example, to specify the path to the chromedriver,
347347
you can set the `SE_CHROMEDRIVER` environment variable to the path of the chromedriver executable.
348348
The following bindings allow you to specify the driver path using an environment variable:
349349

350350
* Ruby
351351
* Java
352+
* Python
352353

353-
This feature is available in the Selenium Ruby binding starting from version 4.25.0.
354+
This feature is available in the Selenium Ruby binding starting from version 4.25.0 and in the Python binding from version 4.26.0.
354355

355356
## Building a Custom Selenium Manager
356357
In order to build your own custom Selenium Manager that works in an architecture we don't currently support, you can

website_and_docs/content/documentation/selenium_manager.pt-br.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,20 +337,21 @@ sudo apt-get install libatk-bridge2.0-0
337337
It's possible to use an environment variable to specify the driver path without using Selenium Manager.
338338
The following environment variables are supported:
339339

340-
* SE_CHROMEDRIVER
341-
* SE_EDGEDRIVER
342-
* SE_GECKODRIVER
343-
* SE_IEDRIVER
344-
* SE_SAFARIDRIVER
340+
* `SE_CHROMEDRIVER`
341+
* `SE_EDGEDRIVER`
342+
* `SE_GECKODRIVER`
343+
* `SE_IEDRIVER`
344+
* `SE_SAFARIDRIVER`
345345

346346
For example, to specify the path to the chromedriver,
347347
you can set the `SE_CHROMEDRIVER` environment variable to the path of the chromedriver executable.
348348
The following bindings allow you to specify the driver path using an environment variable:
349349

350350
* Ruby
351351
* Java
352+
* Python
352353

353-
This feature is available in the Selenium Ruby binding starting from version 4.25.0.
354+
This feature is available in the Selenium Ruby binding starting from version 4.25.0 and in the Python binding from version 4.26.0.
354355

355356
## Building a Custom Selenium Manager
356357
In order to build your own custom Selenium Manager that works in an architecture we don't currently support, you can

website_and_docs/content/documentation/selenium_manager.zh-cn.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,20 +337,21 @@ sudo apt-get install libatk-bridge2.0-0
337337
It's possible to use an environment variable to specify the driver path without using Selenium Manager.
338338
The following environment variables are supported:
339339

340-
* SE_CHROMEDRIVER
341-
* SE_EDGEDRIVER
342-
* SE_GECKODRIVER
343-
* SE_IEDRIVER
344-
* SE_SAFARIDRIVER
340+
* `SE_CHROMEDRIVER`
341+
* `SE_EDGEDRIVER`
342+
* `SE_GECKODRIVER`
343+
* `SE_IEDRIVER`
344+
* `SE_SAFARIDRIVER`
345345

346346
For example, to specify the path to the chromedriver,
347347
you can set the `SE_CHROMEDRIVER` environment variable to the path of the chromedriver executable.
348348
The following bindings allow you to specify the driver path using an environment variable:
349349

350350
* Ruby
351351
* Java
352+
* Python
352353

353-
This feature is available in the Selenium Ruby binding starting from version 4.25.0.
354+
This feature is available in the Selenium Ruby binding starting from version 4.25.0 and in the Python binding from version 4.26.0.
354355

355356
## Building a Custom Selenium Manager
356357
In order to build your own custom Selenium Manager that works in an architecture we don't currently support, you can

website_and_docs/content/documentation/webdriver/browsers/chrome.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ You can simulate various network conditions.
398398
{{< tab header="Java" >}}
399399
{{< badge-code >}}
400400
{{< /tab >}}
401-
{{% tab header="Python" %}}
402-
{{< badge-code >}}
403-
{{% /tab %}}
401+
{{< tab header="Python" >}}
402+
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}}
403+
{{< /tab >}}
404404
{{< tab header="CSharp" >}}
405405
{{< badge-code >}}
406406
{{< /tab >}}

website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ Chrome Castデバイスを操作することができ、タブの共有も含ま
392392
{{< tab header="Java" >}}
393393
{{< badge-code >}}
394394
{{< /tab >}}
395-
{{% tab header="Python" %}}
396-
{{< badge-code >}}
397-
{{% /tab %}}
395+
{{< tab header="Python" >}}
396+
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L129-L135" >}}
397+
{{< /tab >}}
398398
{{< tab header="CSharp" >}}
399399
{{< badge-code >}}
400400
{{< /tab >}}

0 commit comments

Comments
 (0)