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
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 show
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 wrote:
> ok - so just for documentations sake i found the bug in the firewatir
> "locate_tagged_element" code in MozillaBaseElement.rb
>
> this..
>
> if(@
On Thu, Jun 4, 2009 at 10:05 AM, jason
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
--
http://watirpodcast.com/
--~--~---
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 || @containe
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
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
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 se
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
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 wrote:
> > ff.frame(:index, 1).form(:name, "lay0803234_src350a").select_list(:id,
> > "LOV6") .inspect
>
> Try :in
> 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 emai
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").inspe
On May 29, 7:58 am, jason 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 abusing
hml) since there is
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, 2
It looks like this select list is in an tag, so this might be
a difficult task to do.
On May 29, 7:59 am, jason wrote:
> Hi Alan - sorry the index instead of :index in my original message was
> a typo. so
>
> ff.frame(:index, 1).form(:name, "lay0803234_src350a").select_list
> (:id, "LOV6")
>
Hi Alan - sorry the index instead of :index in my original message was
a typo. so
ff.frame(:index, 1).form(:name, "lay0803234_src350a").select_list
(:id, "LOV6")
does not work either.
On May 27, 11:14 pm, Alan Ark wrote:
> Try
>
> ff.frame(:index, 1).form(:name, "lay0803234_src350a").select_
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.
On May 27, 6:33 pm, Michael Hwee wrote:
> Have you tried omitting form()?
>
> For example, ff.frame(index, 1).select_list(:id,"
Try
ff.frame(:index, 1).form(:name, "lay0803234_src350a").select_list(:id,
"LOV6")
:index rather than index
-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On
Behalf Of jason
Sent: Wednesday, May 27, 2009 6:02 AM
To: Watir General
Subje
Have you tried omitting form()?
For example, ff.frame(index, 1).select_list(:id,"LOV6")
- Original Message
From: jason
To: Watir General
Sent: Wednesday, May 27, 2009 6:02:01 AM
Subject: [wtr-general] forms in subframes - elements not found
Hi - here is the issue,
to get some el
19 matches
Mail list logo