Method: AX::Application#show_preferences_window

Defined in:
lib/ax/application.rb

#show_preferences_windowAX::Window

Note:

This method assumes that the app has setup the standard CMD+, hotkey to open the pref window

Try to open the preferences for the app. Returns the window that is opened.



394
395
396
397
398
# File 'lib/ax/application.rb', line 394

def show_preferences_window
  windows = self.children.select { |x| x.kind_of? AX::Window }
  type "\\COMMAND+,"
  wait_for(:window, parent: self) { |window| !windows.include?(window) }
end