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 out the form and look for it inside the frame?

I mean given that you are identifying it by ID and not Name or Class,
there should only be ONE of them on the page if it's proper HTML.

Yes this doesn't let you validate that someone didn't move the thing
outside of the form, or address any other reason you have for wanting
to look for it 'inside' the form (which I understand perfectly, I do
that kind of thing all the time with navigation links within a
specific div etc)  but it might at least let you get around this for
now..  (and beats the heck out of having to setup a windows VM or
something just so you can run the scripts)

It also seems to me like you've got a pretty valid (and thanks to the
public site, easily reproducable) bug here, so you might want to
create a Jira item for it  to see that it gets fixed <http://

FWIW I think this code should run on either browser with a simple
change of the default browser value

require 'watir'
Watir::Browser.default = 'ie'   #sets browser preference
url = "http://www.siemens.de/jobs/jobs_bewerbung/jobboerse/Seiten/
browser = Watir::Browser.new
browser.frame(:index, 1).form(:name, "lay0803234_src350a").select_list
(:id, "LOV6") .inspect

On Jun 3, 10:25 am, jason <jason.franklin.sto...@gmail.com> wrote:
> 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 see you have access to both IE and Firefox. could you
> please please run this code and tel me if you get the same results as
> i do??
> This should work for IE and Firefox (watir and firewatir)
> 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
> This should only work for IE: (watir only)
> 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").select_list(:id,
> "LOV6") .inspect
> Thanks a million....
> On 3 Jun., 17:03, aidy lewis <aidy.le...@googlemail.com> wrote:
> > 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, 1).rows[0].html
> > Aidy
> > 2009/6/3 jason <jason.franklin.sto...@gmail.com>:
> > > 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.- Hide quoted text -
> - Show quoted text -
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to