Pur seguendo le istruzioni del 'Getting Started' section of the WebDriverJs documentation e dopo l'esecuzione di questo frammento dal loro sito:Nodo selenio WebDriver "Errore: Timeout durante l'attesa per il server WebDriver a"
var driver = new webdriver.Builder().
withCapabilities(webdriver.Capabilities.chrome()).
build();
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 title === 'webdriver - Google Search';
});
}, 1000);
driver.quit();
sto ottenendo questo errore:
Error: Timed out waiting for the WebDriver server at http://XXX.XXX.X.XXX:60065/
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
==== async task ====
WebDriver.createSession()
Sono in esecuzione OS Mavericks utilizzando la versione mac32 di ChromeDriver trovato here. L'eseguibile chromedriver
si trova nella mia directory /usr/local/bin
ed è accessibile sul mio path
.
Una cosa che ho notato è che quando ho eseguito chromedriver
dalla riga di comando, che viene eseguito sulla porta 9515
, mentre il codice del nodo sta cercando su 60065
. Tuttavia, non dovrebbe essere necessaria alcuna configurazione aggiuntiva per la sola esecuzione con lo chromedriver
.
Qualcuno avrebbe qualche idea sul perché sto ricevendo questo errore?
possibile duplicato del [goniometro basamento da solo non riesce selenio: Errore: Timeout durante l'attesa per il server WebDriver at] (http://stackoverflow.com/questions/20555953/protractor-stand-alone -selenium-fail-error-time-out-waiting-the-webdrive) – benek