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

Jarmo Pertman closed WTR-493.
-----------------------------

    Resolution: Fixed

Fixed in 
https://github.com/bret/watir/commit/0d56ca56c88643e6e6350d91fac73b1baf247dd1

> css is an unknown way of finding a <*>
> --------------------------------------
>
>                 Key: WTR-493
>                 URL: http://jira.openqa.org/browse/WTR-493
>             Project: Watir
>          Issue Type: Bug
>          Components: HTML Controls
>    Affects Versions: 2.0
>         Environment: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
> rubygems 1.8.11
> watir 2.0.2
>            Reporter: Zeljko
>
> I have this HTML.
> {code:html} 
> <select id="mySelectList">
>   <option title="title1" value="1">Title 1</option>
>   <option title="title2" value="2">Title 2</option>
>   <option title="title3" value="3">Title 3</option>
> </select>
> {code} 
> I want to get all option elements. I have tried this:
> {code} 
> browser.elements(:css => "option")
> {code} 
> and got this
> {code} 
> Watir::Exception::MissingWayOfFindingObjectException: css is an unknown way 
> of finding a <*> element (option)
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:125:in 
> `rescue in match?'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:122:in 
> `match?'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:32:in 
> `block in match_with_specifiers?'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:32:in 
> `each'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:32:in 
> `all?'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:32:in 
> `match_with_specifiers?'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:102:in 
> `block in each'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:96:in 
> `block in each_element'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:95:in 
> `each'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:95:in 
> `each_element'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/locator.rb:101:in 
> `each'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/collections.rb:22:in
>  `each'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/element_collections.rb:25:in
>  `length'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/element_collections.rb:19:in
>  `initialize'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/html_element.rb:26:in
>  `new'
>         from 
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/watir/html_element.rb:26:in
>  `elements'
>         from (irb):23
>         from C:/Ruby192/bin/irb:12:in `<main>'
> {code} 

-- 
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