seleniumbase 4.32.4a1__py3-none-any.whl → 4.32.4a2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
1
  # seleniumbase package
2
- __version__ = "4.32.4a1"
2
+ __version__ = "4.32.4a2"
@@ -4172,8 +4172,8 @@ class BaseCase(unittest.TestCase):
4172
4172
  pass
4173
4173
  finally:
4174
4174
  with suppress(Exception):
4175
+ decoy_driver.disconnect()
4175
4176
  decoy_driver.quit()
4176
- time.sleep(0.1)
4177
4177
  # Launch a web browser
4178
4178
  new_driver = browser_launcher.get_driver(
4179
4179
  browser_name=browser_name,
@@ -875,8 +875,8 @@ def Driver(
875
875
  pass
876
876
  finally:
877
877
  with suppress(Exception):
878
+ decoy_driver.disconnect()
878
879
  decoy_driver.quit()
879
- time.sleep(0.1)
880
880
 
881
881
  driver = browser_launcher.get_driver(
882
882
  browser_name=browser_name,
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  import logging
3
2
  import os
4
3
  import re
@@ -252,7 +251,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
252
251
  "Default",
253
252
  "Preferences",
254
253
  ),
255
- encoding="latin1",
254
+ encoding="utf-8",
256
255
  mode="r+",
257
256
  errors="ignore",
258
257
  ) as fs:
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  import fasteners
3
2
  import json
4
3
  import logging
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  import os
3
2
  import sys
4
3
  import atexit
@@ -1,8 +1,6 @@
1
- #!/usr/bin/env python3
2
1
  import json
3
2
  import logging
4
3
  import os
5
- import time
6
4
  from contextlib import suppress
7
5
  from selenium.webdriver.chromium.options import ChromiumOptions
8
6
 
@@ -53,40 +51,24 @@ class ChromeOptions(ChromiumOptions):
53
51
  undot_prefs = self._merge_nested(
54
52
  undot_prefs, self._undot_key(key, value)
55
53
  )
56
- prefs_file = os.path.join(default_path, "Preferences")
54
+ prefs_file = os.path.join(default_path, "Preferences") + os.sep
57
55
  with suppress(Exception):
58
56
  if os.path.exists(prefs_file):
59
57
  with open(
60
- prefs_file,
61
- encoding="latin1",
62
- mode="r",
63
- errors="ignore",
58
+ prefs_file, encoding="utf-8", mode="r", errors="ignore"
64
59
  ) as f:
65
- data = json.load(f)
66
- logger.debug("Existing preferences: %s" % data)
67
- undot_prefs = self._merge_nested(data, undot_prefs)
68
- logger.debug("Combined preferences: %s" % undot_prefs)
69
- time.sleep(0.005)
70
- if not os.path.exists(prefs_file):
71
- try:
60
+ undot_prefs = self._merge_nested(
61
+ json.load(f), undot_prefs
62
+ )
63
+ if (
64
+ not os.path.exists(prefs_file)
65
+ or not any(os.scandir(prefs_file))
66
+ ):
67
+ with suppress(Exception):
72
68
  with open(
73
- prefs_file,
74
- encoding="latin1",
75
- mode="w",
76
- errors="ignore",
69
+ prefs_file, encoding="utf-8", mode="w", errors="ignore"
77
70
  ) as f:
78
71
  json.dump(undot_prefs, f)
79
- except Exception:
80
- time.sleep(0.005)
81
- with suppress(Exception):
82
- with open(
83
- prefs_file,
84
- encoding="utf-8",
85
- mode="w",
86
- errors="ignore",
87
- ) as f:
88
- json.dump(undot_prefs, f)
89
- time.sleep(0.005)
90
72
  # Remove experimental_options to avoid errors
91
73
  del self._experimental_options["prefs"]
92
74
  exclude_switches = self.experimental_options.get("excludeSwitches")
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  import io
3
2
  import logging
4
3
  import os
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  import asyncio
3
2
  import json
4
3
  import logging
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: seleniumbase
3
- Version: 4.32.4a1
3
+ Version: 4.32.4a2
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
@@ -59,7 +59,7 @@ Classifier: Topic :: Utilities
59
59
  Requires-Python: >=3.8
60
60
  Description-Content-Type: text/markdown
61
61
  License-File: LICENSE
62
- Requires-Dist: pip>=24.3
62
+ Requires-Dist: pip>=24.3.1
63
63
  Requires-Dist: packaging>=24.1
64
64
  Requires-Dist: wheel>=0.44.0
65
65
  Requires-Dist: attrs>=24.2.0
@@ -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=p3-TsNmVZnxoL7V9NMUn0fjSrX_dTOvJak7Ef8Bil9o,48
6
+ seleniumbase/__version__.py,sha256=y8P2Dh2BOUPuFJlt8NHL_koUMOo4oC9FUxkGTDH3rw4,48
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
@@ -65,7 +65,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=YMifIIgEBiLrEFrS1sfW4Exh4br1V4oK1
65
65
  seleniumbase/extensions/recorder.zip,sha256=OOyzF-Ize2cSRu1CqhzSAq5vusI9hqLLd2OIApUHesI,11918
66
66
  seleniumbase/extensions/sbase_ext.zip,sha256=3s1N8zrVaMz8RQEOIoBzC3KDjtmHwVZRvVsX25Odr_s,8175
67
67
  seleniumbase/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
- seleniumbase/fixtures/base_case.py,sha256=vOiDIDR7HzqTjCw0QdTLFoTyf96mFghtjFwYyEaJz_s,714720
68
+ seleniumbase/fixtures/base_case.py,sha256=1U8m_t2sOn9M5BknPyZIumWfohVxvEyO4-Mxzsp_vJE,714730
69
69
  seleniumbase/fixtures/constants.py,sha256=XYYMpB-ZDI756LvfhSK9RxdqQ_qO9fJVXgBqBYlQNkk,13609
70
70
  seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
71
71
  seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
@@ -86,7 +86,7 @@ seleniumbase/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
86
86
  seleniumbase/plugins/base_plugin.py,sha256=FemdftNhOaTfQIw5bWcJQPPPGQ3P0_sMEI_YYDuzZgU,14972
87
87
  seleniumbase/plugins/basic_test_info.py,sha256=8ov6n417gPbqqvrlT4zrch7l2XcRt-GF2ny6rR9AMWk,2108
88
88
  seleniumbase/plugins/db_reporting_plugin.py,sha256=En09qUCoojrk9-vbcnsoHdSELoGmag2GDIyu3jTiJas,7331
89
- seleniumbase/plugins/driver_manager.py,sha256=_gnlVch6BYRrneSW5eAsEqpZ95uzC48c_wMkLN4FuCs,37796
89
+ seleniumbase/plugins/driver_manager.py,sha256=EkrnG8zLRw8P0VXFImsvyfXdDDRPAnHA8QwZd6WRdI8,37806
90
90
  seleniumbase/plugins/page_source.py,sha256=loTnXxOj4kxEukuTZEiGyvKBhY3KDVDMnNlHHheTBDE,1889
91
91
  seleniumbase/plugins/pytest_plugin.py,sha256=Up96HY6q3hcPo4LQoEcKqt1hm2OmY5GZz_nMXTqDSXQ,97185
92
92
  seleniumbase/plugins/s3_logging_plugin.py,sha256=WDfertQgGOW_SRJpFMaekYD6vBVW9VO62POtXXy2HCM,2319
@@ -106,12 +106,12 @@ 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=3UukttRSdScUGCrms2BK35os3uSt130Z1BtxQJmhqxE,22136
110
- seleniumbase/undetected/cdp.py,sha256=EralLQm8diG5i6EoHFXHIQEc7Uf7PWtzyPH_upS5RIs,4047
111
- seleniumbase/undetected/dprocess.py,sha256=VLwyLWXSg-6GkeKpAQcTXLRmuBb0oEdku3_qgMifuwY,1705
112
- seleniumbase/undetected/options.py,sha256=3a-W5AkRR4PPU9PuaHlG7IZXIp5XbECxvk-73wHfOhY,3913
113
- seleniumbase/undetected/patcher.py,sha256=GqNqUwqDDFZg-Y3O6JOyFoOGhHN0r5PV46Mc9b9_BP0,10849
114
- seleniumbase/undetected/reactor.py,sha256=UT1pEnGaTPZT7-0-xKROk9_eWDZueGzSUrCksc22nyA,2883
109
+ seleniumbase/undetected/__init__.py,sha256=RzY5_ZQdVDzkybaYamvoIF5ChC1dTjqXPVFQB63iZVA,22111
110
+ seleniumbase/undetected/cdp.py,sha256=RLpwZnhUvmK9tgXcZIBBQedwk2q7Jj_EXZkmzI8WUqk,4023
111
+ seleniumbase/undetected/dprocess.py,sha256=83EV8ZHJWHG1TSUv9JNClBhdgiBXlkCc6mJ--HsoP3k,1681
112
+ seleniumbase/undetected/options.py,sha256=wt_Jpd7LKmj8rZGnBoap8pMmKqRuihlOUPhavbpUKa8,3220
113
+ seleniumbase/undetected/patcher.py,sha256=n9WfKznr4cQvaE5Gcx7iyK27zMWIc8KdI69_m817CSQ,10825
114
+ seleniumbase/undetected/reactor.py,sha256=NropaXcO54pzmDq6quR27qPJxab6636H7LRAaq-o0ng,2859
115
115
  seleniumbase/undetected/webelement.py,sha256=_s6evgUkdWJpwOnzX4qR9i796PoVbz3txlzHlOBJ4BE,1370
116
116
  seleniumbase/undetected/cdp_driver/__init__.py,sha256=c0TjMwPfVFyoqYOJ7PQ-Jln_L_dpN3ebHyaD-juQoM0,64
117
117
  seleniumbase/undetected/cdp_driver/_contradict.py,sha256=6thDYeoEGiC7Q3tXLgoD_AhxecCFnATzBSjNympyRHA,3184
@@ -135,9 +135,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
135
135
  seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
136
136
  seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
137
137
  seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
138
- seleniumbase-4.32.4a1.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
139
- seleniumbase-4.32.4a1.dist-info/METADATA,sha256=0y0snuA19qHT4QS36utt8jBsCN15L0DShe4Rc6Zo-Ds,86095
140
- seleniumbase-4.32.4a1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
141
- seleniumbase-4.32.4a1.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
142
- seleniumbase-4.32.4a1.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
143
- seleniumbase-4.32.4a1.dist-info/RECORD,,
138
+ seleniumbase-4.32.4a2.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
139
+ seleniumbase-4.32.4a2.dist-info/METADATA,sha256=19nt4iAhnK_g73CFHxmZIbJHMZ1UZUf_OHqv9sWNkB0,86097
140
+ seleniumbase-4.32.4a2.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
141
+ seleniumbase-4.32.4a2.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
142
+ seleniumbase-4.32.4a2.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
143
+ seleniumbase-4.32.4a2.dist-info/RECORD,,