Closed jarmo closed 6 years ago
Sorry...wrong issue # in the commit :(
@jarmo for Window#controls
, what would this look like for MsUia
? Any AutomationElement that is a child of the Window?
Yeah, why not. Think of it being similar to Watir
where there are methods span
, div
etc and then there's the method element
, which does not care about the type of element tag.
I guess my only thought was that for a ComboBox
type control, rather than showing up as 1 Control
in Window#controls
it would show up as 1 + the number of items in the combo control.
Closing this due to inactivity.
When using
:ms_uia
adapter then i'm getting anArgumentError
for the following code:Here is the relevant backtrace:
It seems to me that the problem is the fact that the
Window#controls
method is created byElementCollections
at https://github.com/jarmo/RAutomation/blob/master/lib/rautomation/adapter/ms_uia/window.rb#L11 and then overwritten at https://github.com/jarmo/RAutomation/blob/master/lib/rautomation/adapter/ms_uia/window.rb#L216-L219It seems to me that the latter should be removed and the line
@container.wait_until_present
should be moved directly intoElementCollections
.@leviwilson, thoughts?