Skip to content

Instantly share code, notes, and snippets.

@zacc
zacc / kill_all.py
Last active January 3, 2016 10:38 — forked from bebef1987/kill_all.py
def kill_all(self):
self.marionette.switch_to_frame()
self.marionette.execute_async_script("""
// Kills all running apps, except the homescreen.
function killAll() {
let originsToClose = [];
let that = this;
let runningApps = window.wrappedJSObject.AppWindowManager.getRunningApps();
for (let origin in runningApps) {