Re: [Wtr-general] problem in attaching to browser using FireWatir

2007-04-16 Thread VIKASH KUMAR
Hi Angrez, My requirement is to just attach the script to some already open browser, I have open that browser manually. Thanks & Regards, Vikash >Hi Vikash, >Can you please clarify what you want to do? What I think is, there is a >browser and you want to attach to it? Correct? Yes, there is a

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread vamsi
thanks for your help and it is working for single return... however i have 2 carriage returns after first line. ex: data="first line second line" so it will appear as "first line \r\n\r\r second line" ... could you please help what need to be added for regular expression to solve this issue.

[Wtr-general] [OT] - array nightmare

2007-04-16 Thread Walter Kruse
Hi list Off topic, but I am sure there is a better way to do what I'm doing. As my test script runs, I have a script which reads the windows event log every 5 minutes and produces three flat files with the output according to different criteria. The way I read the logs is with Microsoft's dump

Re: [Wtr-general] JS Alert from a checkbox

2007-04-16 Thread Cain, Mark
Does anyone have an answer to this? I can't seem to get the click_no_wait to work for checkboxes. --Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: Friday, April 13, 2007 10:05 AM To: wtr-general@rubyforge.org Subject:

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread Chris McMahon
"\s+" means "match any white space characters", so the regex will match any number of tabs, spaces, crs, and/or lfs. On 4/16/07, vamsi <[EMAIL PROTECTED]> wrote: > thanks for your help and it is working for single return... however i have 2 > carriage returns after first line. > > ex: data="firs

Re: [Wtr-general] [OT] - array nightmare

2007-04-16 Thread Chris McMahon
> The new array replaces all the data previously in the master log file. I get > a lot of redundant whitespace for some reason. It really is a hack – there > must be a better way to do it… > I'm not sure what the expected result here should be. Seems like a reasonable approach. What part is the

Re: [Wtr-general] Finding out how much space remain on a drive?

2007-04-16 Thread Michael Bolton
On my Windows XP system, this appears to work: class Dir def Dir.free_space dir = `dir` dir =~ /([0-9,]*)\sbytes free/ bytes_free = $1.delete(",") return bytes_free.to_i end end puts Dir.free_space.to_s ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mail

Re: [Wtr-general] How to post a failed message when the assert fails

2007-04-16 Thread Bret Pettichord
vamsi wrote: > I am using this function : assert_equal(1,2) --> when i execute this > imeediatley will get the error message and stops the script execution. > > insetad of that , is there any way to post failed message like "expected 1, > but it was 2" > require 'test/unit/assertions' modul

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread vamsi
i'm sorry, '\s+' is not working for multiple Carry returns( new line sapces) could you please assist me any other alternative? Regards Vamsi ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread Chris McMahon
On 4/16/07, vamsi <[EMAIL PROTECTED]> wrote: > i'm sorry, '\s+' is not working for multiple Carry returns( new line sapces) > could you please assist me any other alternative? > You'll have to supply more detailed information: what code are you using, what error are you getting? ___

Re: [Wtr-general] [OT] - array nightmare

2007-04-16 Thread Walter Kruse
Hi Chris I think the biggest issue is the difference between File.read and IO.readlines, and understanding when an array or a string is returned. I'm not comfortable with truncating the original file either. What I would like to do is get the latest data, see what's not in the main file, and appe

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread vamsi
require 'test/unit' class TC_Spike < Test::Unit::TestCase def test_crlf data = "first line second line" assert_match(,data, /first line\s+second line/) end end error: "first line\r\n\r\nsecond line" expected but acutal was "/fist line\s+secondling/" Thanks for your support _