Re: [Wtr-general] Field length validation

2007-05-02 Thread Željko Filipin
Hi Tunde, Text you enter at text field is not included in ie.contains_text. To see what is entered in text field you can use this. ie.text_field(:name,/tb_FirstName/).value Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge

Re: [Wtr-general] playing with FireWatir on OSX

2007-05-02 Thread Angrez Singh
Hi Chris, You might want to have a look at this for installing FireWatir or MAC OS X. http://crasch.livejournal.com/550521.html According to the troubleshooting section of this article, the error you are getting is because of incorrect xpi. Let me know if this helps. Regards, Angrez On 5/3/07

[Wtr-general] Field length validation

2007-05-02 Thread Tunde Jinadu
Hi, I'm looking to do the following, attempt to enter text into a field where the max length is x, + one character. I've tried ie.text_field(:name,/tb_FirstName/).set('PHHPL') puts 'Name entered greater than 16 characters' if ie.contains_text("PHHPL") puts("Test Failed.

Re: [Wtr-general] problem filling text_field - validation fails

2007-05-02 Thread Paul Rogers
Hi Timm I dont see any code that would do validations in the html you've supplied you can also try this, which may help $b.link(:id, "ownerToolbox_reportSale").click $b.text_field(:id, "ownerToolbox_askingPrice").value="234567" $b.radio(:id, "ownerToolbox_agent").set $b.button(:name, "SubmitBu

[Wtr-general] problem filling text_field - validation fails

2007-05-02 Thread Timm Mason
Hi, I'm having a problem with a text_field. If I populate the value with Watir, then submit, there is a validation that fails. However, I can manually type in the same value and the validation passes. Here's some HTML: Tell us it's for sale Close Is This Home For Sale?

[Wtr-general] playing with FireWatir on OSX

2007-05-02 Thread Chris McMahon
I've got jssh in place, and I can establish a connection on port 9997, but all the unittest scripts (and my little spike) hang as if nothing is going over the socket. Here's the stack trace after doing CTRL-C: ^C./../container.rb:842:in `recv': Interrupt from ./../container.rb:842:in `re

Re: [Wtr-general] Error when loading iframe

2007-05-02 Thread Suman Goel
Try adding the following line after creating the ie instance ie.logger.level = Logger::ERROR This will not show these warnings. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker Sent: Wednesday, May 02, 2007 7:46 AM To: wtr-general@rubyforge.o

Re: [Wtr-general] How to identify the nth instance of a div?

2007-05-02 Thread Jeff Fry
On 5/2/07, Jason <[EMAIL PROTECTED]> wrote: Perfect - that's exactly what I was after. Cool. Must have missed that in my tutorials and readings. Lovely. :index is in the rdoc already, but :class and multiple attribute support aren't there yet. I have started writing both up, and hope to

Re: [Wtr-general] 'Unable to locate object' problem

2007-05-02 Thread Charley Baker
You're trying to write to what appears to be a frame not the textarea. ie.text_field(:name, 'SN_NOTESSText').set('this should work') -Charley On 5/2/07, Imran Hussain <[EMAIL PROTECTED]> wrote: Hi, 'Unable to locate object' problem When running the following show_all_objects command, I g

[Wtr-general] 'Unable to locate object' problem

2007-05-02 Thread Imran Hussain
Hi, 'Unable to locate object' problem When running the following show_all_objects command, I get; rb(main):016:0> ie.show_all_objects---Objects in page - HTML Document name= id=SN_NOTESSFrame src=textarea name=SN_NOTESSText id=

Re: [Wtr-general] How to identify the nth instance of a div?

2007-05-02 Thread Jason
> You can also identify elements using multiple attributes, for example :class > and :index :ie.div(:class => 'contentItem', :index => > 3)  # access the 3rd div with a class of ' > Perfect - that's exactly what I was after. Must have missed that in my tutorials and readings. Lovely. ___

Re: [Wtr-general] Error when loading iframe

2007-05-02 Thread Charley Baker
Try running the latest code from svn, there've been some changes around dealing with frame access errors. Follow this link for the instructions: http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem -Charley On 5/2/07, John <[EMAIL PROTECTED]> wrote: Hi, When you click on a link in my website an

Re: [Wtr-general] How to identify the nth instance of a div?

2007-05-02 Thread Jeff Fry
On 5/2/07, Jason & Aneta <[EMAIL PROTECTED]> wrote: Hey all, Using the 1.5.1.1158 gem and enjoying the class support. Within my web page, I have the following, with 3 nested inside the main "content" . How do I retrieve / act within the nth instance, i.e. the 1st,

[Wtr-general] Error when loading iframe

2007-05-02 Thread John
Hi, When you click on a link in my website an iframe is loaded in the middle of the page. It seems watir has trouble with it, because it gives an error (see below). I use this to click on the link: $ie.link(:url, /club_philips_streamium_management/).click It then returns this error: irb(main):

[Wtr-general] How to identify the nth instance of a div?

2007-05-02 Thread Jason & Aneta
Hey all, Using the 1.5.1.1158 gem and enjoying the class support. Within my web page, I have the following, with 3 nested inside the main "content" . How do I retrieve / act within the nth instance, i.e. the 1st, 2nd or 3rd of these "contentItem" divs? Cheers, Jaso