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.

Page reload detected during async script #242

Closed
@cristifilip

Description

@cristifilip

I've just updated protractor to 0.12 and all my IE (9 and 10) tests failed:

Message:
UnknownError: Page reload detected during async script.

It doesn't even load the page:
just an example

  it("should display login modal", function() {
        ptor = protractor.getInstance();
        ptor.get("/");
        ptor.driver.executeScript("$.fx.off = true;");
        var modal = ptor.findElement(protractor.By.id("login-modal"));
        expect(modal.isDisplayed()).toEqual(true);
    }, 20000);

It fails on ptor.get - the browser shows up the correct url in address bar, but then it jumps to about:blank, then goes to the next test (same as the first one: showing the correct url but nothing loads into the browser window).

I have like 40 tests and all it does is jumping very fast between tests: showing link / about:blank / showing link / about:blank ...then it fails.

All tests are working correctly on FF.

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