Skip to content

GebReporting* fails when the browser is not on a HTML page (e.g. XML file) #126

Closed
@geb-bot

Description

@geb-bot

Originally created by Christoph Neuroth.

When writeGebReport() tries to generate a Screenshot, Firefox refuses to take one and Selenium throws a WebDriver Exception. Also, when it tries to save the source, it fails with a NoSuchElementException.

Workaround override writeGebReport in a class extending GebReportingTest like this:

        try {
            super.writeGebReport()
        } catch (WebDriverException e) {
            log.warn('Could not take screenshot (maybe not on an HTML page?)', e)
        } catch (NoSuchElementException e) {
            log.warn('Could not save HTML (maybe not on an HTML page?)', e)
        }

(only tested with GebReportingTest, but will probably affect the others)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions