[wtr-general] Re: forms in subframes - elements not found

2009-06-06 Thread jason
Check, Thanks for the details solutions. In general - i can say that this in not a general bug in the firewatir code - in fact firewatir does find elements of objects in frames - most of the time! Now comes what I have found out until now. After a lot debugging and running after phantom bugs -

[wtr-general] Re: forms in subframes - elements not found

2009-06-05 Thread jason
FYI the solution above is not quite right.. i am working on the change and will post it later on today. On 4 Jun., 13:17, jason jason.franklin.sto...@gmail.com wrote: ok - so just for documentations sake i found the bug in the firewatir locate_tagged_element code in

[wtr-general] Re: forms in subframes - elements not found

2009-06-05 Thread Chuck van der Linden
Ok I've not tried this, but as far as I know you COULD install the watir gem, you just could not run it with the browser set to IE since yes obviously you don't have an IE browser on your platform. Mostly I gave that as an easy way to provide a tiny bit of sample code where you could quickly

[wtr-general] Re: forms in subframes - elements not found

2009-06-04 Thread jason
Chuck, Thanks a lot for your thoughs. Of course you are right with the work around - but this does not work for me because I have a large number of sites that often change so I don't know / cannot rely on the structure of the websites - my program has to find this out for itself and operate the

[wtr-general] Re: forms in subframes - elements not found

2009-06-04 Thread jason
ok - so just for documentations sake i found the bug in the firewatir locate_tagged_element code in MozillaBaseElement.rb this.. if(@container.class == FireWatir::Firefox || @container.class == Frame) needs to be changed to this. if(@container.class == FireWatir::Firefox ||

[wtr-general] Re: forms in subframes - elements not found

2009-06-04 Thread Željko Filipin
On Thu, Jun 4, 2009 at 10:05 AM, jason jason.franklin.sto...@gmail.com wrote: I cannot install watir becasue it requires a windows environment - or I am I missing somthing here too? You are right. Watir (IE) works only on Windows, because there is no IE for other platforms. Željko --

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread jason
Chuck, thanks a million for the feedback. This seems to be problem with firewatir. The following works fine. url = http://www.siemens.de/jobs/jobs_bewerbung/jobboerse/Seiten/ jobboerse.aspx ff = FireWatir::Firefox.new ff.goto(url) ff.frame(:index, 1).form(:name, lay0803234_src350a).inspect

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread aidy lewis
ff.frame(:index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6) .inspect Try :index, 0 Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread jason
firewatir index for all elements starts and frames starts with 1 index 0 should be the root document (but its not :-( ) so thanks for the thought jason. On 3 Jun., 15:29, aidy lewis aidy.le...@googlemail.com wrote: ff.frame(:index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6)

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread aidy lewis
Hi Jason How then would you explain this? require 'rubygems' require 'watir' ['watir', 'firewatir'].each { | g | require g } ie = Watir::IE.new ff = FireWatir::Firefox.new [ie, ff].each { |b| b.goto(http://www.google.com;) } ff.table(:index, 1).rows[0].html ie.table(:index,

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread jason
Aidy. thanks for the feedback!! ff.table(:index, 1).rows[0].html is the same as ff.table(:index, 1).row(:index, 1).html rows[0] refers to the first element of the array as row(:index, 1) referers to the location of the first row in the dom using the locate_taged_element method. however - i

[wtr-general] Re: forms in subframes - elements not found

2009-06-03 Thread Chuck van der Linden
Hey I know you want to look for the select_list INSIDE the form, (perhaps to verify it's in the right 'place' within the dom etc) but if the intent is to manipulate the list, and you are able to identify it by ID value, then as a workaround until this problem is corrected, why not just leave

[wtr-general] Re: forms in subframes - elements not found

2009-06-02 Thread jason
ok so i have taken a look at the locate_tagged_element method and it looks like it cannot handle elements of objects in nested frames! Can anyone confirm this? i.e. anyone out there that can get elements (i.e. the select list) of a form sitting in a nested frame thanks Jason. On 29 Mai,

[wtr-general] Re: forms in subframes - elements not found

2009-06-02 Thread Chuck van der Linden
On May 29, 7:58 am, jason jason.franklin.sto...@gmail.com wrote: Michael, thanks for the feedback. as mentioned above that works fine - however is not much use becasue the select list has no relationship to the form that contains it. no, but it would be the correct list (unless your devs are

[wtr-general] Re: forms in subframes - elements not found

2009-05-27 Thread Michael Hwee
Have you tried omitting form()? For example, ff.frame(index, 1).select_list(:id,LOV6) - Original Message From: jason jason.franklin.sto...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, May 27, 2009 6:02:01 AM Subject: [wtr-general] forms in subframes -