+12
-4
lines changedFilter options
+12
-4
lines changed Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1
1
Selenium (TBA next version)
2
2
* Fix frame_to_be_available_and_switch_to_it() for string inputs (#10963)
3
-
* Implicit non w3c capability conversion for `acceptSslCerts`, `platform` and `version` is now deprecated.
3
+
* Implicit non w3c capability conversion for `acceptSslCerts`, `platform` and `version` is now deprecated
4
4
* Additional type hints
5
5
* Less strict requirements on the version of `certifi`
6
+
* Bugfix options returning `None` when strict_file_interactability, set_window_rect or accept_insecure_certs are not set
6
7
7
8
8
9
Selenium 4.4.3
Original file line number Diff line number Diff line change
@@ -157,7 +157,7 @@ def accept_insecure_certs(self) -> bool:
157
157
"""
158
158
:returns: whether the session accepts insecure certificates
159
159
"""
160
-
return self._caps.get('acceptInsecureCerts')
160
+
return self._caps.get('acceptInsecureCerts', False)
161
161
162
162
@accept_insecure_certs.setter
163
163
def accept_insecure_certs(self, value: bool) -> None:
@@ -174,7 +174,7 @@ def strict_file_interactability(self) -> bool:
174
174
"""
175
175
:returns: whether session is strict about file interactability
176
176
"""
177
-
return self._caps.get('strictFileInteractability')
177
+
return self._caps.get('strictFileInteractability', False)
178
178
179
179
@strict_file_interactability.setter
180
180
def strict_file_interactability(self, value: bool) -> None:
@@ -190,7 +190,7 @@ def set_window_rect(self) -> bool:
190
190
"""
191
191
:returns: whether the remote end supports setting window size and position
192
192
"""
193
-
return self._caps.get('setWindowRect')
193
+
return self._caps.get('setWindowRect', False)
194
194
195
195
@set_window_rect.setter
196
196
def set_window_rect(self, value: bool) -> None:
Original file line number Diff line number Diff line change
@@ -58,3 +58,10 @@ def test_enable_mobile_with_device_serial(options):
58
58
android_activity="crackers",
59
59
device_serial="1234")
60
60
options.mobile_options["androidDeviceSerial"] == "1234"
61
+
62
+
63
+
def test_missing_capabilities_return_false_rather_than_none():
64
+
options = ArgOptions()
65
+
assert options.strict_file_interactability is False
66
+
assert options.set_window_rect is False
67
+
assert options.accept_insecure_certs is False
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4