Ejemplo n.º 1
0
    def tap_moz_id_button(self):
        self.wait_for_element_displayed(*self._moz_id_tests_button_locator, timeout=120)
        # Hack to make the identity button visible from underneath the toolbar
        mozId_button = self.marionette.find_element(*self._moz_id_tests_button_locator)
        self.marionette.execute_script('arguments[0].scrollIntoView(false);', [mozId_button])
        mozId_button.tap()

        from gaiatest.apps.ui_tests.regions.persona import Persona

        return Persona(self.marionette)
Ejemplo n.º 2
0
    def tap_moz_id_button(self):
        element = Wait(self.marionette, timeout=120).until(
            expected.element_present(*self._moz_id_persona_tests_button_locator))
        Wait(self.marionette).until(expected.element_displayed(element))
        # Hack to make the identity button visible from underneath the toolbar
        self.marionette.execute_script('arguments[0].scrollIntoView(false);', [element])
        element.tap()

        from gaiatest.apps.ui_tests.regions.persona import Persona

        return Persona(self.marionette)