-- Forwarded message --
From: Vitaliy Smok 4sm...@gmail.com
Date: 2011/4/11
Subject: Re: [wtr-general] How to 'click' row from table returned by
AJAX-helper at google.com?
To: Tim Koopmans tim.ko...@gmail.com
Hi!
It's a bit strange thing. And looks like some sort of bug.
At
No, result is the same - autosuggestions hided. No search.
irb(main):104:0 browser.tr(:class = 'gac_a', :index= 2).click
= []
require rubygems
require watir-webdriver
browser = Watir::Browser.new(:firefox)
browser.goto(http://www.google.com;)
browser.text_field(:name = q).set 1
Hi!
I'm study using of Watir at Ruby. At main page ( www.google.com ) when you
entering something AJAX-helper gives you 10 variants of search queries, and
you can click at any of them to get immediately search results. That helper
is just table and you can access its elements by
Click on the table row instead, and use the :index attribute
e.g.
browser.tr(:class = 'gac_a', :index= 2).click
will click the third row of the auto suggestions ...
Cheers,
Tim
@90kts
On Sat, Apr 9, 2011 at 6:40 PM, Vitaliy Smok 4sm...@gmail.com wrote:
Hi!
I'm study using of Watir at