Re: Clearing device settings before run

13 views
Skip to first unread message

Stewart Gleadow

unread,
May 11, 2014, 10:43:20 PM5/11/14
to zucchini...@googlegroups.com
I usually use some Applescript to do this, something like:

tell application "iOS Simulator"
    activate
end tell

tell application "System Events"
    tell process "iOS Simulator"
        tell menu bar 1
            tell menu bar item "iOS Simulator"
                tell menu "iOS Simulator"
                    click menu item "Reset Content and Settings…"
                end tell
            end tell
        end tell
        tell window 1
            click button "Reset"
        end tell
    end tell
end tell

- Stew


On 7 May 2014, at 4:01 am, Quynh Nguyen <quynhng...@gmail.com> wrote:

How do I clear the device settings before each run? This can be done manually by simulator -> reset contents and settings

--
You received this message because you are subscribed to the Google Groups "Zucchini Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zucchini-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Quynh Nguyen

unread,
May 12, 2014, 1:06:30 PM5/12/14
to zucchini...@googlegroups.com
Yup, I have same thing but also this at the end. 

tell application "iOS Simulator"
    quit
end tell
Reply all
Reply to author
Forward
0 new messages