Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed switching to target chrome 130 #2743

Open
maxshifrin opened this issue Oct 20, 2024 · 4 comments
Open

Failed switching to target chrome 130 #2743

maxshifrin opened this issue Oct 20, 2024 · 4 comments

Comments

@maxshifrin
Copy link

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)
@fhirter
Copy link

fhirter commented Oct 28, 2024

Having the same issue on taiko Version: 1.4.1 (Chromium: 128.0.6597.0) RELEASE.
Downgrading Version: 1.3.10 (Chromium: 110.0.5478.0) RELEASE solved the issue.

@kiranpatil-ic
Copy link

We also faced the same issue. For now we upgraded the chromium version to match 130 & so far everything is working well!

Until new version of taiko is released, you can go ahead & update the chromium version by doing the following :

  • Navigate to node_modules/taiko/package.json
  • Find & replace 128.0.6597.0 with 130.0.6723.69
  • Find & replace 1327306 with 1356014
  • In terminal execute
cd node_modules/taiko
npm install

You should see a message saying updating chromium

@novafluxx
Copy link

novafluxx commented Oct 28, 2024

Also encountered this issue beginning today running Taiko Version: 1.4.1 with Chromium 128

Tried Taiko 1.4.0 and has the same issue.

Even running the Chromium executable directly and browsing Wikipedia we encountered a crash.

We reverted to an older Taiko (1.3.10) for now.

@zabil
Copy link
Member

zabil commented Nov 13, 2024

Find & replace 128.0.6597.0 with 130.0.6723.69

@kiranpatil-ic can you please raise a PR for this package.json modification?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants