Issue Details (XML | Word | Printable)

Key: WTR-211
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Bret Pettichord
Reporter: Paul Rogers
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Watir

div.images causes exception

Created: 14/May/08 02:57 PM   Updated: 03/Mar/10 04:06 AM   Resolved: 04/Jun/08 06:32 PM
Component/s: HTML Controls
Affects Version/s: None
Fix Version/s: 1.5.5

File Attachments: 1. Text File diff.txt (2 kB) 14/May/08 02:59 PM - Paul Rogers



 Description  « Hide

ie.div(:id, 'whatever').images.length causes an ole exception

patch attached

Here are more details about this error:

WIN32OLERuntimeError: unknown property or method `images'
HRESULT error code:0x80020006
Unknown name.
unittests/../unittests/../watir/collections.rb:181:in `method_missing'
unittests/../unittests/../watir/collections.rb:181:in `length'
unittests/../unittests/../watir/element_collections.rb:12:in `initialize'
unittests/../unittests/../watir/container.rb:593:in `new'
unittests/../unittests/../watir/container.rb:593:in `images'
unittests/div_test.rb:82:in `test_images_inside_a_div'



Sort Order: Ascending order - Click to sort in descending order
Paul Rogers added a comment - 14/May/08 02:59 PM

diff attached for
unittests/div_test.rb
unittests/html/divs.html
and
collections.rb


Bret Pettichord added a comment - 04/Jun/08 05:20 PM

Note that this bug looks like it affects any of use in the form of ie.foo.images (where foo can be anything, not just a div).


Bret Pettichord added a comment - 04/Jun/08 06:32 PM

Patch committed in 1355. To be included in Watir 1.5.5. Thanks Paul!