protractor icon indicating copy to clipboard operation
protractor copied to clipboard

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

Open pawlakmaly opened this issue 4 years ago • 0 comments

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

  • Node Version: v14.17.0
  • Protractor Version: 7.0.0
  • Browser(s): Chrome : 94.0.4606.61

pawlakmaly avatar Oct 04 '21 09:10 pawlakmaly