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

'[ng:app] not a valid selector #36

Closed
@peterktung

Description

@peterktung

I keep getting the following error on my tests:

Selenium::WebDriver::Error::WebDriverError:
       unexpected response, code=500, content-type=""
       Error: Error from waitForAngular: Failed to execute 'querySelectorAll' on 'Document': '[ng:app]' is not a valid selector.

I removed both trySelector('[ng:app]') and trySelector('[ng:controller]') in https://github.com/angular/blocking-proxy/blob/master/lib/client_scripts/wait.js#L111, and my tests are working now.

I don't know enough to say if those trySelector calls need to be there or not. But perhaps the method should also be surrounded by a try-catch like the tryEl method?

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