You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- service_args : List of args to pass to the safaridriver service"""
46
+
self._check_executable(executable_path)
47
+
self.service_args=service_argsor []
48
+
self.quiet=quiet
49
+
log_file=PIPE
50
+
ifquiet:
51
+
log_file=open(os.devnull, "w", encoding="utf-8")
52
+
super().__init__(
53
+
executable=executable_path,
54
+
port=port,
55
+
log_file=log_file,
56
+
env=env,
57
+
)
48
58
59
+
@staticmethod
60
+
def_check_executable(executable_path) ->None:
49
61
ifnotos.path.exists(executable_path):
50
62
if"Safari Technology Preview"inexecutable_path:
51
63
message="Safari Technology Preview does not seem to be installed. You can download it at https://developer.apple.com/safari/download/."
52
64
else:
53
65
message="SafariDriver was not found; are you running Safari 10 or later? You can download Safari at https://developer.apple.com/safari/download/."
0 commit comments