NEED Chrome Browser Update - Spectron 13 - app.start() never resolves
See original GitHub issueHi! I’m trying to setup e2e tests with Spectron and I got some issues.
When I start my tests with:
beforeEach(async () => {
app = new Application({
path: path.resolve(
__dirname,
'..',
'out/type-relectron-darwin-x64/type-relectron.app/Contents/MacOS/type-relectron',
),
})
await app.start()
console.log('app.start()')
})
It keeps opening new windows and app.start()
never resolve, it never logs “app.start()”.
I added some console.log in the node_modules/spectron/lib/application.js
file to check how far it goes.
Application.prototype.start = function () {
const self = this;
return self
.exists()
.then(function () {
console.log('self.startChromeDriver();')
return self.startChromeDriver();
})
.then(function () {
console.log('self.createClient();')
return self.createClient();
})
.then(function () {
console.log('self.api.initialize();')
return self.api.initialize();
})
.then(function () {
console.log('self.client.setTimeouts(')
return self.client.setTimeouts(
self.waitTimeout,
self.waitTimeout,
self.waitTimeout
);
})
.then(function () {
console.log('self.running = true;')
self.running = true;
})
.then(function () {
console.log('return self;')
return self;
}).catch(err => {
console.log(err)
});
};
It never go pass self.createClient();
and with a newly added .catch
it gives me this error.
Error: Failed to create session.
session not created: This version of ChromeDriver only supports Chrome version 87
Current browser version is 78.0.3904.126 with binary path /Users/mikaelboutin/Desktop/Qohash/electron-react-ts-starter/node_modules/spectron/lib/launcher.js
at Object.startWebDriverSession (/Users/mikaelboutin/Desktop/Qohash/electron-react-ts-starter/node_modules/webdriver/build/utils.js:34:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at Function.newSession (/Users/mikaelboutin/Desktop/Qohash/electron-react-ts-starter/node_modules/webdriver/build/index.js:35:45)
at Object.<anonymous>.exports.remote (/Users/mikaelboutin/Desktop/Qohash/electron-react-ts-starter/node_modules/webdriverio/build/index.js:53:22)
Can you make something about this or show me the way to get a Chrome version 87 with Spectron?
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:10
Top Results From Across the Web
Fix Chrome update problems & failed updates - Google Support
If you're having problems updating Chrome on your computer, you might see: Update failed: Updates are disabled by administrator Update failed (Error: 3...
Read more >session not created: This version of ChromeDriver only ...
One way to deal with this is to specify the Chromedriver version you want to use. So, if your Chrome browser version is...
Read more >Chrome Not Updating on Windows? 13 Ways to Fix
Google publishes frequent updates to enhance the performance, stability, and security of its flagship Chrome browser.
Read more >How to fix Chrome for Windows not saving passwords on ...
Launch the browser and see if the issue has been resolved. Fix 13: Create a New User Account. If Google Chrome is still...
Read more >Why Apple Users Need To Use Safari Instead Of Chrome After ...
“Chrome is the only major browser that doesn't offer meaningful protection from tracking,” rival Mozilla told me this week, as the Firefox ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
so no one is using electron and spectron recently?
I see a similar error with Spectron 13, Electron 11.2.0 & chrome 87.0.4280.141 when trying to reference the app.start() return object. Is there a temporary workaround for this?
let testApp = await app.start(); … javascript error: javascript error: Cannot convert undefined or null to object (Session info: chrome=87.0.4280.141)