Skip to content

Commit ca9d41a

Browse files
[py] removed redundant attributes capabilities and set_capability in wpewebkit/options.py (#12169)
* added type hints to all the methods in Select class * fixed lynting error by moving standard import to the beginning * fixed import formatting issue in Select class * optimized _get_longest_token method in Select class * added driver types to types.py * added type hints to all conditions in expected_conditions.py * resolved merge conflict * moved driver types to select.py * added driver types to expected_conditions.py * moved driver types to expected_conditions.py * removed driver imports to fix circular import * fixed typo * resolved * removed empty line * fixed typo * removed duplicate import * fixed incorrect return types for couple of conditions * fixed lynting error by breaking different imports from typing module into different lines * fixed lynting errors * made formatting changes * added type hints to all the methods in Select class * fixed lynting error by moving standard import to the beginning * fixed all formatting issues * added newline after standard import in select.py * added type hints to all conditions in expected_conditions.py * resolved merge conflicts * resolved merge conflicts * made formatting changes * fixed all formatting issues * mapped all error codes and its corresponding exception classes to dictionary * fixed formatting issue * fixed error_handler_tests.py to do a dictionary lookup * restored errorhandler.py * restored error_handler_tests.py * fixed typo in error_handler_test.py * clean up * removed redundant getter and setter method in wpewebkit/options.py * replaced set_capability method into setter in common/options.py * fixed typo * added comment * fixed lynting error * Revert "removed redundant getter and setter method in wpewebkit/options.py" This reverts commit 15feb5c. * revereted the changes made to Options class * reverted options.py --------- Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 043bb18 commit ca9d41a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

0 commit comments

Comments
 (0)