Skip to content

Instantly share code, notes, and snippets.

@thevurt
thevurt / facebook_login.rb
Created September 18, 2012 11:51
Allows click on the Facebook "OK" button once the SDK opens safari taken from https://groups.google.com/d/msg/frank-discuss/V4F6ZZB5aCk/goA3I535a8IJ
def click_fb_okay_button
%x{osascript<<APPLESCRIPT
tell application "iPhone Simulator"
activate
end tell
tell application "System Events"
tell process "iPhone Simulator"
set the position of the first window to {1, 1, 1, 1}
delay 1