Skip to content

Commit 8f1dcfd

Browse files
committed
[py] Make WPEWebKit option class inherit from ArgOptions
1 parent 941dc9c commit 8f1dcfd

1 file changed

Lines changed: 3 additions & 21 deletions

File tree

py/selenium/webdriver/wpewebkit/options.py

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
# under the License.
1717

1818
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
19+
from selenium.webdriver.common.options import ArgOptions
1920

2021

21-
class Options(object):
22+
class Options(ArgOptions):
2223
KEY = 'wpe:browserOptions'
2324

2425
def __init__(self):
26+
super(Options, self).__init__()
2527
self._binary_location = ''
26-
self._arguments = []
2728
self._caps = DesiredCapabilities.WPEWEBKIT.copy()
2829

2930
@property
@@ -51,25 +52,6 @@ def binary_location(self, value):
5152
"""
5253
self._binary_location = value
5354

54-
@property
55-
def arguments(self):
56-
"""
57-
Returns a list of arguments needed for the browser
58-
"""
59-
return self._arguments
60-
61-
def add_argument(self, argument):
62-
"""
63-
Adds an argument to the list
64-
65-
:Args:
66-
- Sets the arguments
67-
"""
68-
if argument:
69-
self._arguments.append(argument)
70-
else:
71-
raise ValueError("argument can not be null")
72-
7355
def to_capabilities(self):
7456
"""
7557
Creates a capabilities with all the options that have been set and

0 commit comments

Comments
 (0)