Re: [wtr-general] Re: How to get the value of the li tag

2011-06-28 Thread Amit Bobade
Good work Jasmine. :) Really helpful. Thanks 2011/6/29 Jasmine > I have resolved the problem. > ie.li(:text."q").text > > On 6月29日, 上午11时50分, Jasmine wrote: > > ie.li(:text,"q").click .the satement can get the value,but "click" is > > not right.I need click the name > > On 6月29日, 上午11时35分, Jasm

[wtr-general] Re: How to get the value of the li tag

2011-06-28 Thread Jasmine
I have resolved the problem. ie.li(:text."q").text On 6月29日, 上午11时50分, Jasmine wrote: > ie.li(:text,"q").click .the satement can get the value,but "click" is > not right.I need click the name > On 6月29日, 上午11时35分, Jasmine wrote: > > > > > How to get the value of the li tag? > > There are code ab

[wtr-general] Re: How to get the value of the li tag

2011-06-28 Thread Jasmine
ie.li(:text,"q").click .the satement can get the value,but "click" is not right.I need click the name On 6月29日, 上午11时35分, Jasmine wrote: > How to get the value of the li tag? > There are code about the question > > > q > t > I want to get "q" or "t",there is only data if use > ie.li(:class,"dy_b

[wtr-general] How to get the value of the li tag

2011-06-28 Thread Jasmine
How to get the value of the li tag? There are code about the question q t I want to get "q" or "t",there is only data if use ie.li(:class,"dy_bgg"),I need to get the value and click it -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-ge

[wtr-general] Is method row_count ont supported in watir webdriver

2011-06-28 Thread Ekin Han
Hi all, I am migrating my test scripts from watir to watir webdriver. Watir webddriver is amazing! But lots of errors occured with the Table class. Is row_count method not supported any more or which method i should use to instead? Regards eason -- Before posting, please read http://watir.c

Re: [wtr-general] Watir 1.9.1 testing error

2011-06-28 Thread John Fitisoff
Doesn't that come from the activesupport library? I don't think the Fixnum class has support for that. - Original Message From: Reciprocity To: Watir General Sent: Tue, June 28, 2011 1:08:04 PM Subject: [wtr-general] Watir 1.9.1 testing error I'm runing my scripts through Watir

[wtr-general] Watir 1.9.1 testing error

2011-06-28 Thread Reciprocity
I'm runing my scripts through Watir 1.9.1.rc1 on IE8, Win7 and Ruby 187. I have this code: puts 1.year I get this error: undefined method `year' for 1:Fixnum (NoMethodError) This code has always worked in the past. Does anyone know what has changed for this not to work anymore? Thanks in advan

[wtr-general] Re: Report generation with the Watir

2011-06-28 Thread orde
This thread should have useful information: http://stackoverflow.com/questions/5073552/rspec-ruby-basic-example-error Hope it helps. orde On Jun 28, 7:39 am, Parag Dave wrote: > Thanks Zeljko, > > This will really helpful. > > But i have some problem i am not able to understand how to run this

Re: [wtr-general] counting headers

2011-06-28 Thread Jari Bakken
On Tue, Jun 28, 2011 at 5:49 PM, Anne Mordkoff wrote: > solved this problem -- don't need the require 'watir' > however, when I run my test and try to open the browser (ie) > using    Watir::Browser.new :ie > I get a timeout error > C:/Ruby/Ruby187/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill': execut

Re: [wtr-general] counting headers

2011-06-28 Thread Anne Mordkoff
Thanks, Raveendran -- that did it... On Tue, Jun 28, 2011 at 1:50 AM, Raveendran P wrote: > Hi Anne, > > I have no idea how Watir can do this... > > > But i can give the ruby solution to you > > > Solution: > > 1. Collect the entire HTML of the page -- @text=@ie.html > 2. Search the text "" in t

Re: [wtr-general] counting headers

2011-06-28 Thread Anne Mordkoff
solved this problem -- don't need the require 'watir' however, when I run my test and try to open the browser (ie) usingWatir::Browser.new :ie I get a timeout error C:/Ruby/Ruby187/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill': execution expired (Timeout::Error) from C:/Ruby/Ruby187/lib/rub

Re: [wtr-general] counting headers

2011-06-28 Thread Anne Mordkoff
I did a gem cleanup because I had multiple versions of watir-webdriver, added the require for watir-webdriver and added your suggested change (browser.h2s.size). When I ran my test I got an error...(NextTest.rb is my test script) my list of require statements: require 'rubygems' require 'watir

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-28 Thread Abe Heward
Oh, man, Jari - The gains in speed from going this way instead of reading the logs in the browser are amazing. I only wish I'd known about open-uri 6 months ago! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com h

[wtr-general] Re: Report generation with the Watir

2011-06-28 Thread Parag Dave
Thanks Zeljko, This will really helpful. But i have some problem i am not able to understand how to run this test. I created one file named bowling_spec.rb # bowling_spec.rb require 'bowling' require 'rubygems' require 'rspec' describe Bowling, "#score" do it "returns 0 for all gutter game" d

Re: [wtr-general] Report generation with the Watir

2011-06-28 Thread Željko Filipin
On Tue, Jun 28, 2011 at 3:55 PM, Parag Dave wrote: > How can i generate report (That has visual identification like Fail > test is in red line or any symbol and Pass test is in Green) with > watir. Also how much time it took in the one test script. Is there any > tool or gem that help to create lo

[wtr-general] Report generation with the Watir

2011-06-28 Thread Parag Dave
Hello All, Here is the one important question. How can i generate report (That has visual identification like Fail test is in red line or any symbol and Pass test is in Green) with watir. Also how much time it took in the one test script. Is there any tool or gem that help to create logger report

Re: [wtr-general] Re: How to get list content

2011-06-28 Thread Željko Filipin
On Tue, Jun 28, 2011 at 3:28 PM, Parag Dave wrote: > Like Upload the file This could help: http://wiki.openqa.org/display/WTR/File+Uploads Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.com/support. In short:

[wtr-general] Re: How to get list content

2011-06-28 Thread Parag Dave
Hi Orde, DO we have any documents for the Java Scrip and accessing the DOM element? Because some of the things i can not able to access in the Watir. Like Upload the file it can able to click the javascript button but can not select the file from the popup window. On Jun 27, 1:35 pm, orde wrote:

Re: [wtr-general] Re: Step line number being different in HTML report from the actual

2011-06-28 Thread Željko Filipin
On Tue, Jun 28, 2011 at 1:56 PM, Deep wrote: > Expected Path and line number of the above mentioned Step definition : > lib/steps/product_details_steps.rb:8708 > After executing the cucumber file, Actual Path and line number of Step > definition seen in HTML file : lib/steps/product_details_steps.

[wtr-general] Re: Step line number being different in HTML report from the actual

2011-06-28 Thread Deep
cucumber file name:UMB_001 Gerkhin Code in cucumber file: @Umbrella-UMB_001 Feature:sdhfgdfgtwueiytwi Scenario: Verifying policy information returned Given the user is on the policy details page And Certified Acts of Terrorism Rating Factor is pre-filled as 1% and grayed out _ Fea

Re: [wtr-general] Step line number being different in HTML report from the actual

2011-06-28 Thread Željko Filipin
On Tue, Jun 28, 2011 at 11:17 AM, Deep wrote: > I have a step file (SF) which contains more than 6000 lines. I execute > a feature file line that executes a step definition (in line 4500) in > step file SF successfully. However in HTML result file it is shown as > line 330 instead of line 4500. W

[wtr-general] Step line number being different in HTML report from the actual

2011-06-28 Thread Deep
Hi, In WATIRCRAFT, we have a result file created for every execution of a feature file (cucumber file) in HTML format which specifies the line number of the step definition executed for each feature file line. I have a step file (SF) which contains more than 6000 lines. I execute a feature file l

Re: [wtr-general] counting headers

2011-06-28 Thread Željko Filipin
On Mon, Jun 27, 2011 at 7:33 PM, Anne wrote: > I need to be able to get a count of the number of h2 headers on a > page. Using watir-webdriver gem, you can do this: browser.h2s.size # => 5 Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before postin