If SeleniumBase wasn't installed correctly, specify that, and how to.

This commit is contained in:
Michael Mintz 2018-02-16 15:14:16 -05:00
parent 7a468ef3c6
commit 2d11593409
1 changed files with 4 additions and 0 deletions

View File

@ -1463,6 +1463,10 @@ class BaseCase(unittest.TestCase):
self.headless_active = True
# Launch WebDriver for both Pytest and Nosetests
if not hasattr(self, "browser"):
raise Exception("""SeleniumBase plugins did not load! """
"""Please reinstall using:\n"""
""" >>> "python setup.py develop" <<< """)
self.driver = browser_launcher.get_driver(self.browser,
self.headless,
self.use_grid,