Skip to content

Failed switching to target chrome 130 #2743

Open
@maxshifrin

Description

@maxshifrin

Describe the bug
After switching the browser to chrome 130 stable, our automation became flakky. A lot of tests which ran thousands of times without error, are failing when trying to switch to a target (without a change to the underlying product)

Failed switching to target=/some_internal_path/
Error:Browser or page not initialized. Call openBrowser() before using this API
Stack: Error: Browser or page not initialized. Call openBrowser() before using this API
at validate (c:\Users..\automation-tests-iso..\taiko\lib\connection.js:175:11)
at module.exports.switchTo (c:\Users....\node_modules\taiko\lib\taiko.js:205:3)
at module.exports. (c:\Users....\node_modules\taiko\lib\taiko.js:2619:36)
at isSwitchedPage (c:\Users....\taiko\BrowserActions.ts:20:31)
at waitForCondition (c:\Users....\tests\utils\waitFor.ts:32:23)
at waitForHelper (c:\Users....\tests\utils\waitFor.ts:19:5)
at BrowserActions.switchTo (c:\Users....\tests\taiko\BrowserActions.ts:33:9)
at switchTabRegexUrl (c:\Users....\tests\steps\PageActionsSteps.ts:208:9)

To Reproduce
Happens randomly

Error:Browser or page not initialized. Call `openBrowser()` before using this API
Stack: Error: Browser or page not initialized. Call `openBrowser()` before using this API
at validate (c:\Users\..\automation-tests-iso\..\taiko\lib\connection.js:175:11)
at module.exports.switchTo (c:\Users\..\..\node_modules\taiko\lib\taiko.js:205:3)
at module.exports.<computed> (c:\Users\..\..\node_modules\taiko\lib\taiko.js:2619:36)
at isSwitchedPage (c:\Users\..\..\taiko\BrowserActions.ts:20:31)
at waitForCondition (c:\Users\..\..\tests\utils\waitFor.ts:32:23)
at waitForHelper (c:\Users\..\..\tests\utils\waitFor.ts:19:5)
at BrowserActions.switchTo (c:\Users\..\..\tests\taiko\BrowserActions.ts:33:9)
at switchTabRegexUrl (c:\Users\....\tests\steps\PageActionsSteps.ts:208:9)

Versions:

  • Taiko: [e.g. 1.0.23 (use taiko --version)]
  • OS [e.g. 10.15.6 (19G2021) please be specific ]
  • Node.js [e.g. v.12.18.14]
gauge -v
Gauge version: 1.4.3
Commit Hash: f98dd40

Plugins
-------
html-report (4.3.1)
json-report (0.3.7)
screenshot (0.2.0)
spectacle (0.1.4)
ts (0.1.1)

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