When creating a webdriver, I follow these steps:
var driver = require("selenium-webdriver");
driver = new webdriver.Builder().
usingServer(server.address()).
withCapabilities({'browserName': 'chrome'}).
build();
it('should append query to title', function() {
driver.get('http://www.google.com');
driver.findElement(webdriver.By.name('q')).sendKeys('webdriver');
driver.findElement(webdriver.By.name('btnG')).click();
driver.wait(function() {
return driver.getTitle().then(function(title) {
return 'webdriver - Google Search' === title;
});
}, 1000);
});
This setup is working well on Firefox. However, when trying to run it on Chrome, I encounter an exception after opening the browser: Can someone advise me on how to resolve this issue? The Chrome version I am using is 26.0.1410.65, which is the latest available.
I have verified that I have the latest version of chromedriver
installed on my system.
UnknownError: Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 28.32 seconds
Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:22:56'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.3', java.version: '1.6.0_31'
Driver info: org.openqa.selenium.chrome.ChromeDriver