Step 1:
Since it is a dialog box, Attach the focus to this page by using the following:
ie = Watir::IE.attach(:title, "Web Page Dialog")
Step 2:
Do a puts ie.show_all_objects
This will give the various objects and their identification attributes.
Step 3:
Based on the above output, perform the r
Try the following
Category is holding an array and not just a single variable. Thereby each
value needs to be picked up and then assigned.
category.each do |cat|
ie.text_field(:name,"ctl00$ContentPlaceHolder1$txtCategory").set(cat.to_s)
___
Wtr-
if (ie.link(:text, "Hello").exists?)
puts "the text link exists"
else
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I had a similar problem and contains_text did work for me.
ie.contains_text("file successfully added")
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I would appreciate if you could give more inputs on the features?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
HI,
Guess u had the rite point.
I was using watir with a different case.
Thx
Lavanya
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi All,
Whenever we consider any tool for automation, the first and the foremost
critical part is the recovery system.
Unfortunately I didn't get much info related to this on the website.
I would appreciate your thoughts and experience related to this.
Thanks and Regards,
La
I have installed 1.8.5 version of ruby along with 1.4.1 version of Watir before
and didnt have any issues, until recently I was required to have a completely
new setup on a different machine.
Ruby I have installed from (http://rubyforge.org/frs/?group_i d=167) 1.8.25-21
version.
While runnin
Thanks Zelijko!!!
It worked :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I will revise my html file to make it more clear:
Title of page
This is my first homepage. This text is bold
http://www.google.co.in";>url
http://www.google.co.in";>url
To answer both of your question,
a) I am using latest version of Watir 1.4.1
b) while trying to access using href also i g
Following is my sample script :
Title of page
This is my first homepage. This text is bold
Text to be displayed
Text to be displayed
Now as per Watir syntax, I am trying to click on link 2:
# This allows test script to use Watir tool
require 'watir'
require 'watir/watir_simple.rb'
include
11 matches
Mail list logo