seleniumbase 4.32.0__py3-none-any.whl → 4.32.1__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.32.0"
2
+ __version__ = "4.32.1"
@@ -525,9 +525,6 @@ def uc_open_with_cdp_mode(driver, url=None):
525
525
  js_utils.call_me_later(driver, script, 3)
526
526
  time.sleep(0.012)
527
527
  driver.close()
528
- driver.clear_cdp_listeners()
529
- driver.delete_all_cookies()
530
- driver.delete_network_conditions()
531
528
  driver.disconnect()
532
529
 
533
530
  cdp_details = driver._get_cdp_details()
@@ -546,6 +543,7 @@ def uc_open_with_cdp_mode(driver, url=None):
546
543
  cdp_util.start(host=cdp_host, port=cdp_port)
547
544
  )
548
545
  page = loop.run_until_complete(driver.cdp_base.get(url))
546
+ loop.run_until_complete(page.activate())
549
547
  if not safe_url:
550
548
  time.sleep(constants.UC.CDP_MODE_OPEN_WAIT)
551
549
  cdp = types.SimpleNamespace()
@@ -133,8 +133,11 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
133
133
  options = ChromeOptions()
134
134
  try:
135
135
  if hasattr(options, "_session") and options._session is not None:
136
- # Prevent reuse of options
137
- raise RuntimeError("You cannot reuse the ChromeOptions object")
136
+ # Prevent reuse of options.
137
+ # (Probably a port overlap. Quit existing driver and continue.)
138
+ logger.debug("You cannot reuse the ChromeOptions object")
139
+ with suppress(Exception):
140
+ options._session.quit()
138
141
  except AttributeError:
139
142
  pass
140
143
  options._session = self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: seleniumbase
3
- Version: 4.32.0
3
+ Version: 4.32.1
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
@@ -3,7 +3,7 @@ sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
3
3
  sbase/steps.py,sha256=bKT_u5bJkKzYWEuAXi9NVVRYYxQRCM1_YJUrNFFRVPY,42865
4
4
  seleniumbase/__init__.py,sha256=OtJh8nGKL4xtZpw8KPqmn7Q6R-86t4cWUDyVF5MbMTo,2398
5
5
  seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
6
- seleniumbase/__version__.py,sha256=2MOWGUj31Rmy7cgI4NkXO-1JQ8tVPWJuE5Uaox9UzEU,46
6
+ seleniumbase/__version__.py,sha256=cYzIAKFVeekXWj7QIqAAqtEF16D8XoXeHdN61rz3esM,46
7
7
  seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  seleniumbase/behave/behave_helper.py,sha256=elkl8P9eLulRAioLstE9baYNM9N_PHBmAOcajX-pH_Y,24198
9
9
  seleniumbase/behave/behave_sb.py,sha256=-hza7Nx2U41mSObYiPMi48v3JlPh3sJO3yzP0kqZ1Gk,59174
@@ -36,7 +36,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=tNy-bMDgwHJO3bZxMpmo9weSE8uhbH0C
36
36
  seleniumbase/console_scripts/sb_recorder.py,sha256=1oAA4wFzVboNhIFDwJLD3jgy9RuoavywKQG7R67bNZE,10908
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=tP5p_EGqNcxa9icmEaGL90wkExhSBG5HffIrCmdEULM,214543
39
+ seleniumbase/core/browser_launcher.py,sha256=pZ1obi3Wiy41YIa8qqnld_UmlCP0rUfpuGf7CXySq_k,214484
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
@@ -106,7 +106,7 @@ seleniumbase/translate/portuguese.py,sha256=x3P4qxp56UiI41GoaL7JbUvFRYsgXU1EKjTg
106
106
  seleniumbase/translate/russian.py,sha256=TyN9n0b4GRWDEYnHRGw1rfNAscdDmP3F3Y3aySM3C7s,27978
107
107
  seleniumbase/translate/spanish.py,sha256=hh3xgW1Pq122SHYVvJAxFaXhFrjniOVncVbJbfWqOUM,25528
108
108
  seleniumbase/translate/translator.py,sha256=wPhZH6e5NhmebYL1kP2eGxUcVy1gfTb6XCH8ATEPpxE,49238
109
- seleniumbase/undetected/__init__.py,sha256=DM4qLtVTnWtyjQxzlHNQogrdFAQ0o6ezpc5cT8BrF5s,21971
109
+ seleniumbase/undetected/__init__.py,sha256=CkVcuzZwwGU6YqEwlsV5yLIr2CWjQo9f_AOHBIfJ6Rs,22135
110
110
  seleniumbase/undetected/cdp.py,sha256=EralLQm8diG5i6EoHFXHIQEc7Uf7PWtzyPH_upS5RIs,4047
111
111
  seleniumbase/undetected/dprocess.py,sha256=VLwyLWXSg-6GkeKpAQcTXLRmuBb0oEdku3_qgMifuwY,1705
112
112
  seleniumbase/undetected/options.py,sha256=jc6Km-gZePOemnolD7UF7dDXpxmRtAE2XDraLUdaIFE,2968
@@ -127,9 +127,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
127
127
  seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
128
128
  seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
129
129
  seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
130
- seleniumbase-4.32.0.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
131
- seleniumbase-4.32.0.dist-info/METADATA,sha256=80Uen7n631jzckzndYAbj1wGISIBEVa14J8XhzB1css,85653
132
- seleniumbase-4.32.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
133
- seleniumbase-4.32.0.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
134
- seleniumbase-4.32.0.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
135
- seleniumbase-4.32.0.dist-info/RECORD,,
130
+ seleniumbase-4.32.1.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
131
+ seleniumbase-4.32.1.dist-info/METADATA,sha256=SUrZ0kIbJdzcvxRPEXDPW9QxjLEXF8w3A4G3vz8oDiw,85653
132
+ seleniumbase-4.32.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
133
+ seleniumbase-4.32.1.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
134
+ seleniumbase-4.32.1.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
135
+ seleniumbase-4.32.1.dist-info/RECORD,,