Interesting. With a cursory look, I can't seem to get at *any* forms via id: in 1.5.0.945. And show_forms doesn't show id values, either, although one of the forms in forms2.html has id "b2". There might be a missing unit test for this as well.
irb(main):013:0> ie.form(:id,'foo').click
Watir::Exception::UnknownObjectException: Unable to locate object, using id and foo
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/./watir.rb:2138:in `assert_exists'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/./watir.rb:2279:in `click'
from (irb):13
irb(main):014:0>
############################3
irb(main):008:0* ie.show_forms
There are 4 forms
Form name:
id:
method: get
action: pass.html
Form name: test2
id:
method: get
action: pass2.html
Form name: test3
id:
method: get
action: pass2.html
Form name: test2
id:
method: get
action: pass2.html
On 9/28/06, Phlip <[EMAIL PROTECTED]
> wrote:
Watirists:
My website generates forms on the fly, and names them after relative
paths and files, with a / between them.
When I use wie.form(:id, 'path/file'), I can't hit the form.
Is this a bug? Is the / screwing up the lookup?
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
