Skip to content

Commit

Permalink
[py] Fix flake8 issues in safari options
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Apr 22, 2021
1 parent 4153f72 commit 95dc027
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions py/selenium/webdriver/safari/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from typing import Union
import warnings
from selenium.common.exceptions import InvalidArgumentException
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.proxy import Proxy
from selenium.webdriver.common.options import ArgOptions


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


class Options(ArgOptions):
KEY = "webkit:safariOptions"
KEY = "safari.options"

def __init__(self):
super(Options, self).__init__()
self._binary_location = None
self._preferences: dict = {}
self._proxy = None
self.log = Log()

@property
def binary_location(self):
def binary_location(self) -> str:
"""
:Returns: The location of the browser binary otherwise an empty string
"""
return self._binary_location

@binary_location.setter
def binary_location(self, value):
def binary_location(self, value: str):
"""
Allows you to set the browser binary to launch
Expand Down

0 comments on commit 95dc027

Please sign in to comment.