gem/lib/frank-cucumber/host_scripting.rb
#Note this needs to have "Enable access for assistive devices"
#chcked in the Universal Access system preferences
Note this needs to have "Enable access for assistive devices"
chcked in the Universal Access system preferences
Note this needs to have " Enable access for assistive devices " chcked in the Universal Access system preferences
def simulator_hardware_menu_press( menu_label )
    %x{osascript<<APPLESCRIPT
activate application "iPhone Simulator"
tell application "System Events"
	click menu item "#{menu_label}" of menu "#{Localize.t(:hardware)}" of menu bar of process "#{Localize.t(:iphone_simulator)}"
end tell
  APPLESCRIPT}  
  end
def simulator_hardware_menu_press ( menu_label ) %x{ osascript<<APPLESCRIPT
activate application "iPhone Simulator"
tell application "System Events"
	click menu item " #{ menu_label } " of menu " #{ Localize . t ( :hardware ) } " of menu bar of process " #{ Localize . t ( :iphone_simulator ) } "
end tell
  APPLESCRIPT } end
Note this needs to have "Enable access for assistive devices"
chcked in the Universal Access system preferences
Note this needs to have " Enable access for assistive devices " chcked in the Universal Access system preferences
menu_label
<not_specific>