{"action":"opened","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-selenium/issues/196","repository_url":"https://api.github.com/repos/pytest-dev/pytest-selenium","labels_url":"https://api.github.com/repos/pytest-dev/pytest-selenium/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-selenium/issues/196/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-selenium/issues/196/events","html_url":"https://github.com/pytest-dev/pytest-selenium/issues/196","id":366575623,"node_id":"MDU6SXNzdWUzNjY1NzU2MjM=","number":196,"title":"Screenshots not showing up in report","user":{"login":"NinjaSteph","id":579696,"node_id":"MDQ6VXNlcjU3OTY5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/579696?v=4","gravatar_id":"","url":"https://api.github.com/users/NinjaSteph","html_url":"https://github.com/NinjaSteph","followers_url":"https://api.github.com/users/NinjaSteph/followers","following_url":"https://api.github.com/users/NinjaSteph/following{/other_user}","gists_url":"https://api.github.com/users/NinjaSteph/gists{/gist_id}","starred_url":"https://api.github.com/users/NinjaSteph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NinjaSteph/subscriptions","organizations_url":"https://api.github.com/users/NinjaSteph/orgs","repos_url":"https://api.github.com/users/NinjaSteph/repos","events_url":"https://api.github.com/users/NinjaSteph/events{/privacy}","received_events_url":"https://api.github.com/users/NinjaSteph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-04T00:10:18Z","updated_at":"2018-10-04T00:10:18Z","closed_at":null,"author_association":"NONE","body":"I must be missing something, but I can't seem to get screenshots to show up in my report on failure. Here is my conftest.py file:\r\n```\r\nfrom datetime import datetime\r\nfrom py.xml import html\r\nimport pytest\r\nfrom selenium import webdriver\r\nfrom selenium.webdriver.firefox.options import Options\r\nfrom stored_values.common_values import base_url\r\nfrom pages.signup_page import SignupPage\r\n\r\noptions = Options()\r\n# Set to false when debugging locally\r\noptions.set_headless(headless=True)\r\n\r\n# Set up the driver\r\n@pytest.fixture\r\ndef driver(request):\r\n    driver = webdriver.Firefox(options=options)\r\n    yield driver\r\n\r\n    def close_browser():\r\n        driver.quit()\r\n\r\n    request.addfinalizer(close_browser)\r\n\r\n# Add fixtures for pages\r\n@pytest.fixture()\r\ndef SignupPageObject(driver):\r\n    page = SignupPage(driver, root_uri=base_url)\r\n    page.load()\r\n    return page\r\n\r\n# Additional content for pytest results\r\n@pytest.mark.optionalhook\r\ndef pytest_html_results_table_header(cells):\r\n    cells.insert(2, html.th('Description'))\r\n    cells.insert(1, html.th('Time', class_='sortable time', col='time'))\r\n\r\n@pytest.mark.optionalhook\r\ndef pytest_html_results_table_row(report, cells):\r\n    cells.insert(2, html.td(report.description))\r\n    cells.insert(1, html.td(datetime.utcnow(), class_='col-time'))\r\n\r\n@pytest.mark.hookwrapper\r\ndef pytest_runtest_makereport(item, call):\r\n    outcome = yield\r\n    report = outcome.get_result()\r\n    report.description = str(item.function.__doc__)\r\n```\r\n\r\nAnd here is the test it's running to trigger a failure:\r\n```\r\nfrom stored_values.common_values import get_users, password\r\n\r\nclass TestSignup:\r\n    users = get_users()\r\n\r\n    def test_signup(self, SignupPageObject):\r\n        SignupPageObject.signup(password, **self.users[0])\r\n        assert False\r\n```\r\n\r\nAnd here's my report that's missing the screenshot: \r\n![screen shot 2018-10-03 at 8 08 22 pm](https://user-images.githubusercontent.com/579696/46446082-442a5d80-c748-11e8-9bbf-80afe7fca87a.png)\r\n\r\nCould someone give me a hand?\r\n"}}
{"actor":{"display_login":"NinjaSteph"}}