Skip to content
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 opened this issue Nov 11, 2013 · 2 comments
Closed

Page reload detected during async script #242

cristifilip opened this issue Nov 11, 2013 · 2 comments

Comments

@cristifilip
Copy link

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.

@penfold
Copy link
Contributor

penfold commented Nov 11, 2013

Looks like this issue may be the same as the issue I raised... #240.

@juliemr
Copy link
Member

juliemr commented Nov 12, 2013

should be fixed in 81501c5, which will be out in 0.12.1 shortly.

@juliemr juliemr closed this as completed Nov 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants