jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

MsUia: Control#click fails if the window goes away #75

Closed leviwilson closed 11 years ago

leviwilson commented 11 years ago

When a Control is clicked, causing the Window to go away, RAutomation will crash ruby as noted in #72 here. This only happens if the control is found by a UIA locator, not a Win32 locator.

window.button(:value => 'OK').click # this is fine
window.button(:id => 'buttonOK').click # this crashes
leviwilson commented 11 years ago

Fixed with dc6fbdcda87519175348d85585042b490fad6076