Try:
require "chrome_watir"
$k = ChromeWatir::Browser.new
$k.goto("www.yahoo.com")


Wesley.
For life, the easier, the better.


On Wed, Mar 10, 2010 at 6:59 PM, Mrunal <mrunal.gor...@gmail.com> wrote:

> Hi
>
> I want to test the web applications with google chrome.
> I've installed Google Chrome browser and the gem Chromewatir 1.5.1
>
> I tried the following small test
>
> require "chrome_watir"
> include ChromeWatir
> $k = Browser.new
> $k.goto("www.yahoo.com")
>
> But when the first time test is executed i get following error.
>
> c:/ruby/lib/ruby/gems/1.8/gems/chromewatir-1.5.1/lib/chrome_watir/
> chrome_connection.rb:7:in `initialize': Bad file descriptor -
> connect(2) (Errno::EBADF)
>        from c:/ruby/lib/ruby/gems/1.8/gems/chromewatir-1.5.1/lib/
> chrome_watir/chrome_connection.rb:7:in `new'
>        from c:/ruby/lib/ruby/gems/1.8/gems/chromewatir-1.5.1/lib/
> chrome_watir/chrome_connection.rb:7:in `get'
>        from c:/ruby/lib/ruby/gems/1.8/gems/chromewatir-1.5.1/lib/
> chrome_watir/container.rb:347:in `read_socket'
>        from c:/ruby/lib/ruby/gems/1.8/gems/chromewatir-1.5.1/lib/
> chrome_watir/container.rb:321:in `wait_for_page_to_load'
>        from c:/ruby/lib/ruby/gems/1.8/gems/chromewatir-1.5.1/lib/
> chrome_watir/browser.rb:16:in `goto'
>
> In the second execution, browser get opened but the test is not coming
> out from the 'read_socket' method in container.rb
>
> Can anybody help me regarding this?
> Anybody have the solution for this. Please guide.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to