Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created November 22, 2012 15:14
Show Gist options
  • Save yurenju/4131648 to your computer and use it in GitHub Desktop.
Save yurenju/4131648 to your computer and use it in GitHub Desktop.
from gaiatest import GaiaTestCase
import time
class TestRemoveApp(GaiaTestCase):
_icons_locator = ('css selector', 'li.icon')
def setUp(self):
GaiaTestCase.setUp(self)
# unlock the lockscreen if it's locked
self.assertTrue(self.lockscreen.unlock())
self.homescreen = self.apps.launch('Homescreen')
def test_remove_app(self):
icons = self.marionette.find_elements(*self._icons_locator)
self.marionette.long_press(icons[1], 5000)
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment