Skip to content

Commit 95dc027

Browse files
[py] Fix flake8 issues in safari options
1 parent 4153f72 commit 95dc027

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

py/selenium/webdriver/safari/options.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
from typing import Union
18-
import warnings
19-
from selenium.common.exceptions import InvalidArgumentException
2017
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
21-
from selenium.webdriver.common.proxy import Proxy
2218
from selenium.webdriver.common.options import ArgOptions
2319

2420

@@ -33,24 +29,23 @@ def to_capabilities(self) -> dict:
3329

3430

3531
class Options(ArgOptions):
36-
KEY = "webkit:safariOptions"
32+
KEY = "safari.options"
3733

3834
def __init__(self):
3935
super(Options, self).__init__()
4036
self._binary_location = None
4137
self._preferences: dict = {}
42-
self._proxy = None
4338
self.log = Log()
4439

4540
@property
46-
def binary_location(self):
41+
def binary_location(self) -> str:
4742
"""
4843
:Returns: The location of the browser binary otherwise an empty string
4944
"""
5045
return self._binary_location
5146

5247
@binary_location.setter
53-
def binary_location(self, value):
48+
def binary_location(self, value: str):
5449
"""
5550
Allows you to set the browser binary to launch
5651

0 commit comments

Comments
 (0)