Commit 6b51f3a2 authored by Roman Yurchak's avatar Roman Yurchak

Cache selenium fixture at the module level

parent b47713d4
...@@ -103,7 +103,7 @@ class ChromeWrapper(SeleniumWrapper): ...@@ -103,7 +103,7 @@ class ChromeWrapper(SeleniumWrapper):
if pytest is not None: if pytest is not None:
@pytest.fixture(params=['firefox', 'chrome']) @pytest.fixture(params=['firefox', 'chrome'], scope='module')
def selenium(request): def selenium(request):
if request.param == 'firefox': if request.param == 'firefox':
cls = FirefoxWrapper cls = FirefoxWrapper
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment