Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Cannot load an image or css file directly, invalid URL error is thrown  #4762

@benjaminapetersen

Description

@benjaminapetersen

Related to #4761 in the exact same setup. This is a second issue.

I am attempting to load https://mysite/image/favicon.png so that I can browser.executeScript(() => { localStorage.setItem('token', 123456); }).

The reason for doing this is loading an app page will trigger an oauth redirect. Given that we support multiple oauth pages, this is not ideal. Therefore, loading a file from the same domain would allow us to put a previously retrieved token into localStorage before loading up an app page, avoiding the need to test all oauth flows.

This is not a complex setup. The error output is:

  - Failed: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}
    (Session info: chrome=65.0.3325.181)
    (Driver info: chromedriver=2.37.544337 (8c0344a12e552148c185f7d5117db1f28d6c9e85),platform=Mac OS X 10.13.3 x86_64)

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