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

2008-12-17 Thread LFIdnl
More useful File.join($drive,env,Test_Results,#{$file_name}_Results.xls ) On 17 дек, 00:20, Darin Duphorn dduph...@redbrickhealth.com wrote: Try \\ $drive+\\+env+\\Test_Results\\+$file_name+_Results.xls -Original Message- From: watir-general@googlegroups.com

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

2008-12-17 Thread Margam
Hi al3kc, THANK YOU very much. Your code snippet worked great the very first time. I just had to modify it a little for my use, but worked just fine. I was having another question regarding the file download popup and was wondering if you could help with some advice. How to handle the radio

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

2008-12-17 Thread Jason Shelton
I discovered that my problem was that I had a newline character at the end of each array element. Once I removed the character, it worked fine. Thanks for your help. - Shelton Date: Wed, 17 Dec 2008 10:02:11 -0600 From: b...@pettichord.com To: watir-general@googlegroups.com Subject:

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

2008-12-17 Thread HAHAHA
I tried, even change the security of IE to Low, but the click_no_wait still cannot click the button. Now I just want to know what's the problem. Is it my IE's problem or Ruby's problem? On Dec 17, 11:53 am, Michael Hwee michael_h...@yahoo.com wrote: Come and think of that, have you ever got

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

2008-12-17 Thread al3kc
Hi, I use next code and it works for me @ai = WIN32OLE.new(AutoItX3.Control) @ai.WinWaitActive([REGEXPTITLE:Opening]) @ai.Send({ENTER}) @ai.WinWait(Enter name of file to save to…, , 5) @ai.WinActivate(Enter name of file to save to…) sleep(7)

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

2008-12-17 Thread Jason Shelton
I have tried both proposed methods, and I am getting the same 'File not found' error. It seems that Ruby has a problem with using variables in certain scenarios. Previously, I was passing a parameter to a class named 'Test' with a function in it named 'go'. This is the syntax that I used,

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-17 Thread Nathan Lane
Have you tried th.click ? It is a standard tag, so it doesn't seem logical that th wouldn't be supported by Watir, but I could be wrong. On Wed, Dec 17, 2008 at 1:11 PM, maven999 maven...@gmail.com wrote: Hi, I have a dojo grid that I want to sort by column. The grid has 2 header cells

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-17 Thread maven999
I use the following line to locate the cell: $ie.div(:id, 'dbGrid').div(:class, 'dojoxGrid-master-header').table (:class, 'dojoxGrid-row-table').th(:text, 'stat_name').click I get the following error on console: 1) Error: test_Statistics(TC_UI): NoMethodError: undefined method `th' for

[wtr-general] Watir Training now available

2008-12-17 Thread Pete Dignan
If you are interested in training on Watir, including the new framework that is in the works, WatirCraft is offering a two-day public class in Austin March 25-26, 2009. Private on-site training is also available. http://www.watircraft.com/watir-training/ Apologies if the commercial nature of

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

2008-12-17 Thread Ning Cao
I used to have the same problem, then I uninstalled my Ruby and Watir, then installed them again and the problem got fixed. You may want to try that too, use admin account to install Ruby (v.1.8.6-26), then install Watir, good luck! -Original Message- From:

[wtr-general] Re: Calling Javascript function from WATIR

2008-12-17 Thread Tony
Hi Vivek, Yes you can call javascript functions from watir - The method is execScript, you can call any javascript method or variable available in the webpage. eg: ienw = Watir::IE.new ienw.document.parentWindow.execScript(alert(\hi\)) Firewatir too has a method to execute javascript calls -