Skip to content

This version of ChromeDriver only supports Chrome version #1046

Description

@snake-py

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);

  });
});

No activity

Activity on this issue will appear here.

Activity

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

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