Skip to content

reports missing <img> tags for screenshots #237

Closed
@anothermattbrown

Description

@anothermattbrown

The generated report html is missing the <img> tag for screenshots.

Example test:

def test_foo(selenium):
    selenium.get('http://google.com')
    assert False

command:

$ pytest --driver chrome --driver-path path/to/chromedriver test.py --html report.html

The report shows a blank square instead of an image:
Screen Shot 2020-05-12 at 12 46 50 PM

In the inspector, there's an empty <a> tag:
Screen Shot 2020-05-12 at 12 47 18 PM

The link in the <a> tag goes to the (expected) screenshot on disk.

I can't tell if this is a problem with pytest-selenium, pytest-html, or something else. Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions