Fwd: [wtr-general] How to 'click' row from table returned by AJAX-helper at google.com?

2011-04-12 Thread Vitaliy Smok
-- 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

Re: [wtr-general] How to 'click' row from table returned by AJAX-helper at google.com?

2011-04-10 Thread Vitaliy Smok
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

[wtr-general] How to 'click' row from table returned by AJAX-helper at google.com?

2011-04-09 Thread Vitaliy Smok
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

Re: [wtr-general] How to 'click' row from table returned by AJAX-helper at google.com?

2011-04-09 Thread Tim Koopmans
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