Created
November 22, 2012 15:14
-
-
Save yurenju/4131648 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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