Answer the question
In order to leave comments, you need to log in
What causes WinError 10061 in Selenium, pytnoh + pytest?
I use pytest + selenium to test a web application.
I created a file with tests, in one file there are two tests, two functions.
def test_add_one_product_to_cart(app):
pass
def test_add_multiple_product_to_cart(app):
pass
fixture = None
@pytest.fixture(scope="function")
def app(request):
global fixture
if fixture is None:
fixture = App()
request.addfinalizer(fixture.destroy)
return fixture
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question