in module/geb-core/src/main/groovy/geb/Browser.groovy [1242:1255]
private URI retrieveCurrentUri() {
def currentUri = null
try {
def currentUrl = getDriver().currentUrl
currentUri = currentUrl ? new URI(currentUrl) : null
} catch (NullPointerException npe) {
} catch (URISyntaxException use) {
} catch (WebDriverException webDriverException) {
if (!webDriverException.message.contains("Remote browser did not respond to getCurrentUrl")) {
throw webDriverException
}
}
currentUri
}