github seleniumbase/SeleniumBase v1.37.2
Fix MSEdgeDriver automatic installation

latest releases: v4.27.0, v4.26.4, v4.26.3...
4 years ago

Fix MSEdgeDriver automatic installation

  • The MSEdgeDriver being using must be on the local SeleniumBase Path rather than on the System Path. This prevents permission issues. If it's not there when a test uses the Edge Browser, it will automatically get downloaded into the SeleniumBase drivers folder.

Here's an example of running a SeleniumBase test using the new Edge browser:

cd examples/
pytest basic_test.py -v --browser=edge
=============================================== test session starts ================================================
platform darwin -- Python 3.7.0, pytest-5.3.5, py-1.8.0, pluggy-0.13.1 -- /Users/michael/.virtualenvs/sbase7/bin/python
metadata: {'Python': '3.7.0', 'Platform': 'Darwin-18.7.0-x86_64-i386-64bit', 'Packages': {'pytest': '5.3.5', 'py': '1.8.0', 'pluggy': '0.13.1'}, 'Plugins': {'timeout': '1.3.4', 'html': '2.0.1', 'rerunfailures': '9.0', 'xdist': '1.31.0', 'ordering': '0.6', 'forked': '1.1.3', 'metadata': '1.8.0', 'cov': '2.8.1', 'seleniumbase': '1.37.2'}}
rootdir: /Users/michael/github/SeleniumBase, inifile: pytest.ini
plugins: timeout-1.3.4, html-2.0.1, rerunfailures-9.0, xdist-1.31.0, ordering-0.6, forked-1.1.3, metadata-1.8.0, cov-2.8.1, seleniumbase-1.37.2
collected 1 item                                                                                                   

basic_test.py::MyTestClass::test_basic 
Warning: msedgedriver not found. Installing now:

Downloading edgedriver_mac64.zip from:
https://msedgedriver.azureedge.net/79.0.309.65/edgedriver_mac64.zip ...
Download Complete!

Extracting ['msedgedriver'] from edgedriver_mac64.zip ...
Unzip Complete!

The file [msedgedriver] was saved to:
/Users/michael/github/SeleniumBase/seleniumbase/drivers/msedgedriver

Making [msedgedriver 79.0.309.65] executable ...
[msedgedriver] is now ready for use!

PASSED

================================================ 1 passed in 11.58s

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.