Skip to content

Commit d08e64c

Browse files
authored
Merge pull request #732 from seleniumbase/driver-updates
Driver updates and more
2 parents a3bdfb5 + 3549691 commit d08e64c

File tree

7 files changed

+38
-20
lines changed

7 files changed

+38
-20
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ geckodriver.exe
7474
msedgedriver.exe
7575
operadriver.exe
7676

77+
# msedgedriver requirements
78+
libc++.dylib
79+
7780
# Logs
7881
logs
7982
latest_logs

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
regex>=2020.11.11
1+
regex>=2020.11.13
22
tqdm>=4.51.0
33
livereload==2.6.3;python_version>="3.6"
44
Markdown==3.3.3

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ parso==0.7.1
1313
jedi==0.17.2
1414
idna==2.10
1515
chardet==3.0.4
16-
urllib3==1.26.1
16+
urllib3==1.26.2
1717
requests==2.25.0
1818
selenium==3.141.0
1919
msedge-selenium-tools==3.141.2

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "1.50.5"
2+
__version__ = "1.50.6"

seleniumbase/console_scripts/sb_install.py

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
sbase install chromedriver latest
1919
sbase install chromedriver -p
2020
sbase install chromedriver latest -p
21-
sbase install edgedriver 85.0.564.68
21+
sbase install edgedriver 86.0.622.69
2222
Output:
2323
Installs the chosen webdriver to seleniumbase/drivers/
2424
(chromedriver is required for Chrome automation)
@@ -42,8 +42,8 @@
4242
DRIVER_DIR = os.path.dirname(os.path.realpath(drivers.__file__))
4343
LOCAL_PATH = "/usr/local/bin/" # On Mac and Linux systems
4444
DEFAULT_CHROMEDRIVER_VERSION = "2.44" # (Specify "latest" to get the latest)
45-
DEFAULT_GECKODRIVER_VERSION = "v0.27.0"
46-
DEFAULT_EDGEDRIVER_VERSION = "85.0.564.44" # (Looks for LATEST_STABLE first)
45+
DEFAULT_GECKODRIVER_VERSION = "v0.28.0"
46+
DEFAULT_EDGEDRIVER_VERSION = "86.0.622.69" # (Looks for LATEST_STABLE first)
4747
DEFAULT_OPERADRIVER_VERSION = "v.84.0.4147.89"
4848

4949

@@ -410,13 +410,19 @@ def main(override=None):
410410
print("")
411411
elif name == "edgedriver" or name == "msedgedriver":
412412
if "darwin" in sys_plat or "linux" in sys_plat:
413-
# Was expecting to be on a Windows OS at this point
414-
raise Exception("Unexpected file format for msedgedriver!")
415-
expected_contents = (['Driver_Notes/',
416-
'Driver_Notes/credits.html',
417-
'Driver_Notes/LICENSE',
418-
'msedgedriver.exe'])
419-
if len(contents) > 4:
413+
# Mac / Linux
414+
expected_contents = (['Driver_Notes/',
415+
'Driver_Notes/LICENSE',
416+
'Driver_Notes/credits.html',
417+
'msedgedriver',
418+
'libc++.dylib'])
419+
else:
420+
# Windows
421+
expected_contents = (['Driver_Notes/',
422+
'Driver_Notes/credits.html',
423+
'Driver_Notes/LICENSE',
424+
'msedgedriver.exe'])
425+
if len(contents) > 5:
420426
raise Exception("Unexpected content in EdgeDriver Zip file!")
421427
for content in contents:
422428
if content not in expected_contents:
@@ -430,11 +436,20 @@ def main(override=None):
430436
# Remove existing version if exists
431437
str_name = str(f_name)
432438
new_file = downloads_folder + '/' + str_name
433-
if str_name == "msedgedriver.exe":
434-
driver_file = str_name
435-
driver_path = new_file
436-
if os.path.exists(new_file):
437-
os.remove(new_file)
439+
if "darwin" in sys_plat or "linux" in sys_plat:
440+
# Mac / Linux
441+
if str_name == "msedgedriver":
442+
driver_file = str_name
443+
driver_path = new_file
444+
if os.path.exists(new_file):
445+
os.remove(new_file)
446+
else:
447+
# Windows
448+
if str_name == "msedgedriver.exe":
449+
driver_file = str_name
450+
driver_path = new_file
451+
if os.path.exists(new_file):
452+
os.remove(new_file)
438453
if not driver_file or not driver_path:
439454
raise Exception("msedgedriver missing from Zip file!")
440455
print('Extracting %s from %s ...' % (contents, file_name))

seleniumbase/core/browser_launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def _create_firefox_profile(
312312
profile.set_preference("browser.privatebrowsing.autostart", True)
313313
profile.set_preference("devtools.errorconsole.enabled", False)
314314
profile.set_preference("dom.webnotifications.enabled", False)
315-
profile.set_preference("dom.disable_beforeunload", True)
315+
profile.set_preference("dom.disable_beforeunload", False)
316316
profile.set_preference("browser.contentblocking.database.enabled", False)
317317
profile.set_preference("extensions.allowPrivateBrowsingByDefault", True)
318318
profile.set_preference("extensions.PrivateBrowsing.notification", False)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
'jedi==0.17.2', # The last version for Python 2 and 3.5
118118
'idna==2.10', # Must stay in sync with "requests"
119119
'chardet==3.0.4', # Must stay in sync with "requests"
120-
'urllib3==1.26.1', # Must stay in sync with "requests"
120+
'urllib3==1.26.2', # Must stay in sync with "requests"
121121
'requests==2.25.0',
122122
'selenium==3.141.0',
123123
'msedge-selenium-tools==3.141.2',

0 commit comments

Comments
 (0)