Skip to content

Commit b1f7fcc

Browse files
Machinexa2AutomatedTester
Machinexa2
andauthored
[py] Modernise conditionals (#8954)
Co-authored-by: David Burns <[email protected]>
1 parent 693fe1b commit b1f7fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/edge/webdriver.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def __init__(self, executable_path='MicrosoftWebDriver.exe', port=DEFAULT_PORT,
5656
warnings.warn('executable_path has been deprecated, please pass in a Service object',
5757
DeprecationWarning, stacklevel=2)
5858

59-
if options is not None and options.use_chromium:
59+
if options and options.use_chromium:
6060
executable_path = "msedgedriver"
6161

62-
if service is None:
62+
if not service:
6363
service = Service(executable_path, port, service_args, service_log_path)
6464

6565
super(WebDriver, self).__init__(DesiredCapabilities.EDGE['browserName'], "ms",

0 commit comments

Comments
 (0)