I am triing node.js selenium webdriver 
example<https://code.google.com/p/selenium/wiki/WebDriverJs>
...

var webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().
   usingServer('http://localhost:4444/wd/hub').
   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();

... but got error

promise.js:1542
      throw error;
            ^UnknownError: The path to the driver executable must be set by the 
webdriver.chrome.driver system property; for more information, see 
http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be 
downloaded from http://code.google.com/p/chromedriver/downloads/list
    at new bot.Error 
(/Users/maks/Dropbox/nodeApps/orgi/node_modules/selenium-webdriver/lib/atoms/error.js:109:18)

I guessed <http://stackoverflow.com/a/13725255/1024794> to set PATH 
variable:

$ cat .bashrc
export PATH=$PATH:/usr/local/git/bin/export PATH=$PATH:~/binexport 
PATH=$PATH:~/Dropbox/chromedriver

And restart console, but got the same error.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to