当前位置: 首页>>代码示例>>Python>>正文


Python expected.element_enabled函数代码示例

本文整理汇总了Python中marionette_driver.expected.element_enabled函数的典型用法代码示例。如果您正苦于以下问题:Python element_enabled函数的具体用法?Python element_enabled怎么用?Python element_enabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了element_enabled函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: tap_call_button

 def tap_call_button(self, switch_to_call_screen=True):
     element = Wait(self.marionette).until(
         expected.element_present(*self._call_bar_locator))
     Wait(self.marionette).until(expected.element_enabled(element))
     element.tap()
     if switch_to_call_screen:
         return CallScreen(self.marionette)
开发者ID:AaskaShah,项目名称:gaia,代码行数:7,代码来源:keypad.py

示例2: go_back

 def go_back(self):
     Wait(self.marionette).until(expected.element_enabled(self.root_element) and
                                 expected.element_displayed(self.root_element))
     self.marionette.switch_to_shadow_root(self.root_element)
     self.marionette.find_element(*self._back_button_locator).tap()
     self.marionette.switch_to_shadow_root()
     Wait(self.marionette).until(expected.element_not_displayed(self.root_element))
开发者ID:eliperelman,项目名称:gaia,代码行数:7,代码来源:header.py

示例3: tap_fixed_dialing

 def tap_fixed_dialing(self):
     element = self.marionette.find_element(*self._fixed_dialing_numbers_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(
         *self._fixed_dialing_page_locator))
开发者ID:DouglasSherk,项目名称:gaia,代码行数:7,代码来源:call_settings.py

示例4: tap_alerts_selector

 def tap_alerts_selector(self):
     self.marionette.find_element(*self._alert_selector_locator).tap()
     alerts_page = RingTone(self.marionette)
     element = self.marionette.find_element(*self._firefox_alerts_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     return alerts_page
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:7,代码来源:sound.py

示例5: confirm_apn_selection

 def confirm_apn_selection(self):
     element = self.marionette.find_element(*self._apn_selector_confirm_button_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     self.apps.switch_to_displayed_app()
     Wait(self.marionette).until(expected.element_displayed(*self._apn_editor_page_locator))
开发者ID:anubhav7495,项目名称:gaia,代码行数:7,代码来源:sim_settings.py

示例6: tap_call_forwarding

 def tap_call_forwarding(self):
     element = self.marionette.find_element(*self._call_forwarding_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(
         *self._call_forwarding_page_locator))
开发者ID:DouglasSherk,项目名称:gaia,代码行数:7,代码来源:call_settings.py

示例7: tap_manage_tones_selector

 def tap_manage_tones_selector(self):
     self.marionette.find_element(*self._manage_tones_selector_locator).tap()
     manage_tones_page = RingTone(self.marionette)
     element = self.marionette.find_element(*self._dulco_ringtone_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     return manage_tones_page
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:7,代码来源:sound.py

示例8: enable_roaming

 def enable_roaming(self):
     element = Wait(self.marionette).until(
         expected.element_present(*self._data_roaming_enabled_label_locator))
     Wait(self.marionette).until(expected.element_displayed(element))
     Wait(self.marionette).until(expected.element_displayed(element) and expected.element_enabled(element))
     element.tap()
     return self.data_prompt
开发者ID:pottierg,项目名称:gaia,代码行数:7,代码来源:cell_data.py

示例9: tap_auth_numbers

 def tap_auth_numbers(self):
     element = self.marionette.find_element(*self._auth_number_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(
         *self._auth_number_page_locator))
开发者ID:DouglasSherk,项目名称:gaia,代码行数:7,代码来源:call_settings.py

示例10: tap_sim_1

 def tap_sim_1(self):
     element = self.marionette.find_element(*self._sim_1_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(
         *self._call_settings_page_locator))
开发者ID:DouglasSherk,项目名称:gaia,代码行数:7,代码来源:call_settings.py

示例11: confirm_network_type

 def confirm_network_type(self):
     element = self.marionette.find_element(*self._network_type_confirm_button_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     self.apps.switch_to_displayed_app()
     Wait(self.marionette).until(expected.element_displayed(*self._network_type_selector_locator))
开发者ID:anubhav7495,项目名称:gaia,代码行数:7,代码来源:sim_settings.py

示例12: select_roaming_protocol

 def select_roaming_protocol(self):
     element = self.marionette.find_element(*self._roaming_protocol_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     element.tap()
     self.marionette.switch_to_frame()
     Wait(self.marionette).until(expected.element_displayed(
         *self._apn_selector_confirm_button_locator))
开发者ID:anubhav7495,项目名称:gaia,代码行数:8,代码来源:sim_settings.py

示例13: tap_voicemail

 def tap_voicemail(self):
     element = self.marionette.find_element(*self._voicemail_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and expected.element_enabled(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(*self._voicemail_number_locator))
     self.marionette.switch_to_frame()
     Wait(self.marionette).until(lambda m: self.keyboard.is_keyboard_displayed)
     self.apps.switch_to_displayed_app()
开发者ID:jorrete,项目名称:gaia,代码行数:8,代码来源:call_settings.py

示例14: tap_sim_1

    def tap_sim_1(self):
        element = self.marionette.find_element(*self._sim_1_locator)
        Wait(self.marionette).until(expected.element_displayed(element) and expected.element_enabled(element))
        element.tap()
        Wait(self.marionette).until(expected.element_displayed(*self._call_settings_page_locator))

        menu_item = self.marionette.find_element(*self._caller_id_menu_item_locator)
        Wait(self.marionette, timeout=120).until(lambda m: not menu_item.get_attribute("aria-disabled"))
开发者ID:nullaus,项目名称:gaia,代码行数:8,代码来源:call_settings.py

示例15: tap_send

 def tap_send(self, timeout=120):
     send = Wait(self.marionette).until(
         expected.element_present(*self._send_message_button_locator))
     Wait(self.marionette).until(expected.element_enabled(send))
     send.tap()
     self.wait_for_element_not_present(*self._message_sending_locator, timeout=timeout)
     from gaiatest.apps.messages.regions.message_thread import MessageThread
     return MessageThread(self.marionette)
开发者ID:RobinvanKaathoven,项目名称:gaia,代码行数:8,代码来源:new_message.py


注:本文中的marionette_driver.expected.element_enabled函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。