Пример #1
0
 def close_app(self, app):
     self.wait_for_card_ready(app)
     Wait(self.marionette).until(
         expected.element_present(*self._app_card_locator(app)))
     self.marionette.find_element(*self._close_button_locator(app)).tap()
     Wait(self.marionette).until(
         expected.element_not_present(*self._app_card_locator(app)))
Пример #2
0
 def close_app(self, app):
     self.wait_for_card_ready(app)
     Wait(self.marionette).until(
         expected.element_present(*self._app_card_locator(app)))
     self.marionette.find_element(*self._close_button_locator(app)).tap()
     Wait(self.marionette).until(
         expected.element_not_present(*self._app_card_locator(app)))
Пример #3
0
    def login(self, email, password):
        # This only supports logging in with a known user and no existing session
        self.type_email(email)
        self.tap_continue()

        self.type_password(password)
        self.tap_returning()

        self.marionette.switch_to_frame()
        Wait(self.marionette).until(
            expected.element_not_present(*self._persona_frame_locator))
        self.apps.switch_to_displayed_app()
Пример #4
0
Файл: app.py Проект: AlexSJ/gaia
    def login(self, email, password):
        # This only supports logging in with a known user and no existing session
        self.type_email(email)
        self.tap_continue()

        self.type_password(password)
        self.tap_returning()

        self.marionette.switch_to_frame()
        Wait(self.marionette).until(
            expected.element_not_present(*self._persona_frame_locator))
        self.apps.switch_to_displayed_app()
Пример #5
0
Файл: app.py Проект: sdglhm/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(
         expected.element_not_present(*self._search_results_loading_locator))