[Wtr-general] open file with file_field

2005-08-08 Thread Neumann, Carsten - ENCOWAY
Title: open file with file_field How can I open a file by using a file_field? If I use: ie.file_field(:name, fieldname).set(complete path) I get the normal Windows- Open file-dialog. How can I now select a file, or type the name using watir? Or must I use something different? Thanks!

RE: [Wtr-general] open file with file_field

2005-08-08 Thread Zeljko Filipin
Title: open file with file_field Try this (make sure you have 'file.txt' in 'C:\'): require 'watir' ie = Watir::IE.start('http://validator.w3.org/') ie.file_field(:id,'uploaded_file').set('C:\file.txt') There seems to be a bug when path contains spaces: 1) this works just fine

Re: [Wtr-general] Re: Small question about split String?

2005-08-08 Thread Shao Kang Tat
Here's what I did..seems to work: irb(main):069:0 a = ABC123 = ABC123 irb(main):070:0 b = a.split(/\d/) = [ABC] irb(main):071:0 b.push(a.sub(b[0],)) = [ABC, 123] which gives you the two entries in the array b. Not sure how else to do it :) Shao ___

[Wtr-general] IE Security Dialog box (HTTP basic Authentification/Watir)

2005-08-08 Thread Juan Pablo Mattenet
Hi, I'm new to watir and ruby, and I'm having the following issue:The application under test uses HTTP basic authetification for the login.This causes IE to put up a dialog box requesting the user and password.And I don't know how to manipulate this particular window from Watir a search in the

RE: [Wtr-general] open file with file_field

2005-08-08 Thread Zeljko Filipin
(:id, uploaded_file) is how you can access file field at http://validator.w3.org/, it is just an example. That cmd window showing all windows should be there for a few seconds, and then it dissapears, and the file is selected. Try example from my previous post and wait for cmd window to close

Re: [Wtr-general] Re: Small question about split String?

2005-08-08 Thread Chris McMahon
On 8/7/05, Hue Mach Dieu [EMAIL PROTECTED] wrote: Hi I follow your ways, but it seem don't work Oops. irb(main):012:0 string = ACB12334 = ACB12334 irb(main):013:0 string =~ /([A-Z])*/ = 0 irb(main):014:0 puts $ ACB Forgot the *. See pp 68-77 of Programming Ruby. -Chris

[Wtr-general] Object repository, Popups and other enhancements

2005-08-08 Thread Raghu Venkataramana
Hi all, We started evaluating Watir for porting a large subset of our automated tests from Quicktest. In the process, we had to build supporting classes on top of Watir to suit our needs. We are sure that these additions will be beneficial to all in the community. (In fact there were a lot of

RE: [Wtr-general] IE Security Dialog box (HTTP basicAuthentification/Watir)

2005-08-08 Thread Torres, Ben (HQP)
Where can I find the unit tests for WinHelper? I can't seem to find it in the examples directory that was installed on my machine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Wood Sent: Monday, August 08, 2005 1:27 PM To:

[Wtr-general] class_name attribute of Div elements

2005-08-08 Thread Rob Lally
Hi, I notice that in the last release the style attribute was converted to class_name for div elements. I'm trying to use it to get the css class of a div, but I can't seem to get it to work - it doesn't return anything. Is it just me or is it broken? R.

[Wtr-general] fileField problems

2005-08-08 Thread Torres, Ben (HQP)
Hi, I just ran the filefield_test.rb in the unittests folder. When the file executed, another command window opened and started to print out a bunch of text while the "choose file" window was opening. The "choose file" window remained open for about 10 seconds, and at this time the command

RE: [Wtr-general] fileField problems

2005-08-08 Thread Jonathan Kohl
That's how the WinClickers code works that is being called. That's one of the many reasons it will be nice to have a better solution for dealing with windows. -Jonathan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Torres, Ben (HQP)Sent: August 8, 2005 4:48

[Wtr-general] Re: Small question about split String?

2005-08-08 Thread Hue Mach Dieu
Hi, I solve my problem as like this, It work with my cases string = ABC12345 numPos = string =~ /\d/ alpha = string.slice(0,numPos) number = string.slice(numPos, string.length - numPos).to_i Regards, Hue Mach ___ Wtr-general mailing list

[Wtr-general] Re: Object repository, Popups and other enhancements

2005-08-08 Thread Hue Mach Dieu
Hi, I read the tutorial about WET framework (http://www.wet.qantom.org), It seem good. Now I'm starting try it with my current project Regards, Hue ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] class_name attribute of Div elements

2005-08-08 Thread Bret Pettichord
take a look at div_test.rb. At 05:17 PM 8/8/2005, Rob Lally wrote: Hi, I notice that in the last release the style attribute was converted to class_name for div elements. I'm trying to use it to get the css class of a div, but I can't seem to get it to work - it doesn't return anything. Is