setup-selenium-testing 1.0.4__tar.gz → 1.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/PKG-INFO +5 -1
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/README.md +4 -0
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/pyproject.toml +1 -1
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/setup_selenium/setup_selenium.py +5 -3
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/LICENSE +0 -0
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/setup_selenium/__init__.py +0 -0
- {setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/setup_selenium/py.typed +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: setup-selenium-testing
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
4
4
|
Summary: Setup Selenium for automation testing
|
5
5
|
License: MIT
|
6
6
|
Author: Marcel Wilson
|
@@ -145,6 +145,10 @@ Passing a valid `driver_path` will not trigger any download of the webdriver.
|
|
145
145
|
|
146
146
|
CHANGELOG
|
147
147
|
---------
|
148
|
+
### version 1.0.5
|
149
|
+
|
150
|
+
- updated throttling functions
|
151
|
+
|
148
152
|
### version 1.0.2
|
149
153
|
|
150
154
|
- removed python 3.8 support
|
{setup_selenium_testing-1.0.4 → setup_selenium_testing-1.0.5}/setup_selenium/setup_selenium.py
RENAMED
@@ -435,16 +435,18 @@ class SetupSelenium:
|
|
435
435
|
return driver
|
436
436
|
|
437
437
|
@staticmethod
|
438
|
-
def set_network_throttle(driver: webdriver.Chrome, network_type: str = "
|
438
|
+
def set_network_throttle(driver: webdriver.Chrome, network_type: str = "3G"):
|
439
439
|
"""Experimental settings to slow down browser"""
|
440
440
|
# experimental settings to slow down browser
|
441
441
|
# @formatter:off
|
442
442
|
# fmt: off
|
443
443
|
network_conditions = {
|
444
|
-
#
|
444
|
+
# latency, down, up
|
445
445
|
"GPRS" : (500, 50, 20),
|
446
|
+
"2G" : (300, 250, 50),
|
446
447
|
"SLOW3G" : (100, 250, 100),
|
447
|
-
"
|
448
|
+
"3G" : (100, 750, 250),
|
449
|
+
"FAST3G" : (40, 1500, 750),
|
448
450
|
"LTE" : (20, 4000, 3000),
|
449
451
|
"DSL" : (5, 2000, 1000),
|
450
452
|
"WIFI" : (2, 30000, 15000),
|
File without changes
|
File without changes
|
File without changes
|