webdriverwrapper/pytest/conftest.py
def driver(request, _driver):
    """
    Fixture for testing. This fixture just take your driver by fixture called
    ``_driver`` and after each test call
    :py:meth:`~webdriverwrapper.errors.WebdriverWrapperErrorMixin.check_expected_errors`
    and :py:meth:`~webdriverwrapper.info.WebdriverWrapperInfoMixin.check_expected_infos`.
    You have to just implement creating of your browser.

    .. code-block:: python

        @pytest.yield_fixture(scope='session')
        def _driver():
            driver = Chrome()
            yield driver
            driver.quit()
    """
    _driver.screenshot_path = getattr(request.config, 'webdriverwrapper_screenshot_path', None)
    _driver.close_other_windows()
    yield _driver
    _driver.check_expected_errors(test_method=request.function)
    _driver.check_expected_infos(test_method=request.function)

    Fixture for testing. This fixture just take your driver by fixture called
    ``_driver`` and after each test call
    :py:meth:`~webdriverwrapper.errors.WebdriverWrapperErrorMixin.check_expected_errors`
    and :py:meth:`~webdriverwrapper.info.WebdriverWrapperInfoMixin.check_expected_infos`.
    You have to just implement creating of your browser.

    .. code-block:: python

        @pytest.yield_fixture(scope='session')
        def _driver():
            driver = Chrome()
            yield driver
            driver.quit()
    
Fixture for testing. This fixture just take your driver by fixture called
``_driver`` and after each test call
Fixture for testing . This fixture just take your driver by fixture called ` ` _driver ` ` and after each test call
def driver(request, _driver):
    _driver.screenshot_path = getattr(request.config, 'webdriverwrapper_screenshot_path', None)
    _driver.close_other_windows()
    yield _driver
    _driver.check_expected_errors(test_method=request.function)
    _driver.check_expected_infos(test_method=request.function)
def driver ( request , _driver ) : _driver . screenshot_path = getattr ( request . config , 'webdriverwrapper_screenshot_path' , None ) _driver . close_other_windows ( ) yield _driver _driver . check_expected_errors ( test_method = request . function ) _driver . check_expected_infos ( test_method = request . function )
Fixture for testing.
Fixture for testing .
"""
    Fixture for testing. This fixture just take your driver by fixture called
    ``_driver`` and after each test call
    :py:meth:`~webdriverwrapper.errors.WebdriverWrapperErrorMixin.check_expected_errors`
    and :py:meth:`~webdriverwrapper.info.WebdriverWrapperInfoMixin.check_expected_infos`.
    You have to just implement creating of your browser.

    .. code-block:: python

        @pytest.yield_fixture(scope='session')
        def _driver():
            driver = Chrome()
            yield driver
            driver.quit()
    """
request
_driver
py
`~webdriverwrapper.errors.WebdriverWrapperErrorMixin.check_expected_errors`
and :py:meth:`~webdriverwrapper.info.WebdriverWrapperInfoMixin.check_expected_infos`.
You have to just implement creating of your browser.

code-block:: python

@pytest.yield_fixture(scope='session')
def _driver():
driver = Chrome()
yield driver
driver.quit()
` ~webdriverwrapper . errors . WebdriverWrapperErrorMixin . check_expected_errors ` and : py : meth : ` ~webdriverwrapper . info . WebdriverWrapperInfoMixin . check_expected_infos ` . You have to just implement creating of your browser . code - block :: python @pytest . yield_fixture ( scope = ' session ' ) def _driver () : driver = Chrome () yield driver driver . quit ()