Skip to content

Commit

Permalink
[py] do not include empty args list in WebKitGTK+ browser options
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgcampos authored and AutomatedTester committed Nov 27, 2017
1 parent 61e3476 commit cea9724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/selenium/webdriver/webkitgtk/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def to_capabilities(self):
browser_options = {}
if self.browser_executable_path:
browser_options["binary"] = self.browser_executable_path
browser_options["args"] = self.browser_arguments
if self.browser_arguments:
browser_options["args"] = self.browser_arguments
browser_options["useOverlayScrollbars"] = self.overlay_scrollbars_enabled

webkitgtk[Options.KEY] = browser_options
Expand Down

0 comments on commit cea9724

Please sign in to comment.