[ 
http://jira.openqa.org/browse/SW-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zeljko closed SW-2.
-------------------

    Resolution: Won't Fix

If this is still a problem, please report it here: 
https://github.com/redsquirrel/safariwatir/issues

> Can't locate by name with nested array
> --------------------------------------
>
>                 Key: SW-2
>                 URL: http://jira.openqa.org/browse/SW-2
>             Project: SafariWatir
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1
>         Environment: Mac
>            Reporter: Zeljko
>             Fix For: 1
>
>
> Moved from http://github.com/redsquirrel/safariwatir/issues#issue/1
> 0 votes
> 0 comments
> Created 5 months ago by napcs
> Given the site http://www.pastie.org/
> and the form field
>  <textarea class="pastebox" cols="40" id="paste_body" name="paste[body]" 
> rows="22" tabindex="20"></textarea>
> this test fails:
>  require 'watir'
>  b = Watir::Safari.new
>  b.goto "http://www.pastie.org";
>  b.text_field(:name, "paste[body]").set "Foo"
> You get
> Watir::Exception::UnknownObjectException: Unable to locate TextField element 
> with id of paste_name
>     from 
> /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.5/lib/safariwatir/scripter.rb:521:in
>  `execute'
>     from 
> /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.5/lib/safariwatir/scripter.rb:174:in
>  `focus'
>     from 
> /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.3.5/lib/safariwatir.rb:382:in 
> `set'
>     from (irb):7
> However it works if you address it by id.
>  b.text_field(:id, "paste_body").set "Foo"
> Although you do see this:
>   => :missing_value
> and I don't know what that's supposed to mean :)
> Started looking through the source code and I had no idea why this wouldn't 
> work. This is still the case with the gem I built today from github (0.3.5)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to