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

2007-07-10 Thread Walter Kruse
I suspect that your problem is in the path + filename definition. On Windows I have always had to use / or \\ instead of the \ in defining paths. I also advise not using directories with spaces in the names. You may also under certain circumstances need to escape the . in .xls with a \ HTH

Re: [Wtr-general] hidden control..

2007-07-10 Thread mihai
exist method does not work, because the control exist but its hidden, and there is not a hidden? methodthat the reason for what ive asked if how i can find out that a control is hidden or not.. ___ Wtr-general mailing list Wtr-general@rubyforge.org

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) ___

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

Re: [Wtr-general] How to pick the last word in the sentence (sapna)

2007-07-10 Thread Ajitesh Srinetra
Hi Sapna, The HTML code was not there , But you can try this string=ie.link(:id,'yourlink'sID').text mytext=string.split(' ') #Separated by space yourtext=mytext[mytext.length - 1] For more help you can refer array class in ruby Let me know if it is helpful Ajitesh

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

2007-07-10 Thread murali
Thanks it is working fine. thanx for ur help ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] How to count links of a table

2007-07-10 Thread SHALINI GUPTA
Hi all, Please tell me how to count link from a table. Regards shalini gupta ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] branches of Watir

2007-07-10 Thread aidy lewis
Hi, Could anyone give or point me to branches of Watir? I currently have: 1. FireWatir - runs tests within FireFox 2. Watij - Java API that is not bound to IE and can run on various operating systems Thanks Aidy ___ Wtr-general mailing list

Re: [Wtr-general] branches of Watir

2007-07-10 Thread Željko Filipin
Hi Aidy, There is a wiki page called Alternative Tools For Web Testing. http://wiki.openqa.org/display/WTR/Alternative+Tools+For+Web+Testing Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] How to count links of a table

2007-07-10 Thread sandeep
ie.links.length # show how many links are on the page. May be u can use this (or modify it to access table)method for links in table ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] How can I make a IE window active?

2007-07-10 Thread Claudiu Gorgan
Hi there, Is there somebody hwo can tell me how can I make a IE window active in order to make some changes to its objects...So my script clicks on a button that opens a new IE window, more like a pop-up, and should fill some fields in this new window. I have tryied makeWindowActive() but no

Re: [Wtr-general] How can I make a IE window active?

2007-07-10 Thread Željko Filipin
Hi Claudiu, If pop up window is new Internet Explorer window, you can attach to it with eiher of this. ie = Watir::IE.attach(:title, title) ie = Watir::IE.attach(:url, url) Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] hidden control..

2007-07-10 Thread Chris McMahon
I think this is in contrib: http://jira.openqa.org/browse/WTR-53 On 7/10/07, mihai [EMAIL PROTECTED] wrote: exist method does not work, because the control exist but its hidden, and there is not a hidden? methodthat the reason for what ive asked if how i can find out that a control is

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

2007-07-10 Thread Chong
str = tdWhat was your first pet's name?/tdtdAnother sentence here/td sentences = str.scan(/td([^]*)/) last_words_arr = [] for arr in sentences sentence = arr.first sentence.gsub!('?', '') sentence.gsub!('.', '') sentence.gsub!('!', '') last_word = sentence.split.last last_words_arr

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

2007-07-10 Thread Charley Baker
The error pretty much tells you the story. You're taking an array: category= worksheet.Range('a2:a4') ['Value'] and pushing it into a method that accepts a string. If you want the whole array to be a string then convert it to a string: category=worksheet.Range('a2:a4') ['Value'] category.to_s

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

2007-07-10 Thread marekj
Hm...how about this: sentences =eof some words and more words then some more words and the last one word in a sentence1. Next sentence and more words and the last one word in a sentence2. and here too and then some more here and last word of the last sentence. eof words = sentences.split # or

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

2007-07-10 Thread Paul Rogers
have you looked at the modal_dialog stuff in watir? Ive never used it so cant help you much, but its there. - Original Message - From: Matt Berney [EMAIL PROTECTED] Date: Tuesday, July 10, 2007 12:10 pm Subject: Re: [Wtr-general] Selecting controls in a dialog box To:

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

2007-07-10 Thread Bret Pettichord
Paul Rogers wrote: have you looked at the modal_dialog stuff in watir? Ive never used it so cant help you much, but its there. +1 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] How to access the window.status pane

2007-07-10 Thread marty
We have some code that on a MouseOver sets the window.status field. Is there a way to access this in Watir? HTML Code: td class='fnt' valign=bottom a href=javascript:show_calendar('frmDateRange.txtbegin_date'); onmouseover=window.status='Date Picker';return true;

Re: [Wtr-general] How to access the window.status pane

2007-07-10 Thread Paul Rogers
ie.status - Original Message - From: marty [EMAIL PROTECTED] Date: Tuesday, July 10, 2007 2:08 pm Subject: [Wtr-general] How to access the window.status pane To: wtr-general@rubyforge.org We have some code that on a MouseOver sets the window.status field. Is there a way to access

Re: [Wtr-general] How to access the window.status pane

2007-07-10 Thread marty
I apologize. I found it about 5 minutes after posting. This will teach me to go through ALL of my resources before bothering the group. Thanks for your support. ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Path error or what? (2)

2007-07-10 Thread Lonny Eachus
I did recently install Visual Studio, so I could track down some issues with an MS application. I wonder if some of the environment variables it set could be interfering? Pardon my inclusion of previous quotes last time. That was accidental. Here is my environment:

Re: [Wtr-general] Recommended version of Ruby

2007-07-10 Thread Derek Wong
Hi Bret, here's my 2 New Zealand cents worth on the issue tempered somewhat by experiences I've had over the past week or so. Our situation: 1. Our web application uses Javascript dialogs, modal dialogs and occasionally raises extra browser windows. 2. In order to aid the continuous testing of