seleniumbase 4.44.0__py3-none-any.whl → 4.44.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.44.0"
2
+ __version__ = "4.44.1"
@@ -2618,15 +2618,20 @@ def _set_chrome_options(
2618
2618
  if is_using_uc(undetectable, browser_name):
2619
2619
  chrome_options.add_argument("--disable-application-cache")
2620
2620
  chrome_options.add_argument("--disable-setuid-sandbox")
2621
- if not binary_location:
2621
+ if not binary_location:
2622
+ if os.path.exists("/bin/google-chrome"):
2623
+ binary_location = "/bin/google-chrome"
2624
+ elif os.path.exists("/usr/bin/google-chrome-stable"):
2625
+ binary_location = "/usr/bin/google-chrome-stable"
2626
+ elif os.path.exists("/usr/bin/google-chrome"):
2627
+ binary_location = "/usr/bin/google-chrome"
2628
+ elif os.path.exists("/usr/bin/google-chrome-stable"):
2629
+ binary_location = "/usr/bin/google-chrome-stable"
2630
+ else:
2622
2631
  br_app = "google-chrome"
2623
2632
  binary_loc = detect_b_ver.get_binary_location(br_app, True)
2624
2633
  if os.path.exists(binary_loc):
2625
2634
  binary_location = binary_loc
2626
- elif os.path.exists("/usr/bin/google-chrome-stable"):
2627
- binary_location = "/usr/bin/google-chrome-stable"
2628
- elif os.path.exists("/usr/bin/google-chrome"):
2629
- binary_location = "/usr/bin/google-chrome"
2630
2635
  extra_disabled_features = []
2631
2636
  if chromium_arg:
2632
2637
  # Can be a comma-separated list of Chromium args or a list
@@ -105,10 +105,22 @@ def chrome_on_linux_path(chromium_ok=False, browser_type=None):
105
105
  return ""
106
106
  if os_name() != OSType.LINUX:
107
107
  return ""
108
- paths = ["/bin/google-chrome", "/bin/google-chrome-stable"]
108
+ paths = [
109
+ "/bin/google-chrome",
110
+ "/bin/google-chrome-stable",
111
+ "/usr/bin/google-chrome",
112
+ "/usr/bin/google-chrome-stable"
113
+ ]
109
114
  for path in paths:
110
- if os.path.exists(path) and os.access(path, os.X_OK):
111
- return path
115
+ try:
116
+ if (
117
+ os.path.exists(path)
118
+ and os.access(path, os.R_OK)
119
+ and os.access(path, os.X_OK)
120
+ ):
121
+ return path
122
+ except Exception:
123
+ pass
112
124
  paths = os.environ["PATH"].split(os.pathsep)
113
125
  binaries = []
114
126
  binaries.append("google-chrome")
@@ -122,13 +134,32 @@ def chrome_on_linux_path(chromium_ok=False, browser_type=None):
122
134
  for binary in binaries:
123
135
  for path in paths:
124
136
  full_path = os.path.join(path, binary)
125
- if os.path.exists(full_path) and os.access(full_path, os.X_OK):
126
- return full_path
137
+ try:
138
+ if (
139
+ os.path.exists(full_path)
140
+ and os.access(full_path, os.R_OK)
141
+ and os.access(full_path, os.X_OK)
142
+ ):
143
+ return full_path
144
+ except Exception:
145
+ pass
127
146
  if chromium_ok:
128
- paths = ["/bin/chromium", "/bin/chromium-browser"]
147
+ paths = [
148
+ "/bin/chromium",
149
+ "/bin/chromium-browser",
150
+ "/usr/bin/chromium",
151
+ "/usr/bin/chromium-browser"
152
+ ]
129
153
  for path in paths:
130
- if os.path.exists(path) and os.access(path, os.X_OK):
131
- return path
154
+ try:
155
+ if (
156
+ os.path.exists(path)
157
+ and os.access(path, os.R_OK)
158
+ and os.access(path, os.X_OK)
159
+ ):
160
+ return path
161
+ except Exception:
162
+ pass
132
163
  return "/usr/bin/google-chrome"
133
164
 
134
165
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seleniumbase
3
- Version: 4.44.0
3
+ Version: 4.44.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
@@ -186,7 +186,7 @@ Requires-Dist: pip-system-certs==4.0; platform_system == "Windows" and extra ==
186
186
  Provides-Extra: proxy
187
187
  Requires-Dist: proxy.py==2.4.3; extra == "proxy"
188
188
  Provides-Extra: psutil
189
- Requires-Dist: psutil==7.1.0; extra == "psutil"
189
+ Requires-Dist: psutil==7.1.2; extra == "psutil"
190
190
  Provides-Extra: pyautogui
191
191
  Requires-Dist: PyAutoGUI>=0.9.54; platform_system != "Linux" and extra == "pyautogui"
192
192
  Provides-Extra: selenium-stealth
@@ -3,7 +3,7 @@ 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=cycg5W9jgt4aWBhVgu1_HNoOZVDHvJGt5mqmujcE0Fg,46
6
+ seleniumbase/__version__.py,sha256=Gr-UZgBl7BIprxWO2esUbwKHQHCR4_vClPRiURlWiJY,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=dEj9UUHVz3ejzEX25frViPQfp7acjI-UssWJO_wpugg,59875
@@ -36,11 +36,11 @@ seleniumbase/console_scripts/sb_print.py,sha256=iUKR71Y82NhuKBKw31PJilDw-pPUr-vq
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=pcAwr3DUyiQLORyltJ8CIPSx6NarPH--cyon5NsbfhU,255248
39
+ seleniumbase/core/browser_launcher.py,sha256=6qYkBOXoxuRlLa4v-HNuQLGC8NRuHnpqofcLLuyWgA4,255486
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
43
- seleniumbase/core/detect_b_ver.py,sha256=2vnZ4ROeNnGGuQgWfrcbTyVH8MN0Lh_mWDQ0Po0-1YM,21737
43
+ seleniumbase/core/detect_b_ver.py,sha256=hXAda-_e7syT948AUbD2QYCGGEqM2tMOba7EmGKGFT4,22505
44
44
  seleniumbase/core/download_helper.py,sha256=qSR54kQISucF4RQaLCOuuerSu6DR41juGi_30HVvWYY,2943
45
45
  seleniumbase/core/encoded_images.py,sha256=rDKJ4cNJSuKiRcFViYU7bjyTS9_moI57gUPRXVg3u2k,14209
46
46
  seleniumbase/core/jqc_helper.py,sha256=2DDQr9Q2jSSZqFzX588jLlUM9oJvyrRWq2aORSIPUdI,10322
@@ -141,9 +141,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
141
141
  seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
142
142
  seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
143
143
  seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=2tayFP_R9HGH0Xx6qYlPmArN0THntO6R0Wjo0qqgCZY,31680
144
- seleniumbase-4.44.0.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
145
- seleniumbase-4.44.0.dist-info/METADATA,sha256=F0MF6p_zPnyhtLWtTo2ztHEymQRNWG43Es1lq68ZVWE,90492
146
- seleniumbase-4.44.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
147
- seleniumbase-4.44.0.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
148
- seleniumbase-4.44.0.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
149
- seleniumbase-4.44.0.dist-info/RECORD,,
144
+ seleniumbase-4.44.1.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
145
+ seleniumbase-4.44.1.dist-info/METADATA,sha256=wFZknDxM6iwnJOi7jP0EnkfLzjEiyNbd9rROTKRir3o,90492
146
+ seleniumbase-4.44.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
147
+ seleniumbase-4.44.1.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
148
+ seleniumbase-4.44.1.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
149
+ seleniumbase-4.44.1.dist-info/RECORD,,