Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abotalov committed Aug 8, 2018
1 parent 6a23f86 commit d244ea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/selenium/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import urlparse

import pytest
from pytest_selenium import pytest_selenium
# Wokaround https://github.com/pytest-dev/pytest/issues/3775
from pytest_selenium import pytest_selenium as pt_selenium
from selenium.webdriver.remote.remote_connection import (
LOGGER as SELENIUM_LOGGER)

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

pytest_selenium._gather_screenshot = gather_screenshot
pt_selenium._gather_screenshot = gather_screenshot


patch_pytest_selenium_screenshot()
Expand Down

0 comments on commit d244ea0

Please sign in to comment.