Skip to content

Failure when trying to change the page and currentURL cannot be converted to URI  #492

Description

@savagekrosa

I happened to encounter this issue when I tried to turn my tests from using separate Browser instance for each test to single browser instance for each suite. After one of the tests ends, several other tests fail with java.net.URISyntaxException. After investigating, it seems that URL in the browser generated by angular is not a valid url to convert to URI, so when calling:

browser.to MyPage

I receive the exception once it gets to the "Browser.go" method and it tries to convert currentUrl to URI:

currentUri = currentUrl ? new URI(currentUrl) : null -> this will throw java.net.URISyntaxException

I report this as an issue, because I believe the fact that currentURL cannot be converted to URI should not end in complete failure and instead "Browser.go" method should continue (as it does for NullPointerException)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions