Posts

Showing posts with the label webdriver-io

Not able to run basic test using webdriver IO

Image
Clash Royale CLAN TAG #URR8PPP Not able to run basic test using webdriver IO I am new to webdriver I am trying to run following code var assert = require('assert'); describe('webdriver.io page', function() { it('should have the right title', function () { browser.url('/'); var title = browser.getTitle(); assert.equal(title,'WebDriverIO - Selenium 2.0 javascript bindings for nodejs'); }); }); When I am trying to run $npm test it is giving me following exception > web-wedio@1.0.0 test /Users/user_namej/Downloads/web-wedio > wdio A service failed in the 'onPrepare' hook Error: Selenium exited before it could start Another Selenium process may already be running or your java version may be out of date. Be sure to check the official Selenium release notes for minimum required java version: https://raw.githubusercontent.com/SeleniumHQ/selenium/master/java/CHANGELOG at ChildProcess.errorIfNeverStarted (/...