Skip to content

Commit

Permalink
Take in **kwargs for Firefox to pass them on to Selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
HaraldNordgren committed Mar 21, 2017
1 parent 0e457b2 commit 3031038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splinter/driver/webdriver/firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WebDriver(BaseWebDriver):

def __init__(self, profile=None, extensions=None, user_agent=None,
profile_preferences=None, fullscreen=False, wait_time=2,
timeout=90, capabilities=None):
timeout=90, capabilities=None, **kwargs):

firefox_profile = FirefoxProfile(profile)
firefox_profile.set_preference('extensions.logging.enabled', False)
Expand All @@ -46,7 +46,7 @@ def __init__(self, profile=None, extensions=None, user_agent=None,

self.driver = Firefox(firefox_profile,
capabilities=firefox_capabilities,
timeout=timeout)
timeout=timeout, **kwargs)

if fullscreen:
ActionChains(self.driver).send_keys(Keys.F11).perform()
Expand Down

0 comments on commit 3031038

Please sign in to comment.