Re: [wtr-general] counting headers

2011-06-28 Thread Željko Filipin
On Mon, Jun 27, 2011 at 7:33 PM, Anne annemordk...@gmail.com 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 -

[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

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

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 dedeepya.kanipa...@gmail.com 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 :

[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

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 parag...@gmail.com 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

[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

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 parag...@gmail.com 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

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

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

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 jazzezr...@gmail.com 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

[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 parag...@gmail.com wrote: Thanks Zeljko, This will really helpful. But i have some problem i am not able to understand

[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

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 george.wi...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tue, June 28, 2011 1:08:04 PM Subject: [wtr-general] Watir

[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

[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 div class=dy_bgg ul li v=12 style=cursor: pointer;class=dy_bggq/li li v=13 style=cursor: pointer;class=dy_bggt/li 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 --

[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 nicely...@hotmail.com wrote: How to get the value of the li tag? There are code about the question div class=dy_bgg ul li v=12 style=cursor: pointer;class=dy_bggq/li

[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 nicely...@hotmail.com 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 nicely...@hotmail.com wrote: How to get the value of the

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 nicely...@hotmail.com I have resolved the problem. ie.li(:text.q).text On 6月29日, 上午11时50分, Jasmine nicely...@hotmail.com wrote: ie.li(:text,q).click .the satement can get the value,but click is not right.I need click the name