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

geb-bot opened this Issue Oct 24, 2011 · 3 comments


None yet

2 participants

geb-bot commented Oct 24, 2011

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 {
        } 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)

geb-bot commented Oct 24, 2011

Originally posted by Luke Daley.

Thanks for the report.

We'll have to fix this in a more central way so we don't need to duplicate the logic in each test adapter.

geb-bot commented Sep 13, 2012

Originally posted by Marcin Erdmann.

Fixed in geb/geb@50fb4e2

geb-bot commented Sep 13, 2012


@geb-bot geb-bot added the Bug label Apr 12, 2015
@erdi erdi was assigned by geb-bot Apr 12, 2015
@geb-bot geb-bot added this to the 0.9.0 milestone Apr 12, 2015
@geb-bot geb-bot closed this Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment