Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Unable to create new service: OperaDriverService #935

Open
belimposition opened this issue Sep 18, 2018 · 1 comment
Open

Unable to create new service: OperaDriverService #935

belimposition opened this issue Sep 18, 2018 · 1 comment

Comments

@belimposition
Copy link

belimposition commented Sep 18, 2018

yarn add selenium-standalone
yarn add gemini
yarn selenium-standalone install

настроил конфигурационный файл gemini по примеру из документации
работает только хром, все остальные браузеры выдают подобную ошибку http://s.csssr.ru/U04TYUFBB/20180918044133.png

версии пакетов такие:
"selenium-standalone": "6.15.2",
"gemini": "5.8.0",
"gemini-gui": "6.0.1",

конфигурационный файл:

desiredCapabilities:
  commonThing: value
calibrate: true
tolerance: 3.5
httpTimeout: 5000
sessionRequestTimeout: 60000
sessionQuitTimeout: 5000
windowSize: 1600x1080
sessionsPerBrowser: 2
suitesPerSession: 100

browsers:
  # chrome:
  #   screenshotsDir: ./gemini/screens/chrome
  #   desiredCapabilities:
  #     browserName: 'chrome'

  opera:
    screenshotsDir: ./gemini/screens/opera
    desiredCapabilities:
      version: '55'
      browserName: 'opera'

  # ie:
  #   screenshotsDir: ./gemini/screens/ie-11
  #   desiredCapabilities:
  #     browserName: 'ie'

  # edge:
  #   screenshotsDir: ./gemini/screens/edge
  #   desiredCapabilities:
  #     browserName: 'edge'

  # firefox:
  #   screenshotsDir: ./gemini/screens/firefox
  #   desiredCapabilities:
  #     version: '47'
  #     browserName: 'firefox'

system:
  projectRoot: ./
  sourceRoot: ./client-code/src
  tempDir: ./gemini/screens
  exclude:
    - node_modules/**
  debug: true
  parallelLimit: 3
  diffColor: '#ff0000'


@jasmeetsinghbhatia
Copy link

Hi @belimposition Have you tried installing the operadriver separately and run it as usual.

1- Download from here https://github.com/operasoftware/operachromiumdriver/releases
2- Add the unzipped operadriver to /usr/bin or /usr/local/bin whichever is on your path (for Mac), you may need linux equivalent probably
3- Run from terminal $ operadriver --port=8899

Make sure your Gemini file has this browser configured.
I am using js format instead of yaml for config file. You can configure in yaml based on following.

opera: {
gridUrl: 'http://127.0.0.1:8899',
desiredCapabilities:{
browserName: 'opera',
ensureCleanSession: true
},
screenshotMode: 'fullpage',
},

Let me know if that helps or in case it doesnt work for you.

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

No branches or pull requests

2 participants