[Wtr-general] Unable to click on links with the same text

2007-07-02 Thread Lavanya Lakshman
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

Re: [Wtr-general] Unable to click on links with the same text

2007-07-03 Thread Lavanya Lakshman
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

Re: [Wtr-general] Unable to click on links with the same text

2007-07-03 Thread Lavanya Lakshman
Thanks Zelijko!!! It worked :) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Receiving extensive warning messages while trying to run Watir Ruby scripts

2007-07-04 Thread Lavanya Lakshman
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

[Wtr-general] Recovery System in WATIR

2007-07-04 Thread Lavanya Lakshman
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

Re: [Wtr-general] Receiving extensive warning messages while trying to run Watir Ruby scripts

2007-07-08 Thread Lavanya Lakshman
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

Re: [Wtr-general] Recovery System in WATIR

2007-07-08 Thread Lavanya Lakshman
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

Re: [Wtr-general] Reading Static data

2007-07-09 Thread Lavanya Lakshman
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

Re: [Wtr-general] "Exist" method is avaliable in WATIR

2007-07-09 Thread Lavanya Lakshman
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

Re: [Wtr-general] need help on Data Driven

2007-07-10 Thread Lavanya Lakshman
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-

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-10 Thread Lavanya Lakshman
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