Skip to content

Commit cea9724

Browse files
carlosgcamposAutomatedTester
authored andcommitted
[py] do not include empty args list in WebKitGTK+ browser options
1 parent 61e3476 commit cea9724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/webkitgtk/options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def to_capabilities(self):
8989
browser_options = {}
9090
if self.browser_executable_path:
9191
browser_options["binary"] = self.browser_executable_path
92-
browser_options["args"] = self.browser_arguments
92+
if self.browser_arguments:
93+
browser_options["args"] = self.browser_arguments
9394
browser_options["useOverlayScrollbars"] = self.overlay_scrollbars_enabled
9495

9596
webkitgtk[Options.KEY] = browser_options

0 commit comments

Comments
 (0)