seleniumbase 4.41.7__py3-none-any.whl → 4.41.8__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.41.7"
2
+ __version__ = "4.41.8"
@@ -53,7 +53,9 @@ def print_runtime(description=None, limit=None):
53
53
  name = description
54
54
  info = c1 + "<info>" + cr
55
55
  # Print times with a statistically significant number of decimal places
56
- if run_time < 0.0001:
56
+ if run_time < 0.00001:
57
+ print("%s - {%s} ran for %.8f seconds." % (info, name, run_time))
58
+ elif run_time < 0.0001:
57
59
  print("%s - {%s} ran for %.7f seconds." % (info, name, run_time))
58
60
  elif run_time < 0.001:
59
61
  print("%s - {%s} ran for %.6f seconds." % (info, name, run_time))
@@ -1227,6 +1227,7 @@ def _on_a_cf_turnstile_page(driver):
1227
1227
  'data-callback="onCaptchaSuccess"' in source
1228
1228
  or "/challenge-platform/scripts/" in source
1229
1229
  or 'id="challenge-widget-' in source
1230
+ or "challenges.cloudf" in source
1230
1231
  or "cf-turnstile-" in source
1231
1232
  ):
1232
1233
  return True
@@ -1661,11 +1661,16 @@ class CDPMethods():
1661
1661
  self.loop.run_until_complete(self.page.wait())
1662
1662
 
1663
1663
  def _on_a_cf_turnstile_page(self):
1664
+ time.sleep(0.042)
1664
1665
  source = self.get_page_source()
1666
+ if not source or len(source) < 400:
1667
+ time.sleep(0.22)
1668
+ source = self.get_page_source()
1665
1669
  if (
1666
1670
  'data-callback="onCaptchaSuccess"' in source
1667
1671
  or "/challenge-platform/scripts/" in source
1668
1672
  or 'id="challenge-widget-' in source
1673
+ or "challenges.cloudf" in source
1669
1674
  or "cf-turnstile-" in source
1670
1675
  ):
1671
1676
  return True
@@ -1795,6 +1800,7 @@ class CDPMethods():
1795
1800
  self.loop.run_until_complete(self.page.evaluate(script))
1796
1801
  self.loop.run_until_complete(self.page.wait())
1797
1802
  with suppress(Exception):
1803
+ time.sleep(0.08)
1798
1804
  element_rect = self.get_gui_element_rect(selector, timeout=1)
1799
1805
  e_x = element_rect["x"]
1800
1806
  e_y = element_rect["y"]
@@ -1804,6 +1810,7 @@ class CDPMethods():
1804
1810
  else:
1805
1811
  y = e_y + 22
1806
1812
  sb_config._saved_cf_x_y = (x, y)
1813
+ time.sleep(0.08)
1807
1814
  self.gui_click_x_y(x, y)
1808
1815
 
1809
1816
  def __gui_drag_drop(self, x1, y1, x2, y2, timeframe=0.25, uc_lock=False):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seleniumbase
3
- Version: 4.41.7
3
+ Version: 4.41.8
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
@@ -275,7 +275,7 @@ Dynamic: summary
275
275
 
276
276
  --------
277
277
 
278
- <p align="left">📗 For performing a Google Search without hitting the "unusual traffic" page, you can use SeleniumBase UC Mode. Here's <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py">SeleniumBase/examples/raw_google.py</a>, which exports the search results into different formats (PDF, HTML, PNG):</p>
278
+ <p align="left">📗 For performing a Google Search without hitting the "unusual traffic" page, you can use SeleniumBase UC Mode.<br />Here's <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py">SeleniumBase/examples/raw_google.py</a>, which exports results into different formats (PDF, HTML, PNG):</p>
279
279
 
280
280
  ```python
281
281
  from seleniumbase import SB
@@ -295,7 +295,7 @@ with SB(test=True, uc=True) as sb:
295
295
 
296
296
  > `python raw_google.py`
297
297
 
298
- <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py"><img src="https://seleniumbase.github.io/cdn/img/google_sb_result.png" alt="SeleniumBase on Google" title="SeleniumBase on Google" width="440" /></a>
298
+ <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py"><img src="https://seleniumbase.github.io/cdn/img/google_sb_result.png" alt="SeleniumBase on Google" title="SeleniumBase on Google" width="480" /></a>
299
299
 
300
300
  --------
301
301
 
@@ -3,13 +3,13 @@ sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
3
3
  sbase/steps.py,sha256=wiPSWZhFpBlWvkqXRJ18btpBu3nQaw9K5AzIJNAX5RM,43521
4
4
  seleniumbase/__init__.py,sha256=JFEY9P5QJqsa1M6ghzLMH2eIPQyh85iglCaQwg8Y8z4,2498
5
5
  seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
6
- seleniumbase/__version__.py,sha256=lW1bsuu6bfcTolOKhOYS4JYilMhQjsrs1y_bRRWXTAE,46
6
+ seleniumbase/__version__.py,sha256=tTZ9nY-w_0evWYUqHvWS_7_jOhQajVFN3haqZ6NnH1w,46
7
7
  seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  seleniumbase/behave/behave_helper.py,sha256=lJtagtivSbEpbRj0EKV4l4PuPU6NANONJJAnYwgVCe0,24379
9
9
  seleniumbase/behave/behave_sb.py,sha256=guLihFsr1uJ4v2AR3r3Vy_BTeHrHwy2JEJxhp-MVnZA,59872
10
10
  seleniumbase/behave/steps.py,sha256=8-N-NB2tnDsxaP4LSg-uSBgbwZYMS6ZEL1oggO1PCoU,390
11
11
  seleniumbase/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- seleniumbase/common/decorators.py,sha256=DYdjtF8Y7YJj0JS33WtmsIn4yddPoniNwcPyrgt522o,7857
12
+ seleniumbase/common/decorators.py,sha256=js9TmhMsEtI_-obumjVWtNwG6AfXT6J2vIpK1RFd1Ps,7968
13
13
  seleniumbase/common/encryption.py,sha256=IfAuE0hdrd3y-_qAQUWdSOKRGQ4QN24uTOBiQ9Eeq2s,5593
14
14
  seleniumbase/common/exceptions.py,sha256=SbdHOTbg7ycrioWleAVw9kG9vBtDfbYoj3e7ikkYYz0,3257
15
15
  seleniumbase/common/obfuscate.py,sha256=VrwPbVigPH_Jk6ADCk5_miMoq1VK4M9SKnYScDkk-DQ,1204
@@ -36,7 +36,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=tNy-bMDgwHJO3bZxMpmo9weSE8uhbH0C
36
36
  seleniumbase/console_scripts/sb_recorder.py,sha256=DH-n2fN7N9qyHMl7wjtn8MiliBgfw-1kwgmfg1GUuhk,10772
37
37
  seleniumbase/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  seleniumbase/core/application_manager.py,sha256=e_0sjtI8cjY5BNyZj1QBR0j6_oCScxGmSXYEpcYwuZE,576
39
- seleniumbase/core/browser_launcher.py,sha256=1n60aRR3ulDFs9_363cT_i5Ehl_6-Wgx7Woo-nPH58U,248003
39
+ seleniumbase/core/browser_launcher.py,sha256=1qA7HvmH5NvvvBzy5yTPMV5SxVTHISf96A3g9pseXAo,248044
40
40
  seleniumbase/core/capabilities_parser.py,sha256=meIS2uHapTCq2ldfNAToC7r0cKmZDRXuYNKExM1GHDY,6038
41
41
  seleniumbase/core/colored_traceback.py,sha256=DrRWfg7XEnKcgY59Xj7Jdk09H-XqHYBSUpB-DiZt6iY,2020
42
42
  seleniumbase/core/create_db_tables.sql,sha256=VWPtrdiW_HQ6yETHjqTu-VIrTwvd8I8o1NfBeaVSHpU,972
@@ -50,7 +50,7 @@ seleniumbase/core/proxy_helper.py,sha256=pZ1NboNfziHU3vWZLOZLX-qkfM3oKSnpc3omQf9
50
50
  seleniumbase/core/recorder_helper.py,sha256=gDION28OK4NAYsE-7ohKZ9Z3sxQQ0FEjf859LDpqsg4,25320
51
51
  seleniumbase/core/report_helper.py,sha256=AIl6Qava2yW1uSzbLpJBlPlYDz0KE-rVhogh8hsGWBo,12201
52
52
  seleniumbase/core/s3_manager.py,sha256=z_4qx2jI_gtK5r3niGXgEOBpfMUicUCOciowai50MP4,3529
53
- seleniumbase/core/sb_cdp.py,sha256=2q9-XRGaleEyN-rA27pFmvgAP0SYhLcE8AHFoA-818w,101689
53
+ seleniumbase/core/sb_cdp.py,sha256=QmbU3P9gPHL2jvuza1PiAm0LcViV3j0UU1PpZerLEGA,101935
54
54
  seleniumbase/core/sb_driver.py,sha256=yUdS9_9OXTVaWzp1qY7msvnsvCK8X3FIcxMixb0BuBE,13827
55
55
  seleniumbase/core/session_helper.py,sha256=s9zD3PVZEWVzG2h81cCUskbNWLfdjC_LwwQjKptHCak,558
56
56
  seleniumbase/core/settings_parser.py,sha256=gqVohHVlE_5L5Cqe2L24uYrRzvoK-saX8E_Df7_-_3I,7609
@@ -137,9 +137,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
137
137
  seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
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.41.7.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
141
- seleniumbase-4.41.7.dist-info/METADATA,sha256=ioROH_wcB_a6pFPuHeuOkmfK7dYWoya9VyQqIRqKmXk,89268
142
- seleniumbase-4.41.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
143
- seleniumbase-4.41.7.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
144
- seleniumbase-4.41.7.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
145
- seleniumbase-4.41.7.dist-info/RECORD,,
140
+ seleniumbase-4.41.8.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
141
+ seleniumbase-4.41.8.dist-info/METADATA,sha256=DAejvp5nQbkxPiKbTGL2M_vRz_HF4sgGwt4hcT6PiaM,89262
142
+ seleniumbase-4.41.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
143
+ seleniumbase-4.41.8.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
144
+ seleniumbase-4.41.8.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
145
+ seleniumbase-4.41.8.dist-info/RECORD,,