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

This version of ChromeDriver only supports Chrome version #1046

Open
snake-py opened this issue Nov 29, 2021 · 1 comment
Open

This version of ChromeDriver only supports Chrome version #1046

snake-py opened this issue Nov 29, 2021 · 1 comment

Comments

@snake-py
Copy link

snake-py commented Nov 29, 2021

I am getting

  Error: Failed to create session.
session not created: This version of ChromeDriver only supports Chrome version 87
Current browser version is 94.0.4606.81 with binary path

I read that this can be caused by mismatching Spectron to electron versions. This is what I am using:

"spectron": "^13.0.0",
"electron": "^15.0.0",

The app is also opening multiple times.

My test code:

const Application = require('spectron').Application;
const electronPath = require('electron'); 
const path = require('path');
const assert = require('assert');

const app = new Application({
  path: electronPath,
  args: [path.join(__dirname, '..')],
});

describe('Start up Testing',  () =>{
  this.timeout(100000);
  beforeEach(() => {

    return app.start();
  });
  afterEach(() => {
    if (app && app.isRunning()) {
      return app.stop();
    }
  });

  it('shows an initial window', async () => {
    const isVisible = await app.browserWindow.isVisible();
    expect(isVisible).toBe(true);

  });
});
@MasterOdin
Copy link

You've flipped the table versions. Spectron ^13.0 supports Electron ^11.0.0. Support for electron ^15.0 has an open PR though #1047.

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

No branches or pull requests

2 participants