If you're just getting started I would begin by browsing the info on 
http://watirwebdriver.com/.

For chrome to work you need a binary for which ever platform you're using 
and it needs to be available in your path.
http://watirwebdriver.com/chrome/

Here's a much simpler script to get you started:

require 'watir-webdriver'

# Open the chrome browser
@b = Watir::Browser.start "http://watirwebdriver.com/",:chrome
@b.link(:text => "Browser Elements").when_present.hover
@b.link(:text => "Elements").when_present.click

On Thursday, January 16, 2014 3:02:06 AM UTC-5, Priti Fhuse wrote:
>
> i fetch chrome by
> system('start http://www.google.com')  coz browser = Watir::Browser.new 
> :chrome not works on my machine
> this line in watir 
> but how to write further script
>
> 1> i want to click in chrome 
> 2>
>

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