jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

MsUia ListBox: Not firing events if the item is out of the viewable area #77

Closed leviwilson closed 10 years ago

leviwilson commented 10 years ago

Description

If you have a ListBox control that has many items in it, if you select an item that is outside of the viewable area, events do not get fired.

window = RAutomation::Window.new(title: 'Some Title', adapter: :ms_uia)
list_box = window.list_box(id: 'listBox1')
label = window.label(id: 'changedListItem') # => holds the value when the label changes

list_box.select(20) # => select an item that is outside of the view
label.value.should eq('Item 20 Text') # => fails