Skip to content

Commit 876863f

Browse files
committed
Update is_edgedriver_on_path() method
1 parent e3b1a4a commit 876863f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ def is_chromedriver_on_path():
8383

8484

8585
def is_edgedriver_on_path():
86-
paths = os.environ["PATH"].split(os.pathsep)
87-
for path in paths:
88-
if os.path.exists(path + '/' + "msedgedriver"):
89-
return True
90-
return False
86+
return os.path.exists(LOCAL_EDGEDRIVER)
9187

9288

9389
def is_geckodriver_on_path():

0 commit comments

Comments
 (0)