Re: [wtr-general] How to 'click' row from table returned by AJAX-helper at google.com?
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 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 browser.table(:class > => 'gac_m')[X]. For example, text of element:: > > browser.table(:class => 'gac_m')[3].text > => "1 \320\272\320\262\321\226\321\202\320\275\321\217" > > Here example how I'm doing now: > >> require "rubygems" >> require "watir-webdriver" >> >> browser = Watir::Browser.new(:firefox) >> browser.goto("http://www.google.com";) >> browser.text_field(:name => "q").set "1" >> browser.text_field(:name => "q").set browser.table(:class => >> 'gac_m')[3].text >> browser.button(:name => "btnG").click >> > > > > But I'm wondering how i can "click" it from Watir to simulate real user > actions: > > irb(main):182:0> browser.table(:class => 'gac_m')[3].click > => [] > > and nothing happens, so I'm doing something wrong, may you advice? > > > system: Ruby1.87&WindowsXP&FireFox 4 > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] How to 'click' row from table returned by AJAX-helper at google.com?
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 browser.table(:class => 'gac_m')[X]. For example, text of element:: > browser.table(:class => 'gac_m')[3].text => "1 \320\272\320\262\321\226\321\202\320\275\321\217" Here example how I'm doing now: > require "rubygems" > require "watir-webdriver" > > browser = Watir::Browser.new(:firefox) > browser.goto("http://www.google.com";) > browser.text_field(:name => "q").set "1" > browser.text_field(:name => "q").set browser.table(:class => > 'gac_m')[3].text > browser.button(:name => "btnG").click > But I'm wondering how i can "click" it from Watir to simulate real user actions: irb(main):182:0> browser.table(:class => 'gac_m')[3].click => [] and nothing happens, so I'm doing something wrong, may you advice? system: Ruby1.87&WindowsXP&FireFox 4 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Watir 1.8.1.rc1 Released
Honestly at this point, I would say push it. I'm working with a couple of companies to get this pushed internally, but they're updating from old versions, the changes here should be an easy update, and we can work on issues as they come up with the new features. Let's get cracking on the next release. :) Charley Baker Lead Developer, Watir, http://watir.com On Fri, Apr 8, 2011 at 9:49 AM, orde wrote: > FYI: I upgraded a couple of VMs (one XP; one Win7; both running IE8.x) > to 1.8.1.rc1 and ran a subset of existing scripts without any issues. > > On Apr 8, 8:07 am, Charley Baker wrote: > > My guess is that there's some javascript event on your select list that's > > not getting fired to open the new window since you mention this happens > with > > regular select as well as select_no_wait. Can you take a look at what's > > currently being fired on the select list? > > > > Cheers, > > > > Charley Baker > > Lead Developer, Watir,http://watir.com > > > > > > > > > > > > > > > > On Fri, Apr 8, 2011 at 7:20 AM, GJHmf > wrote: > > > I replied to this directly to Ivan in more detail, as he added the > > > improvement. To everyone else; I don't want this thread to go off- > > > topic, but for the record I got the same problem with select and > > > select_no_wait. > > > > > GJHmf > > > > > -- > > > Before posting, please readhttp://watir.com/support. In short: search > > > before you ask, be nice. > > > > > watir-general@googlegroups.com > > >http://groups.google.com/group/watir-general > > > watir-general+unsubscr...@googlegroups.com > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Proof Of Concept
Nice intro to watir and cucumber along with CI. :) Good work. Charley Baker Lead Developer, Watir, http://watir.com On Thu, Apr 7, 2011 at 1:01 PM, Dmitriy Korobskiy wrote: > Accidentally, I've just written a mini-tutorial for beginners starting with > their web test automation solutions. > Take a look. > > http://blog.houseofsoft.org/2011/04/05/automate-your-feature-tests/ > > Any feedback would be appreciated. > > -- > DK > AIM: DKroot1, Skype: DKroot > > > On 4/5/11 4:25 AM, Neeraj Pant wrote: > >> Hi, >> >> I am new to Watir and have taken basic understanding on Watir using >> Ruby language. >> >> I am planning to make POC. Please assist me in creating POC doc. >> >> Thanks, >> Neeraj >> >> > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Watir 1.8.1.rc1 Released
Good to know :) I guess we can make the final release in a few days then. Jarmo On Apr 8, 7:49 pm, orde wrote: > FYI: I upgraded a couple of VMs (one XP; one Win7; both running IE8.x) > to 1.8.1.rc1 and ran a subset of existing scripts without any issues. > > On Apr 8, 8:07 am, Charley Baker wrote: > > > > > > > > > My guess is that there's some javascript event on your select list that's > > not getting fired to open the new window since you mention this happens with > > regular select as well as select_no_wait. Can you take a look at what's > > currently being fired on the select list? > > > Cheers, > > > Charley Baker > > Lead Developer, Watir,http://watir.com > > > On Fri, Apr 8, 2011 at 7:20 AM, GJHmf wrote: > > > I replied to this directly to Ivan in more detail, as he added the > > > improvement. To everyone else; I don't want this thread to go off- > > > topic, but for the record I got the same problem with select and > > > select_no_wait. > > > > GJHmf > > > > -- > > > Before posting, please readhttp://watir.com/support. In short: search > > > before you ask, be nice. > > > > watir-general@googlegroups.com > > >http://groups.google.com/group/watir-general > > > watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com