seleniumbase 4.28.0__py3-none-any.whl → 4.28.0a2__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.
@@ -1,2 +1,2 @@
1
1
  # seleniumbase package
2
- __version__ = "4.28.0"
2
+ __version__ = "4.28.0a2"
@@ -467,7 +467,7 @@ def uc_open_with_reconnect(driver, url, reconnect_time=None):
467
467
  if (url.startswith("http:") or url.startswith("https:")):
468
468
  script = 'window.open("%s","_blank");' % url
469
469
  driver.execute_script(script)
470
- time.sleep(0.05)
470
+ time.sleep(0.02)
471
471
  driver.close()
472
472
  if reconnect_time == "disconnect":
473
473
  driver.disconnect()
@@ -497,7 +497,7 @@ def uc_open_with_disconnect(driver, url, timeout=None):
497
497
  if (url.startswith("http:") or url.startswith("https:")):
498
498
  script = 'window.open("%s","_blank");' % url
499
499
  driver.execute_script(script)
500
- time.sleep(0.05)
500
+ time.sleep(0.02)
501
501
  driver.close()
502
502
  driver.disconnect()
503
503
  min_timeout = 0.008
@@ -546,17 +546,7 @@ def uc_click(
546
546
  driver.reconnect(reconnect_time)
547
547
 
548
548
 
549
- def verify_pyautogui_has_a_headed_browser():
550
- """PyAutoGUI requires a headed browser so that it can
551
- focus on the correct element when performing actions."""
552
- if sb_config.headless or sb_config.headless2:
553
- raise Exception(
554
- "PyAutoGUI can't be used in headless mode!"
555
- )
556
-
557
-
558
549
  def install_pyautogui_if_missing():
559
- verify_pyautogui_has_a_headed_browser()
560
550
  pip_find_lock = fasteners.InterProcessLock(
561
551
  constants.PipInstall.FINDLOCK
562
552
  )
@@ -566,11 +556,10 @@ def install_pyautogui_if_missing():
566
556
  try:
567
557
  use_pyautogui_ver = constants.PyAutoGUI.VER
568
558
  if pyautogui.__version__ != use_pyautogui_ver:
569
- del pyautogui
570
559
  shared_utils.pip_install(
571
560
  "pyautogui", version=use_pyautogui_ver
572
561
  )
573
- import pyautogui
562
+ del pyautogui
574
563
  except Exception:
575
564
  pass
576
565
  except Exception:
@@ -1031,7 +1020,7 @@ def _set_chrome_options(
1031
1020
  prefs["download.prompt_for_download"] = False
1032
1021
  prefs["credentials_enable_service"] = False
1033
1022
  prefs["local_discovery.notifications_enabled"] = False
1034
- prefs["safebrowsing.enabled"] = False # Prevent PW "data breach" pop-ups
1023
+ prefs["safebrowsing.enabled"] = True
1035
1024
  prefs["safebrowsing.disable_download_protection"] = True
1036
1025
  prefs["omnibox-max-zero-suggest-matches"] = 0
1037
1026
  prefs["omnibox-use-existing-autocomplete-client"] = 0
@@ -2622,7 +2611,7 @@ def get_local_driver(
2622
2611
  "credentials_enable_service": False,
2623
2612
  "local_discovery.notifications_enabled": False,
2624
2613
  "safebrowsing.disable_download_protection": True,
2625
- "safebrowsing.enabled": False, # Prevent PW "data breach" pop-ups
2614
+ "safebrowsing.enabled": True,
2626
2615
  "omnibox-max-zero-suggest-matches": 0,
2627
2616
  "omnibox-use-existing-autocomplete-client": 0,
2628
2617
  "omnibox-trending-zero-prefix-suggestions-on-ntp": 0,
@@ -6822,10 +6822,10 @@ class BaseCase(unittest.TestCase):
6822
6822
  try:
6823
6823
  import cryptography
6824
6824
  if cryptography.__version__ != "39.0.2":
6825
- del cryptography # To get newer ver
6826
6825
  shared_utils.pip_install(
6827
6826
  "cryptography", version="39.0.2"
6828
6827
  )
6828
+ del cryptography # To get newer ver
6829
6829
  import cryptography
6830
6830
  except Exception:
6831
6831
  shared_utils.pip_install(
@@ -13718,7 +13718,7 @@ class BaseCase(unittest.TestCase):
13718
13718
  which is the default mode on Linux unless using another arg."""
13719
13719
  if "linux" in sys.platform and (not self.headed or self.xvfb):
13720
13720
  from sbvirtualdisplay import Display
13721
- if self.undetectable and not (self.headless or self.headless2):
13721
+ if self.undetectable:
13722
13722
  import Xlib.display
13723
13723
  try:
13724
13724
  self._xvfb_display = Display(
@@ -13749,10 +13749,10 @@ class BaseCase(unittest.TestCase):
13749
13749
  try:
13750
13750
  use_pyautogui_ver = constants.PyAutoGUI.VER
13751
13751
  if pyautogui.__version__ != use_pyautogui_ver:
13752
- del pyautogui # To get newer ver
13753
13752
  shared_utils.pip_install(
13754
13753
  "pyautogui", version=use_pyautogui_ver
13755
13754
  )
13755
+ del pyautogui # To get newer ver
13756
13756
  import pyautogui
13757
13757
  except Exception:
13758
13758
  pass
@@ -387,14 +387,6 @@ def Driver(
387
387
  uc_cdp_events = True
388
388
  else:
389
389
  uc_cdp_events = False
390
- if undetectable and browser != "chrome":
391
- message = (
392
- '\n Undetected-Chromedriver Mode ONLY supports Chrome!'
393
- '\n ("uc=True" / "undetectable=True" / "--uc")'
394
- '\n (Your browser choice was: "%s".)'
395
- '\n (Will use "%s" without UC Mode.)\n' % (browser, browser)
396
- )
397
- print(message)
398
390
  if headed is None:
399
391
  # Override the default headless mode on Linux if set.
400
392
  if "--gui" in sys_argv or "--headed" in sys_argv:
@@ -444,14 +444,6 @@ def SB(
444
444
  uc_cdp_events = True
445
445
  else:
446
446
  uc_cdp_events = False
447
- if undetectable and browser != "chrome":
448
- message = (
449
- '\n Undetected-Chromedriver Mode ONLY supports Chrome!'
450
- '\n ("uc=True" / "undetectable=True" / "--uc")'
451
- '\n (Your browser choice was: "%s".)'
452
- '\n (Will use "%s" without UC Mode.)\n' % (browser, browser)
453
- )
454
- print(message)
455
447
  if headed is None:
456
448
  # Override the default headless mode on Linux if set.
457
449
  if "--gui" in sys_argv or "--headed" in sys_argv:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: seleniumbase
3
- Version: 4.28.0
3
+ Version: 4.28.0a2
4
4
  Summary: A complete web automation framework for end-to-end testing.
5
5
  Home-page: https://github.com/seleniumbase/SeleniumBase
6
6
  Author: Michael Mintz
@@ -117,7 +117,7 @@ Requires-Dist: pip >=24.1 ; python_version >= "3.8"
117
117
  Requires-Dist: packaging >=24.1 ; python_version >= "3.8"
118
118
  Requires-Dist: setuptools >=70.1.0 ; python_version >= "3.8"
119
119
  Requires-Dist: wheel >=0.43.0 ; python_version >= "3.8"
120
- Requires-Dist: filelock >=3.15.4 ; python_version >= "3.8"
120
+ Requires-Dist: filelock >=3.15.3 ; python_version >= "3.8"
121
121
  Requires-Dist: platformdirs >=4.2.2 ; python_version >= "3.8"
122
122
  Requires-Dist: typing-extensions >=4.12.2 ; python_version >= "3.8"
123
123
  Requires-Dist: trio ==0.25.1 ; python_version >= "3.8"
@@ -139,7 +139,7 @@ Requires-Dist: allure-behave >=2.13.5 ; extra == 'allure'
139
139
  Provides-Extra: coverage
140
140
  Requires-Dist: coverage ==7.2.7 ; (python_version < "3.8") and extra == 'coverage'
141
141
  Requires-Dist: pytest-cov ==4.1.0 ; (python_version < "3.8") and extra == 'coverage'
142
- Requires-Dist: coverage >=7.5.4 ; (python_version >= "3.8") and extra == 'coverage'
142
+ Requires-Dist: coverage >=7.5.3 ; (python_version >= "3.8") and extra == 'coverage'
143
143
  Requires-Dist: pytest-cov >=5.0.0 ; (python_version >= "3.8") and extra == 'coverage'
144
144
  Provides-Extra: flake8
145
145
  Requires-Dist: mccabe ==0.7.0 ; extra == 'flake8'
@@ -5,7 +5,7 @@ sbase/steps.py,sha256=bKT_u5bJkKzYWEuAXi9NVVRYYxQRCM1_YJUrNFFRVPY,42865
5
5
  seleniumbase/ReadMe.md,sha256=4nEdto4d0Ch0Zneg0yAC-RBBdqRqPUP0SCo-ze_XDPM,3612
6
6
  seleniumbase/__init__.py,sha256=dgq30q6wGO2fJOVYemxC5hLxzv-of-MRn5P1YarBq5k,2263
7
7
  seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
8
- seleniumbase/__version__.py,sha256=zLa5rPA-wkrtA_AV70eVlhahAWTSsHb__i08Yvl7uBM,46
8
+ seleniumbase/__version__.py,sha256=Z_q4t2nqpbTTsHeamv2C_jHeoBcuQwHtsanzSpi8zS8,48
9
9
  seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  seleniumbase/behave/behave_helper.py,sha256=elkl8P9eLulRAioLstE9baYNM9N_PHBmAOcajX-pH_Y,24198
11
11
  seleniumbase/behave/behave_sb.py,sha256=q4uYZixZBf7VYWnQnEk2weTcyMy1X1faR3vyYvUzDiA,56406
@@ -40,7 +40,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=yo641b_OdSE0GUauOyxk-QrNeIjYzbRY
40
40
  seleniumbase/console_scripts/sb_recorder.py,sha256=UQQhnAR18dbcC7ToDvj6TM2PIG5qBrNaekaM6kSK_E8,10970
41
41
  seleniumbase/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  seleniumbase/core/application_manager.py,sha256=e_0sjtI8cjY5BNyZj1QBR0j6_oCScxGmSXYEpcYwuZE,576
43
- seleniumbase/core/browser_launcher.py,sha256=ByzYK43iZ61rxhiJRtkYUVmvgw-jruXX-S1OIxkk8UI,176458
43
+ seleniumbase/core/browser_launcher.py,sha256=iVS42Z6FlYcLsSyZWbpLSVsAsC4LGWcbQ6qq0KKwwKg,175992
44
44
  seleniumbase/core/capabilities_parser.py,sha256=meIS2uHapTCq2ldfNAToC7r0cKmZDRXuYNKExM1GHDY,6038
45
45
  seleniumbase/core/colored_traceback.py,sha256=DrRWfg7XEnKcgY59Xj7Jdk09H-XqHYBSUpB-DiZt6iY,2020
46
46
  seleniumbase/core/create_db_tables.sql,sha256=VWPtrdiW_HQ6yETHjqTu-VIrTwvd8I8o1NfBeaVSHpU,972
@@ -70,7 +70,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=YMifIIgEBiLrEFrS1sfW4Exh4br1V4oK1
70
70
  seleniumbase/extensions/recorder.zip,sha256=OOyzF-Ize2cSRu1CqhzSAq5vusI9hqLLd2OIApUHesI,11918
71
71
  seleniumbase/extensions/sbase_ext.zip,sha256=3s1N8zrVaMz8RQEOIoBzC3KDjtmHwVZRvVsX25Odr_s,8175
72
72
  seleniumbase/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
- seleniumbase/fixtures/base_case.py,sha256=qCh7W-WPtmpnSUsyc6CbERE4AH415Hp7Ms33GnLw_xo,698095
73
+ seleniumbase/fixtures/base_case.py,sha256=sfjciTHMXiFZwntWvazPF65oW7yDGd3YRH2J7ZzHruQ,698053
74
74
  seleniumbase/fixtures/constants.py,sha256=TapuGLdERtvZPGMblVXkNGybr8tj8FMtN3sbJ3ygyoc,13569
75
75
  seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
76
76
  seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
@@ -92,11 +92,11 @@ seleniumbase/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
92
92
  seleniumbase/plugins/base_plugin.py,sha256=o_-IraDNgsMEJQv1HsmS5ZcTvYOXiQ4NpxryG2m9c2A,14970
93
93
  seleniumbase/plugins/basic_test_info.py,sha256=8ov6n417gPbqqvrlT4zrch7l2XcRt-GF2ny6rR9AMWk,2108
94
94
  seleniumbase/plugins/db_reporting_plugin.py,sha256=En09qUCoojrk9-vbcnsoHdSELoGmag2GDIyu3jTiJas,7331
95
- seleniumbase/plugins/driver_manager.py,sha256=TnfkyFxhN_r0gw_F8Z88ka9-bHss3dt_az2gDxVuKYI,23128
95
+ seleniumbase/plugins/driver_manager.py,sha256=WScJYz-5UxUEq3LfICmq0tFe_mglWhG9x28KCq4SSUE,22775
96
96
  seleniumbase/plugins/page_source.py,sha256=loTnXxOj4kxEukuTZEiGyvKBhY3KDVDMnNlHHheTBDE,1889
97
97
  seleniumbase/plugins/pytest_plugin.py,sha256=ObITovmkwpAcwXNxF6qTHRzERPA7_ntAmbxPRTefj1M,94999
98
98
  seleniumbase/plugins/s3_logging_plugin.py,sha256=WDfertQgGOW_SRJpFMaekYD6vBVW9VO62POtXXy2HCM,2319
99
- seleniumbase/plugins/sb_manager.py,sha256=xBz9TBldRvWcQ1sTEF7uQkJnoo7buEBSiK76e-WDOQg,41051
99
+ seleniumbase/plugins/sb_manager.py,sha256=oDKlGtCWyoaDp3qdq-rZFWU7NfBkk5odkG9e3ZqlBug,40698
100
100
  seleniumbase/plugins/screen_shots.py,sha256=1hrXw-hzuZ1BR6Yh7AyWX2ABnvnP73-RCbwdz958gj4,1127
101
101
  seleniumbase/plugins/selenium_plugin.py,sha256=FESjalW8mdboLB_B59j8EeY6IvmEIbp_BY9cPTxJsM4,55122
102
102
  seleniumbase/resources/ReadMe.md,sha256=uminnO5_Uv-UZDKcc9a9s9kxisaYUps-H98Fp5PJcaU,2124
@@ -137,9 +137,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443
137
137
  seleniumbase/utilities/selenium_ide/ReadMe.md,sha256=hznGeuMpkIimqMiZBW-4goIy2ltW4l8X9kb0YSPUQfE,4483
138
138
  seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
139
139
  seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
140
- seleniumbase-4.28.0.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
141
- seleniumbase-4.28.0.dist-info/METADATA,sha256=HhtEVYIIvdcKDpDE4q5AHLdZTV1Vhm_28IomXOK6pS4,85544
142
- seleniumbase-4.28.0.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
143
- seleniumbase-4.28.0.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
144
- seleniumbase-4.28.0.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
145
- seleniumbase-4.28.0.dist-info/RECORD,,
140
+ seleniumbase-4.28.0a2.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
141
+ seleniumbase-4.28.0a2.dist-info/METADATA,sha256=wss8LAfBwlcn0oDfSNvRqoEm9qmm4gLhoMdOwr27PAI,85546
142
+ seleniumbase-4.28.0a2.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
143
+ seleniumbase-4.28.0a2.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
144
+ seleniumbase-4.28.0a2.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
145
+ seleniumbase-4.28.0a2.dist-info/RECORD,,