Skip to content

Commit

Permalink
[py] Set Chromium Edge to be the default for Edge browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Mar 11, 2021
1 parent 69d9aab commit 2b6b05b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions py/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def driver(request):
# skip tests if not available on the platform
_platform = platform.system()
if driver_class == "Safari" and _platform != "Darwin":
pytest.skip("Safari tests can only run on an Apple OS")
if (driver_class == "Ie" or driver_class == "Edge") and _platform != "Windows":
pytest.skip("Safari tests can only rn on an Apple OS")
if (driver_class == "Ie") and _platform != "Windows":
pytest.skip("IE and EdgeHTML Tests can only run on Windows")
if "WebKit" in driver_class and _platform != "Linux":
pytest.skip("Webkit tests can only run on Linux")
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/edge/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Options(ChromiumOptions):

def __init__(self):
super(Options, self).__init__()
self._use_chromium = False
self._use_chromium = True
self._use_webview = False

@property
Expand Down
6 changes: 3 additions & 3 deletions py/selenium/webdriver/edge/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class WebDriver(ChromiumDriver):
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
"""

def __init__(self, executable_path='MicrosoftWebDriver.exe', port=DEFAULT_PORT,
options: Options = None, service_args=None,
def __init__(self, executable_path='msedgedriver', port=DEFAULT_PORT,
options: Options = Options(), service_args=None,
capabilities=None, service_log_path=DEFAULT_SERVICE_LOG_PATH,
service: Service = None, keep_alive=False, verbose=False):
"""
Expand All @@ -52,7 +52,7 @@ def __init__(self, executable_path='MicrosoftWebDriver.exe', port=DEFAULT_PORT,
- keep_alive - Whether to configure EdgeRemoteConnection to use HTTP keep-alive.
- verbose - whether to set verbose logging in the service.
"""
if executable_path != 'MicrosoftWebDriver.exe':
if executable_path != 'msedgedriver':
warnings.warn('executable_path has been deprecated, please pass in a Service object',
DeprecationWarning, stacklevel=2)

Expand Down

0 comments on commit 2b6b05b

Please sign in to comment.