[wtr-general] Popup is not shown and the script times out!

2008-11-24 Thread Margam
HI all, I am new to Watir and am still in the process of learning (with the examples in the site: http://wiki.seleniumhq.org/display/WTR/Tutorial). I am trying to handle a popup (when deleting email without actually selecting any email for deletion) from the Yahoomail web page. The popup does not

[wtr-general] set watir_browser=ie is not working

2008-12-10 Thread Margam
require 'watir' set watir_browser=ie browser = Watir::Browser.new browser.goto("http://www.hotmail.com";) -- But keep getting the following error: - undefined method `set' for main:Object (NoMethodError) - What am I doing wrong? Should I

[wtr-general] Re: set watir_browser=ie is not working

2008-12-10 Thread Margam
keep expermimenting. > > marekj | Semantic Page Objects Automation > > Watirloo: Browser Page Helper > Frameworkhttp://www.bitbucket.org/marekj/watirloo/ > for IE, Firefox and others? > > On Wed, Dec 10, 2008 at 6:45 PM, Margam <[EMAIL PROTECTED]> wrote: &g

[wtr-general] download file popup is not shown on IE7.

2008-12-11 Thread Margam
quot;C:\\") ai.ControlClick("Save As", "", "&Save", "left") ai.WinWait("Download complete", "", 5) ai.ControlClick("Download complete", "", "Close") -- Can someone tell

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Margam
script, IE is still used. Firefox is not launched. Am I doing something wrong. Also for the time being I am doing to just change the default browser from the script itself (which works fine). Thank you Margam On Dec 11, 9:46 am, John Fitisoff wrote: > I think the problem is that you are r

[wtr-general] Re: It displays error message when I use method bring_to_front.

2008-12-12 Thread Margam
'regsvr32' is not a recognized as an internal or external command, operable program or batch file. I typed this command from C:\ruby\lib\ruby\gems\1.8\gems \watir-1.6.2\lib\watir Can anyone point out what mistake I am doing? Thank you Margam On Nov 13, 11:47 pm, Tony wrote: > Hi Wesl

[wtr-general] Re: set watir_browser=ie is not working

2008-12-13 Thread Margam
is OK), the script works fine with both IE and FF. Thank you everyone for the all the replies. Margam On Dec 12, 11:08 pm, marekj wrote: > On Thu, Dec 11, 2008 at 6:14 PM, Margam wrote: > > > Hi John, > > So I tried using "require 'watir/browser' " in my

[wtr-general] Re: It displays error message when I use method bring_to_front.

2008-12-13 Thread Margam
HI Tony, The problem is in the PC at work. I will try out your suggestion on Monday and will reply. Thank you for the suggestion. Margam On Dec 12, 8:08 pm, Tony wrote: > Hi Margam, > > Weird that regsvr32 is not found hmm... > Anyways could try and search for the regsvr32

[wtr-general] Re: It displays error message when I use method bring_to_front.

2008-12-15 Thread Margam
Hey Tony, Everything's working fine now. The "regsvr32" file was located in C:\Windows\system32 folder. I had copied it to the folder where AutoItX3.dll file is located and executed the command. Scripts run fine now. I do NOT get the error anymore. Thank you for the help. Marga

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

2008-12-15 Thread Margam
quot;) sleep 1 ai.ControlClick(window_title1, "", "&Yes") end $browser.goto("http://abcd.com";) sleep 2 $browser.link(:text, "zzz.zip").click sleep 5 save_file("zzz") -- The popup

[wtr-general] Re: download file popup is not shown on IE7.

2008-12-15 Thread Margam
Figured this out. The problem was not with the script. It was the security settings with IE. After setting low security, I was able to see the download popup. On Dec 11, 12:28 pm, Margam wrote: > Hello all, > I have been trying to write script tohandledownloadfile popups, but > have no

[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 wrote: > Hello Everyone, > I have been trying to handle File Download pops in FF browser. I had > posted a similar qu

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

2008-12-17 Thread Margam
buttons ("Open with" and "Save File") in the popup. The default being "Save File" works for me now. But how do I choose the other option? Also how to check a check box in the popup. Thank you very much once again. Margam On Dec 17, 2:41 am, al3kc wrote: > Hi, >

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

2008-12-18 Thread Margam
Hey guys, Thanks for the input. I will certainly try, as soon as I finish with my current project. Thanks. Margam On Dec 18, 3:56 am, al3kc wrote: > onhttp://www.autoitscript.com/forum/index.php?showtopic=81915&hl=firefo... > I have found next code: > > Contr

[wtr-general] Problem installing safariwatir on OS X version 10.5.5

2008-12-19 Thread Margam
1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1/ gem_make.out What should I do? Please help, as this is urgent. Margam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[wtr-general] Re: Problem installing safariwatir on OS X version 10.5.5

2008-12-19 Thread Margam
. Margam On Dec 19, 1:02 pm, Alex Collins wrote: > Have you installed the developer tools? These are available on the OS   > X install CD or you can download them from ADC. > > Alex > > On 19 Dec 2008, at 19:38, Margam wrote: > > > > > Hello all, > > I am trying

[wtr-general] Re: Problem installing safariwatir on OS X version 10.5.5

2008-12-21 Thread Margam
Hello, Everything works fine now. I had to download and install the Xcode tool. Then SafariWatir installed fine. Thank you for the hint. Margam On Dec 19, 1:15 pm, Margam wrote: > Hello, > I am very new for Mac machines, and this is a loan machine. So I do > not have any install Cds.

[wtr-general] How to close safari popups using safariwatir?

2008-12-21 Thread Margam
new Safari window popups. This is just another Safari window, not any JS confirmation windows. How to close this second safari window? IS there anything in safariwatir like "Win32ole" and AutoIt to handle such popups, or send KEYs to close the popup? PLease help. Thank yo

[wtr-general] Editing the example "Example Logging" in the Watir Wiki site may be useful for beginners

2009-01-06 Thread Margam
n example code itself. This would save some time for many of the new comers like me. Thank you very much for Scott and Kohl for providing the codes. Margam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Wati

[wtr-general] How to store data from a CSV file into an array

2009-01-08 Thread Margam
't want to manually enter each value from the file into each array element. Is there an easier and better (shorter) way to achieve this? Please help. Thank you Margam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: How to store data from a CSV file into an array

2009-01-08 Thread Margam
Hello Bill, Thank you for your quick reply. And Thank you once again, as your suggestion works great. I may have to work on how to deal with invalid lines in the CSV file in the future. But this works for the moment. Thank you Margam On Jan 8, 3:16 pm, "Bill Agee" wrote: > T

[wtr-general] Re: How to store data from a CSV file into an array

2009-01-08 Thread Margam
v")){|row| array << row[1]} This also get the values in the second column of the file "gmail.csv" and puts it in an array. Hope this helps, beginners like me. Margam On Jan 8, 3:50 pm, Margam wrote: > Hello Bill, > Thank you for your quick reply. > And Thank you once a

[wtr-general] Re: How to store data from a CSV file into an array

2009-01-11 Thread Margam
;)) { |row| array << [1][1] } CSV::Reader.parse(File.open('gmail.csv')) { |row| array << ['r1c1'] } Can you help me? How should I be specifying the row and columns to be saved in the array? Thank you very much. Margam On Jan 8, 3:16 pm, "Bill Agee" wrot

[wtr-general] Re: How to store data from a CSV file into an array

2009-01-13 Thread Margam
following, but did not work: array=[] CSV::Reader.parse(File.open('gmail.csv')) { |row| array << [1][1] } CSV::Reader.parse(File.open('gmail.csv')) { |row| array << ['r1c1'] } Can anyone help me? How should I be specifying the row and columns to be saved in

[wtr-general] How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Margam
I would like to access the values in column 2 using the Key on column 1. I want to do this, as the CSV file may keep changing. Also how to access the Hash keys(or use them in the script)? Kindly provide guidance. Thank you Margam --~--~-~--~~~---~--~~ You received th

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Margam
ooks like this: "http://gamil.com"; Why does the output has the double quotes? Hope my questions are clear. Thank you. Margam On Jan 13, 3:58 pm, Margam wrote: > Hello All, > I have been recently learning to use both the CSV module and the > FasterCSV gem to create an array f

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-13 Thread Margam
Sorry for asking Ruby questions in Watir group. But figured, somebody would be able to help me. Thanks once again On Jan 13, 5:19 pm, Margam wrote: > Follow Up > Hello All, > After googling for some time, I found an easy way to get the data into > an Hash. Thanks to

[wtr-general] Need help with verifying if text exists!

2009-01-27 Thread Margam
ses, only the "failmessage" is output. The "passmessage" is never output. The reason I want to use "verify" instead of a simple "$ie.text.inclue?" is, so that not only the failmessage is output but also a failure is raised. Hope

[wtr-general] How to automate site with Captcha?

2009-03-07 Thread Margam
much. Margam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following gu

[wtr-general] Re: It displays error message when I use method bring_to_front.

2008-12-12 Thread Karthikeyan Margam
Hello Richard, When I typed "path" from a command prompt, the PATH did include C:\WINDOWS\system32 What else can I try? Thank you. Margam On Fri, Dec 12, 2008 at 5:15 PM, Richard Lawrence wrote: > > If you type path at the command prompt, does the result include >

[wtr-general] Re: Editing the example "Example Logging" in the Watir Wiki site may be useful for beginners

2009-01-07 Thread Karthikeyan Margam
Hi Alister, Thank you for the update. In future I will follow your instructions. Margam On Tue, Jan 6, 2009 at 10:20 PM, Alister Scott wrote: > > Hi Margam > I have updated and uploaded example_logger1.rb to the wiki: > http://wiki.openqa.org/display/WTR/Example+Logging > In the

[wtr-general] Re: How to store data from a CSV file into an array

2009-01-13 Thread Karthikeyan Margam
. Margam On Tue, Jan 13, 2009 at 12:32 PM, Bill Agee wrote: > > Hey, > > One way to do this is to use a counter while iterating over the rows: > > require 'csv' > array = [] > row_count = 0 > CSV::Reader.parse(File.open('foo.csv')) do |row| > row

[wtr-general] Re: How to create a Hash Table using CSV or FaterCSV

2009-01-14 Thread Karthikeyan Margam
Hi Alex, Thank you very much for the explanation. Margam On Tue, Jan 13, 2009 at 11:39 PM, Alex Collins wrote: > > My apologies - knocked send whilst getting onto the train. > > In this case, you are using the CSV modules to load strings as key/ > value pairs into a hash. Th

[wtr-general] Re: Need help with verifying if text exists!

2009-01-27 Thread Karthikeyan Margam
Hi Tiffany, Thank you for the quick reply. This definitely helps me. So if I understand this correctly, the verify() method always has the failmessage as the default message. Is my understanding correct? Thank you. Margam On Tue, Jan 27, 2009 at 12:18 PM, Tiffany Fodor wrote: > > Hi

[wtr-general] Re: Need help with verifying if text exists!

2009-01-27 Thread Karthikeyan Margam
Thank you. Margam On Tue, Jan 27, 2009 at 12:48 PM, Tiffany Fodor wrote: > > Yep, you've got it right. > > In it's default form, you can't specify a success message for the > verify method. If you really needed to, however, you could extend the > method to do