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 -
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
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
_
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 :
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
19 matches
Mail list logo