lib/rautomation/adapter/ffi/window.rb in rautomation-0.2.1 vs lib/rautomation/adapter/ffi/window.rb in rautomation-0.3.0
- old
+ new
@@ -131,9 +131,17 @@
# @see RAutomation::Window#method_missing
def method_missing(name, *args)
Functions.respond_to?(name) ? Functions.send(name, *args) : super
end
+ # Creates the child window object.
+ # @note This is an Ffi adapter specific method, not part of the public API
+ # @param (see Window#initialize)
+ # @return [RAutomation::Window] child window, popup or regular window.
+ def child(locators)
+ RAutomation::Window.new Functions.child_window_locators(hwnd, locators)
+ end
+
end
end
end
end
\ No newline at end of file