[wtr-general] Re: 'matches' method for regexp gives error

2008-12-16 Thread Ravi
I guess this will work: @mytestvalue = $ie.span(:id, 'db_data').text.match(/db_[0-9]*/).to_s On Dec 16, 12:07 pm, Paul Rogers paul.rog...@shaw.ca wrote: what does $ie.span(:id, 'db_data').text return - it might be a problem with your regular expression. What are you expecting

[wtr-general] Need help in accessing an element

2008-12-16 Thread Natasha
Hello All, Please could someone help me with a way to access a link element. Following is the HTML snippet: DIV AIMG/IMGA PA Chelsea Groves Business Cards/A /P P class=pBy by Chelsea Groves /P DIV I need to click on the link with text Chelsea Groves Business Cards. But following is what I

[wtr-general] Re: 'matches' method for regexp gives error

2008-12-16 Thread maven999
Sorry, I didn't see the previous message before I posted the above reply. Ravi, it worked! Thanks...so looks like my regexp was wrong all along. Thanks Paul for pointing me to text. Watir forum ROCKS! On Dec 16, 1:16 pm, maven999 maven...@gmail.com wrote: The problem is that db_data is the

[wtr-general] Re: How to handle file download popups in Firefox?

2008-12-16 Thread Margam
Hello Everyone, Can someone help me with this issue please. I need this working very desperately for my project. Thank you very much. Margam On Dec 15, 2:40 pm, Margam nk.mar...@gmail.com wrote: Hello Everyone, I have been trying to handle File Download pops in FF browser. I had posted a

[wtr-general] Opening an Excel file with a variable name

2008-12-16 Thread jas . shelton
All, I am attempting to open an Excel file with Ruby, and have run into a problem. If I open the file with single quotes, like inputFile = input.Workbooks.Open('C:\Folder\sheet.xls') everything works fine. My problem now is that the location of the .xls file has a variable name, like

[wtr-general] Re: Opening an Excel file with a variable name

2008-12-16 Thread Darin Duphorn
Try \\ $drive+\\+env+\\Test_Results\\+$file_name+_Results.xls -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of jas.shel...@hotmail.com Sent: Tuesday, December 16, 2008 3:08 PM To: Watir General Subject: [wtr-general]

[wtr-general] Re: undefined method `length' for 4324536:Fixnum

2008-12-16 Thread John Fitisoff
I think you need to use a string when setting a text field. Either use to_s to convert the value from fixnum to string when setting the field or use a quoted value in the yml file. --- On Tue, 12/16/08, winstan lucasdavidwinstan...@gmail.com wrote: From: winstan

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-16 Thread Fish
I use the ruby186-26,but still can not handle the popup...Just only block at the commandline. Does someone kindly do me a favor to provide code which can handle the modaldialog?I very appreciate it. I have tried below, but it doestn't work. @ie.button(:value, New).click_no_wait #pop up a

[wtr-general] Re: undefined method `length' for 4324536:Fixnum

2008-12-16 Thread winstan
Thanks John. Some thing as simple as that. Well at least i know now for future references. Oh and all I changed was the data in the yml file so that its quoted. Problem solved. Now onto rexml fun for me... im sure i will be back with questions on that too. Thank god every one around here is so