Chrome is now the default web browser when unspecified

This commit is contained in:
Michael Mintz 2017-03-09 23:47:33 -05:00
parent 8cd946f0a7
commit 1d49d2352f
2 changed files with 8 additions and 7 deletions

View File

@ -12,10 +12,10 @@ def pytest_addoption(parser):
parser.addoption('--browser', action="store",
dest='browser',
choices=constants.Browser.VERSION.keys(),
default=constants.Browser.FIREFOX,
help="""Specifies the web browser to use. Default=FireFox.
If you want to use Chrome, explicitly indicate that.
Example: (--browser=chrome)""")
default=constants.Browser.GOOGLE_CHROME,
help="""Specifies the web browser to use. Default=Chrome.
If you want to use Firefox, explicitly indicate that.
Example: (--browser=firefox)""")
parser.addoption('--is_pytest', action="store_true",
dest='is_pytest',
default=True,

View File

@ -37,9 +37,10 @@ class SeleniumBrowser(Plugin):
'--browser', action='store',
dest='browser',
choices=constants.Browser.VERSION.keys(),
default=constants.Browser.FIREFOX,
help="""Specifies the web browser. Default: Firefox.
If you want to use Chrome, indicate that.""")
default=constants.Browser.GOOGLE_CHROME,
help="""Specifies the web browser to use. Default: Chrome.
If you want to use Firefox, explicitly indicate that.
Example: (--browser=firefox)""")
parser.add_option(
'--browser_version', action='store',
dest='browser_version',