[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 div nested inside the main content div. div class=content div class=contentItem /div div class=contentItem /div div class=contentItem /div /div How do I retrieve

[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:

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 :brbrie.div(:class =gt; #39;contentItem#39;, :index =gt; 3)nbsp; # access the 3rd div with a class of #39 Perfect - that's exactly what I was after. Must have missed that in my tutorials and readings.

[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] '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

[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: li class=post a onclick=toggle('ownerToolbox_reportSale');