Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.93 KB | None | 0 0
  1. request = <SubRequest 'app' for <Function test_add_group[None:;;]>>
  2.  
  3.     @pytest.fixture
  4.     def app(request):
  5.         global fixture
  6.         if fixture is None:
  7.             browser = request.config.getoption("--browser")
  8. >           fixture = Application(browser=browser)
  9.  
  10. conftest.py:13:
  11. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  12.  
  13. self = <fixture.application.Application object at 0x0324BA50>, browser = 'firefox'
  14.  
  15.     def __init__(self, browser="Firefox"):
  16.         if browser == "Firefox":
  17.             self.wd = webdriver.Firefox()
  18.         elif browser == "Chrome":
  19.             self.wd = webdriver.Chrome()
  20.         elif browser == "Ie":
  21.             self.wd = webdriver.Ie()
  22.         else:
  23. >           raise ValueError("Unrecognized browser %s" % browser)
  24. E           ValueError: Unrecognized browser firefox
  25.  
  26. fixture\application.py:17: ValueError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement