Skip to content

Commit 15feb5c

Browse files
removed redundant getter and setter method in wpewebkit/options.py
1 parent 84f8eb2 commit 15feb5c

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

py/selenium/webdriver/remote/errorhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,4 @@ def check_response(self, response: Dict[str, Any]) -> None:
242242
elif "alert" in value:
243243
alert_text = value["alert"].get("text")
244244
raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
245-
raise exception_class(message, screen, stacktrace)
245+
raise exception_class(message, screen, stacktrace)

py/selenium/webdriver/wpewebkit/options.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ def __init__(self) -> None:
2727
self._binary_location = ""
2828
self._caps = DesiredCapabilities.WPEWEBKIT.copy()
2929

30-
@property
31-
def capabilities(self):
32-
return self._caps
33-
34-
def set_capability(self, name, value) -> None:
35-
"""Sets a capability."""
36-
self._caps[name] = value
37-
3830
@property
3931
def binary_location(self) -> str:
4032
"""Returns the location of the browser binary otherwise an empty

py/test/unit/selenium/webdriver/remote/error_handler_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,4 @@ def test_handle_errors_better(handler):
270270
}
271271
with pytest.raises(exceptions.WebDriverException) as e:
272272
handler.check_response(response)
273-
274-
assert "Could not start a new session." in e.value.msg
273+
assert "Could not start a new session." in e.value.msg

0 commit comments

Comments
 (0)