setup-selenium-testing 1.0.4__py3-none-any.whl → 1.0.5__py3-none-any.whl

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.
@@ -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 = "SLOW3G"):
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
- # latency, down, up
444
+ # latency, down, up
445
445
  "GPRS" : (500, 50, 20),
446
+ "2G" : (300, 250, 50),
446
447
  "SLOW3G" : (100, 250, 100),
447
- "FAST3G" : (40, 750, 250),
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),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: setup-selenium-testing
3
- Version: 1.0.4
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
@@ -0,0 +1,7 @@
1
+ setup_selenium/__init__.py,sha256=-w9Vvo72ZLaEyIEfc_Nh0bDDJz9W0pOy4rkRXurIJHI,63
2
+ setup_selenium/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ setup_selenium/setup_selenium.py,sha256=v_Da_pcC0kJKWLazKFEWgg7iJeTHUwT7AOOWBrLt1pc,22232
4
+ setup_selenium_testing-1.0.5.dist-info/LICENSE,sha256=KGdE-1D1chm3UNFtfE8x-EpVxhmv2zFx8oltbO8M1qE,1070
5
+ setup_selenium_testing-1.0.5.dist-info/METADATA,sha256=wUzQsQuknCf_Z4TugObKSFcOD7ARitQTDNyApBivGVc,6122
6
+ setup_selenium_testing-1.0.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
7
+ setup_selenium_testing-1.0.5.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- setup_selenium/__init__.py,sha256=-w9Vvo72ZLaEyIEfc_Nh0bDDJz9W0pOy4rkRXurIJHI,63
2
- setup_selenium/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- setup_selenium/setup_selenium.py,sha256=gp1RqWGXdgxVotFmq_IJVGQURrb3laOoGcVP0c4dWBc,22139
4
- setup_selenium_testing-1.0.4.dist-info/LICENSE,sha256=KGdE-1D1chm3UNFtfE8x-EpVxhmv2zFx8oltbO8M1qE,1070
5
- setup_selenium_testing-1.0.4.dist-info/METADATA,sha256=9ZaLVTdseyRKL-Mv0jD6gryHNcv3PFHo5-3c8j0OA2I,6071
6
- setup_selenium_testing-1.0.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
7
- setup_selenium_testing-1.0.4.dist-info/RECORD,,