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

2007-04-13 Thread Steve Tangsombatvisit
Hi folks, Is there a quick and easy way to find out how much disk space remains on a drive using Ruby, or how much space is currently being used? Thanks, Steve ___ Wtr-general mailing list [EMAIL PROTECTED]

[Wtr-general] Accessing Nested Tables

2007-02-27 Thread Steve Tangsombatvisit
Hi, I am trying to access a cell in a nested table structure. The structure is something like this TABLE TBODY TR TD TABLE #table 2 TRTD/TD/TR /TABLE /TD /TR /TBODY

[Wtr-general] Image Capture Package?

2006-09-27 Thread Steve Tangsombatvisit
Hi everyone,I was just wondering if anyone can recommend a good image capture library/package that can be used with Ruby/Watir? We need to do pretty basic image capture like capture a specific window, or a specific frame within a window and then save the image as a bmp or jpg file.Thanks in

[Wtr-general] Setting a timeout on ie.goto()?

2006-07-21 Thread Steve Tangsombatvisit
Hi folks, Relatively new to using Ruby/Watir... I have a quick question about the ie.goto statement, is there a way to set a timeout for this call so that if the webpage does not complete loading with X amount of seconds the call terminates? The problem we're running into is that some of

Re: [Wtr-general] Design Problems

2006-01-11 Thread Steve Tangsombatvisit
Does anyone know of a better way to do this? I was chewing on possibly creating a 'order_something' object that could insert the proper steps and assertions based on the 'store' that it's testing - but to be honest I'm not even sure how to do that. Also, maybe this is a place where

Re: [Wtr-general] Read In from external file

2006-01-10 Thread Steve Tangsombatvisit
Hi Ben, That's very easy to do via Ruby 1. Create file object using the following code input_file = File.open(data.txt, r) 2. There are many ways to iterate through the file or read data from the file depending on what you need to do. To go through the file line-by-line it would be