hi my code is : require 'rubygems' require 'watir-webdriver browser1 = Watir::Browser.new :firefox browser2 = Watir::Browser.new :ie browser2 = Watir::Browser.new :chrome
firefix and ie is opening but not chrome. i have installed chrome in "C:\Documents and Settings\sdasgupta\Local Settings\Application Data \Google\Chrome\Application\chrome.exe" not under C:\programfiles\... i m getting error: C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.7.0/lib/ selenium/webdrive r/chrome/service.rb:18:in `executable_path': Unable to find the chromedriver exe cutable. Please download the server from http://code.google.com/p/chromium/downl oads/list and place it somewhere on your PATH. More info at http://code.google.c om/p/selenium/wiki/ChromeDriver. (Selenium::WebDriver::Error::WebDriverError) from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium- webdriver-2.7.0/lib/sele nium/webdriver/chrome/service.rb:28:in `default_service' from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium- webdriver-2.7.0/lib/sele nium/webdriver/chrome/bridge.rb:12:in `initialize' from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium- webdriver-2.7.0/lib/sele nium/webdriver/common/driver.rb:35:in `new' from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium- webdriver-2.7.0/lib/sele nium/webdriver/common/driver.rb:35:in `for' from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium- webdriver-2.7.0/lib/sele nium/webdriver.rb:81:in `for' from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.3.5/ lib/watir-w ebdriver/browser.rb:35:in `initialize' from chrome.rb:3:in `new' from chrome.rb:3 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
