• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python expected.element_enabled函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: tap_change_passcode

 def tap_change_passcode(self):
     element = self.marionette.find_element(*self._change_passcode_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and expected.element_enabled(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(*self._passcode_page_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


示例17: tap_call_barring_all

 def tap_call_barring_all(self):
     element = self.marionette.find_element(*self._call_barring_all_switch_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_barring_all_cancel_button_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


示例18: tap_forward_unanswered

 def tap_forward_unanswered(self):
     element = self.marionette.find_element(*self._call_forwarding_unanswered_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_unanswered_page_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


示例19: tap_caller_id_selection

    def tap_caller_id_selection(self):
        menu_item = self.marionette.find_element(*self._caller_id_menu_item_locator)
        Wait(self.marionette).until(lambda m: not menu_item.get_attribute("aria-disabled"))

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


示例20: tap_select_button

    def tap_select_button(self):
        select = self.marionette.find_element(*self._select_button_locator)
        Wait(self.marionette).until(expected.element_enabled(select))
        self.tap_element_from_system_app(select)

        # Fall back to app beneath the picker
        Wait(self.marionette).until(lambda m: self.apps.displayed_app.name != self.name)
        self.apps.switch_to_displayed_app()
开发者ID:WuChengLin,项目名称:gaia-1,代码行数:8,代码来源:app.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python expected.element_not_displayed函数代码示例发布时间:2022-05-27
下一篇:
Python expected.element_displayed函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap