Reputation: 41
I'm trying to run ChromeDriver and test against it with a cucumber setup, it's a very basic google search test, but when I run the test it comes back with:
(::) failed steps (::)
RuntimeError: RuntimeError
Problem: unhandled request
Callstack:
-> init()
I'm running chromedriver with:
>chromedriver --url-base=wd/hub/session
Starting ChromeDriver (v2.10.267521) on port 9515
Only local connections are allowed.
And the world.js file that is running from cucumber is:
var prefix = 'capabilities:';
var capabilities = {};
var World = function (callback) {
this.webdriverio = require('webdriverio');
this.browser = this.webdriverio
.remote({'port':9515, 'desiredCapabilities': capabilities})
.init();
callback();
};
exports.World = World;
I've done a test with a selenium jar instead of chromedriver, and that works, but testing eventually needs to be done primarily against a CEF client, and we would need to get chromedriver working.
Upvotes: 2
Views: 2881
Reputation: 518
My script to start selenium with chromedriver
#!/bin/bash
java -jar /var/lib/selenium/selenium-server.jar -Dwebdriver.chrome.driver=/var/lib/chrome-driver/chromedriver
Upvotes: 3