[Wtr-general] How to pick the last word in the sentence

2007-07-09 Thread sapna
Hi All, Pleas can you help me finding out the last word in the sentence displayed on the web page. Have look at the HTML snippet. Regards Sapna ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Reading Static data

2007-07-09 Thread murali
Hi How can i read static data from the application.i had a test case that a static message like file successfully added came how can i read the data. my intention is i need to validate that and proceeds to next testcase. i would appricate if any can help in this Regards murali

Re: [Wtr-general] Reading Static data

2007-07-09 Thread Željko Filipin
Hi Murali, Try ie.text.include? file successfully added Zeljko -- ZeljkoFilipin.com ___ 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 murali
thnx ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Exist method is avaliable in WATIR

2007-07-09 Thread murali
Hi Exist method is avaliable in WATIR. if it is there how it will be used. Regards ___ 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 Neumann, Carsten - ENCOWAY
Hi, maybe you can use assert(ie.contains_text(file successfully added), Message if failed) Regards, Carsten Neumann Carsten Neumann Auszubildender encoway GmbH Buschhöhe 2 28357 Bremen Tel +049 (0)421 24677-0 Fax +49 (0)421 24677-10 email: [EMAIL PROTECTED] Web: www.encoway.de

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

2007-07-09 Thread Željko Filipin
Hi Murali, Try this b.link(:text, Images).exist? = true or this b.link(:text, Images).exists? = true Zeljko -- ZeljkoFilipin.com ___ 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 murali
Thnx for ur concern i tried this method using IF condition . iam faild to get the answer. actually if Active Categories should be 9 only this comes i need to click on the cancel button if not it should create a category. can u plz tel me how it vil be use with IF statment

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] Exist method is avaliable in WATIR

2007-07-09 Thread murali
Thanx Madam If u have any docs related to WATIR plz send to my mail id [EMAIL PROTECTED] Reagrds Murali ___ 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 Željko Filipin
On 7/9/07, murali [EMAIL PROTECTED] wrote: If u have any docs related to WATIR Take a look at WATIR User Guide at http://wtr.rubyforge.org/watir_user_guide.html. Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Does Sending Keys work on windows 2003 server OS?

2007-07-09 Thread sachin
I have made a watiJ web testing script which involves sending Enter key for submitting some data. this script worked fine on windowsXp, but doesn't work the machine with windows 2003. Now we are thinking about writing the same script in watiR. Have anyone tried sending keys on windows 2003

[Wtr-general] hidden control..

2007-07-09 Thread mihai
i have this html code: input type=hidden how can i find out with watir if it is hidden or not? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] hidden control..

2007-07-09 Thread Željko Filipin
On 7/9/07, mihai [EMAIL PROTECTED] wrote: i have this html code: input type=hidden how can i find out with watir if it is hidden or not? Hi Mihai, Well, it's type is hidden. How could it be not hidden? Zeljko -- ZeljkoFilipin.com ___ Wtr-general

Re: [Wtr-general] Does Sending Keys work on windows 2003 server OS?

2007-07-09 Thread Bach Le
From what I've seen, send keys works just fine in Windows Server 2003. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Having problems figuring out what to click

2007-07-09 Thread Matt Berney
Excellent!!! That did the trick. Thanks loads!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Recovery System in WATIR

2007-07-09 Thread Bret Pettichord
Lavanya Lakshman wrote: I would appreciate if you could give more inputs on the features? I added the IE.find command to support error recovery. You also may want to look at Aslak Hellesoy's post on how he captured screens when watir tests failed. Bret

[Wtr-general] Selecting controls in a dialog box

2007-07-09 Thread Matt Berney
When I click a button on the web page, it displays a dialog. Title: Web Page Dialog Controls: * one select list * one text field * two buttons (OK, Cancel) How do I access the dialog box? How do I select an item from the list? Do I use the Watir::IE.select_list.getAllItems() call? How do

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

2007-07-09 Thread Paul Rogers
---BeginMessage--- this sounds like a modal dialog box Ive never used them, but there should be unit tests and its been mentioned on the list many times, so you should be able to search the archives for sample code Paul - Original Message - From: Matt Berney [EMAIL PROTECTED] Date:

Re: [Wtr-general] hidden control..

2007-07-09 Thread mihai
no...i want something like : ie.button(..).exist? but ie.button().hidden? i want to tell me if the control is hidden or not because that button and other control appear if i press the Show Advanced option button and hides if i press the Hide Advanced option and i want to test if the show..

Re: [Wtr-general] hidden control..

2007-07-09 Thread Paul Rogers
there is a .hidden? method available in the user contrib section on the wiki I think. Or the email archives. Some submitted it, so it does exist. - Original Message - From: mihai [EMAIL PROTECTED] Date: Monday, July 9, 2007 2:34 pm Subject: Re: [Wtr-general] hidden control.. To:

Re: [Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-09 Thread Bret Pettichord
Tiffany Fodor wrote: I just added that line to the rest of the require/include statements at the beginning of my script and it did the trick. It is a common practice to put the require and include statements together, but I don't recommend it. I intend to remove all examples of this from

[Wtr-general] Recommended version of Ruby

2007-07-09 Thread Bret Pettichord
What version of Ruby should we recommend? After a recent discussion we agreed that the rdoc (readme.rb) should read: Best is to use Ruby 1.8.2-14 or later. However, if you are using the Watir::IE#modal_dialog method, you must use Ruby 1.8.2-14 and not a more recent version. Watir (in

[Wtr-general] need help on Data Driven

2007-07-09 Thread murali
Hi every one, iam facing problem with the data driven. have glance of my code and let me know where i did mistake. excel= WIN32OLE::new('excel.Application') workbook=excel.Workbooks.Open('D:\Documents and Settings\mmopur\Desktop\IPE Aut\test.xls') worksheet=workbook.Worksheets(1)