Hi, Thanks for your reply.

I have following simple example to automate a scenario in Chrome but i am
getting following error when i execute it. (FYI: The following Test1.rb
works fine in FF browser)

*Test1.rb*
require 'watir-webdriver'
browser = Watir::Browser.new :chrome
browser.goto ("http://localhost/MyDemoTEST";)
browser.li(:class=>"potato-menu-item potato-menu-has-vertical").click
browser.a(:text=>'My Management').click



*D:\Watir\Examples>Test1.rb*
Started ChromeDriver
port=9515
version=26.0.1383.0
log=D:\Watir\Examples\chromedriver.log
[8112:8700:0131/011355:ERROR:master_preferences.cc(104)] Failed to read
master_p
references file at C:\Program
Files\Google\Chrome\Application\master_preferences
. Falling back to default preferences.
[8112:8700:0131/011355:ERROR:bluetooth_adapter_win.cc(23)] NOT IMPLEMENTED
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdr
iver/remote/response.rb:52:in `assert_ok': Navigation failed with error
code=2.
(Selenium::WebDriver::Error::UnknownError)
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/response.rb:15:in `initialize'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/common.rb:59:in `new'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/common.rb:59:in `create_response'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/default.rb:66:in `request'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/common.rb:40:in `call'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/bridge.rb:615:in `raw_execute'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/bridge.rb:593:in `execute'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/bridge.rb:99:in `get'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/common/navigation.rb:14:in `to'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir
-webdriver/browser.rb:77:in `goto'
        from D:/Watir/Examples/Test1.rb:3:in `<main>'

D:\Watir\Examples>[WARNING:..\..\..\..\flash\platform\pepper\pep_module.cpp(63)]
 SANDBOXED


On Thu, Jan 31, 2013 at 1:13 AM, Željko Filipin <[email protected]>wrote:

> On Wed, Jan 30, 2013 at 8:14 PM, Sohail Mirza <[email protected]> wrote:
>
>> Can i use Watir-Classic to automate my application in Chrome or i need to
>> use Watir-webdriver?
>
>
> watir-classic gem can only automate Internet Explorer. If you want to
> automate Crome, you have to use watir-webdriver gem.
>
> Željko
> --
> https://leanpub.com/watirbook
>
> --
> --
> 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]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" 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.
>
>
>

-- 
-- 
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]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" 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