angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Problems with interacting with page elements after closing iframe on Chrome 94 #5536

Open pawlakmaly opened 3 years ago

pawlakmaly commented 3 years ago

After updating Chrome to version 94 I'm start getting problems with my tests after closing iframe in it.

If I wait for disappearing of iframe using below code:

await browser.wait(ExpectedConditions.stalenessOf(el), timeout, `wait for Absence of: ${el.locator()} (timeout ${timeout})`);

I ended up with timeout.

When I change this just to wait for element be not visible and then switch back to default frame, chrome just crash:

       WebDriverError: unknown error: session deleted because of page crash
       from unknown error: cannot determine loading status
       from tab crashed
         (Session info: headless chrome=94.0.4606.61)
         (Driver info: chromedriver=94.0.4606.61 (418b78f5838ed0b1c69bb4e51ea0252171854915-refs/branch-heads/4606@{#1204}),platform=Windows NT 10.0.19043 x86_64)

It worked ok on chrome 93 and starts to failing on chrome 94.

Bug report