Skip to content

Commit

Permalink
Remove accidental hard-coding of Firefox binary path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davehunt committed Oct 6, 2016
1 parent 8e9fb5a commit f83a4b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ def driver(request):
if driver_class == 'BlackBerry':
kwargs.update({'device_password': 'password'})
if driver_class == 'Firefox':
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('/Applications/Firefox 47.app/Contents/MacOS/firefox-bin')
kwargs.update({'capabilities': {
'marionette': False,
'binary': binary}})
kwargs.update({'capabilities': {'marionette': False}})
if driver_class == 'Marionette':
driver_class = 'Firefox'
kwargs.update({'capabilities': {'marionette': True}})
Expand Down

0 comments on commit f83a4b4

Please sign in to comment.