[Wtr-general] Variable Number and Type of Method Parameters?

2006-01-20 Thread Andrew McFarlane
I am testing an application whose UI controls are often difficult to specify. Sometimes I can uniquely identify a control with one attribute, and sometimes I need 3 or 4. Sometimes I can't see the difference between multiple controls, so I need to use an index value as one of those 3 or 4

Re: [Wtr-general] Variable Number and Type of Method Parameters?

2006-01-20 Thread Angrez Singh
Hi,I think XPath extenstion to WATiR would be helpful in this case. Please download the tar ball from HEAD and read the supporting document in the 'docs' directory.Regards,Angrez On 1/20/06, Andrew McFarlane [EMAIL PROTECTED] wrote: I am testing an application whose UI controls are often difficult

Re: [Wtr-general] Variable Number and Type of Method Parameters?

2006-01-20 Thread Sergio Pinon
Not sure if you guys realize it but there is an xml library available in Ruby called REXML and from there you can use it in your WATIR scripts. I don't know if you saw my last post but I had written a small testing framework on top of Ruby and WATIR that utilizes REXML so that I can store my

Re: [Wtr-general] Variable Number and Type of Method Parameters?

2006-01-20 Thread Angrez Singh
Hi Sergio,The XPath extension internally uses REXML only to find the elements in IE DOM. Regards,AngrezOn 1/20/06, Sergio Pinon [EMAIL PROTECTED] wrote:Not sure if you guys realize it but there is an xml library available in Ruby called REXML and from there you can use it in your WATIR scripts. I

Re: [Wtr-general] Variable Number and Type of Method Parameters?

2006-01-20 Thread Sergio Pinon
I dont understand. Youre saying that WATIR uses REXML to allow Xpath expressions against the IE DOM? Sergio From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angrez Singh Sent: Friday, January 20, 2006 10:56 AM To: wtr-general@rubyforge.org Subject: Re:

Re: [Wtr-general] How to Have Watir Run Unattended?

2006-01-20 Thread Sergio Pinon
Title: How to Have Watir Run Unattended? I know this may be a little bit of extra work but here is what we do and it works fine. We use CruiseControl.Net which is a service that runs on our build machine and runs at timed intervals or we can force it as well. But then from CruiseControl

Re: [Wtr-general] How to Have Watir Run Unattended?

2006-01-20 Thread Paul Czyzewski
Does anyone know how to set up Watir to run unattended? I'm having troubles trying to do this using a Scheduled Task. Hi, I started looking into this a month ago and sidetracked. However, it appeared that a scheduled task *would* work, but not if the computer (desktop) was locked. I don't

[Wtr-general] How is it possible to specify to look for a specific text in a sp ecific tag?

2006-01-20 Thread Paatsch, Bernd
Title: How is it possible to specify to look for a specific text in a specific tag? I am fairly new to watir and think it is a great tool. I have following code that fails to execute. if ie.contains_text(:id, current :text, Groups) puts Login Failed!: else puts Login Passed! How is

[Wtr-general] How to click a button that has no id or name attribute

2006-01-20 Thread Paatsch, Bernd
Title: How to click a button that has no id or name attribute input class=rec_butt type=submit value=Login I have this input button that I like to click. Unfortunate it has not id or name attribute attached to it. How can I click the button? --Bernd

Re: [Wtr-general] How to click a button that has no id or name at tribute

2006-01-20 Thread Paatsch, Bernd
Title: How to click a button that has no id or name attribute My mistake. I had a typo in the code. ie.button(:value, "Login").click works just fine. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, BerndSent: Friday, January 20, 2006 5:02 PMTo:

Re: [Wtr-general] How to click a button that has no id or name attribute

2006-01-20 Thread Sergio Pinon
Title: How to click a button that has no id or name attribute You can just click the button by using the value attribute: browser.button(:value, Login).click; That should work just fine. Sergio From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch,

Re: [Wtr-general] How is it possible to specify to look foraspec ifictext in a sp ecific tag?

2006-01-20 Thread Sergio Pinon
Title: How is it possible to specify to look for a specific text in a specific tag? So if you have the control reference already then what you would do is: control_text = ie_browser.[control reference].text; if (control_text.index([text you are looking for]) != nil) The text is in