Skip to content

Commit 1bd96f4

Browse files
committed
1 parent 6a23f86 commit 1bd96f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/selenium/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import urlparse
1111

1212
import pytest
13-
from pytest_selenium import pytest_selenium
13+
# Wokaround https://github.com/pytest-dev/pytest/issues/3775
14+
from pytest_selenium import pytest_selenium as pt_selenium
1415
from selenium.webdriver.remote.remote_connection import (
1516
LOGGER as SELENIUM_LOGGER)
1617

@@ -78,7 +79,7 @@ def gather_screenshot(item, report, driver, summary, extra):
7879
if pytest_html is not None:
7980
extra.append(pytest_html.extras.image(screenshot, 'Screenshot'))
8081

81-
pytest_selenium._gather_screenshot = gather_screenshot
82+
pt_selenium._gather_screenshot = gather_screenshot
8283

8384

8485
patch_pytest_selenium_screenshot()

0 commit comments

Comments
 (0)