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

Python expected.element_not_displayed函数代码示例

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

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



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

示例1: tap_back_button

 def tap_back_button(self):
     element = Wait(self.marionette).until(
         expected.element_present(*self._test_panel_header_locator))
     Wait(self.marionette).until(expected.element_displayed(element))
     # TODO: remove tap with coordinates after Bug 1061698 is fixed
     element.tap(25, 25)
     Wait(self.marionette).until(expected.element_not_displayed(element))
开发者ID:AaskaShah,项目名称:gaia,代码行数:7,代码来源:app.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_save_event

 def tap_save_event(self):
     event_start_time = self.marionette.find_element(*self._event_start_time_value_locator).text
     event_start_date = self.marionette.find_element(*self._event_start_date_value_locator).text
     el = self.marionette.find_element(*self._modify_event_view_locator)
     self.marionette.find_element(*self._save_event_button_locator).tap()
     Wait(self.marionette).until(expected.element_not_displayed(el))
     return datetime.strptime(event_start_time + event_start_date, '%I:%M %p%m/%d/%Y')
开发者ID:Anirudh0,项目名称:gaia,代码行数:7,代码来源:event.py


示例4: tap_settings

 def tap_settings(self):
     settings = self.marionette.find_element(*self._settings_button_locator)
     Wait(self.marionette).until(expected.element_displayed(settings))
     settings.tap()
     Wait(self.marionette).until(expected.element_not_displayed(settings))
     from gaiatest.apps.contacts.regions.settings_form import SettingsForm
     return SettingsForm(self.marionette)
开发者ID:TheHollidayInn,项目名称:gaia,代码行数:7,代码来源:app.py


示例5: tap_tile_view_button

    def tap_tile_view_button(self):
        fullscreen = self.marionette.find_element(*self._fullscreen_view_locator)
        self.marionette.find_element(*self._tile_view_locator).tap()
        Wait(self.marionette).until(expected.element_not_displayed(fullscreen))
        from gaiatest.apps.gallery.app import Gallery

        return Gallery(self.marionette)
开发者ID:behappycc,项目名称:b2g-monkey,代码行数:7,代码来源:fullscreen_image.py


示例6: confirm_turnon_options

 def confirm_turnon_options(self):
     self.marionette.switch_to_frame()
     close_btn = self.marionette.find_element(By.CSS_SELECTOR, 'button.value-option-confirm')
     close_btn.tap()
     Wait(self.marionette).until(expected.element_not_displayed(close_btn))
     self.apps.switch_to_displayed_app()
     Wait(self.marionette).until(expected.element_displayed(*self._power_save_checkbox_locator))
开发者ID:Cwiiis,项目名称:gaia,代码行数:7,代码来源:battery.py


示例7: tap_next_to_wifi_section

 def tap_next_to_wifi_section(self):
     progress = self.marionette.find_element(*self._loading_overlay_locator)
     self.tap_next()
     Wait(self.marionette).until(expected.element_not_displayed(progress))
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._section_wifi_locator))))
开发者ID:Anirudh0,项目名称:gaia,代码行数:7,代码来源:app.py


示例8: a11y_click_save_event

 def a11y_click_save_event(self):
     event_start_time = self.marionette.find_element(*self._event_start_time_value_locator).text
     event_start_date = self.marionette.find_element(*self._event_start_date_value_locator).text
     el = self.marionette.find_element(*self._modify_event_view_locator)
     self.accessibility.click(self.marionette.find_element(*self._save_event_button_locator))
     Wait(self.marionette).until(expected.element_not_displayed(el))
     return datetime.strptime(event_start_time + event_start_date, "%I:%M %p%m/%d/%Y")
开发者ID:nullaus,项目名称:gaia,代码行数:7,代码来源:event.py


示例9: reject_call

 def reject_call(self):
     Wait(self.marionette).until(
         expected.element_displayed(*self._lockscreen_handle_locator))
     self._handle_incoming_call('reject')
     self.marionette.switch_to_frame()
     Wait(self.marionette).until(
         expected.element_not_displayed(*self._call_screen_locator))
开发者ID:Cwiiis,项目名称:gaia,代码行数:7,代码来源:call_screen.py


示例10: tap_done

 def tap_done(self):
     time_picker = self.marionette.find_element(*self._time_picker_locator)
     self.marionette.find_element(*self._done_button_locator).tap()
     Wait(self.marionette).until(expected.element_not_displayed(time_picker))
     # TODO: wait for the time picker to fade out Bug 1038186
     time.sleep(2)
     self.apps.switch_to_displayed_app()
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:7,代码来源:time_picker.py


示例11: cancel_get_more_home_screen

 def cancel_get_more_home_screen(self):
     self.marionette.find_element(*self._pick_cancel_button_locator).tap()
     Wait(self.marionette).until(expected.element_not_displayed(*self._pick_cancel_button_locator))
     self.apps.switch_to_displayed_app()
     element = Wait(self.marionette).until(
         expected.element_present(*self._change_homescreen_page_locator))
     Wait(self.marionette).until(expected.element_displayed(element))
开发者ID:eliperelman,项目名称:gaia,代码行数:7,代码来源:homescreen_settings.py


示例12: tap_lets_go

    def tap_lets_go(self):
        self.marionette.find_element(*self._go_button_locator).tap()
        Wait(self.marionette).until(expected.element_not_displayed(*self._ftu_frame_locator))
        self.apps.switch_to_displayed_app()

        # TODO Some wait for Usage to fully initialize
        time.sleep(2)
开发者ID:behappycc,项目名称:b2g-monkey,代码行数:7,代码来源:ftu_step3.py


示例13: select

    def select(self, match_string):
        # This needs to be duplicated from base.py because when we return from the frame
        # we don't return to the Settings app in its initial state,
        # so the wait for in its launch method times out

        # have to go back to top level to get the B2G select box wrapper
        self.marionette.switch_to_frame()

        Wait(self.marionette).until(
            expected.elements_present(
                By.CSS_SELECTOR, '.value-selector-container li'))

        options = self.marionette.find_elements(By.CSS_SELECTOR, '.value-selector-container li')
        close = self.marionette.find_element(By.CSS_SELECTOR, 'button.value-option-confirm')

        # loop options until we find the match
        for li in options:
            if match_string == li.text:
                li.tap()
                break
        else:
            raise Exception("Element '%s' could not be found in select wrapper" % match_string)

        close.tap()
        Wait(self.marionette).until(expected.element_not_displayed(close))

        # TODO we should find something suitable to wait for, but this goes too
        # fast against desktop builds causing intermittent failures
        time.sleep(0.2)

        # now back to app
        self.apps.switch_to_displayed_app()
开发者ID:AaskaShah,项目名称:gaia,代码行数:32,代码来源:battery.py


示例14: select

    def select(self, match_string):
        # This needs to be duplicated from base.py for a few reasons:
        # 1. When we return from the frame we don't return to the Settings app in its initial state,
        #    so the wait for in its launch method times out
        # 2. We need to use in instead of == on the match text because of the directional strings

        # have to go back to top level to get the B2G select box wrapper
        self.marionette.switch_to_frame()

        options = Wait(self.marionette).until(expected.elements_present(
            By.CSS_SELECTOR, '.value-selector-container li'))
        close = self.marionette.find_element(By.CSS_SELECTOR, 'button.value-option-confirm')

        # loop options until we find the match
        for li in options:
            if match_string in li.text:
                self.marionette.execute_script('arguments[0].scrollIntoView(false);', [li])
                li.tap()
                break
        else:
            raise Exception("Element '%s' could not be found in select wrapper" % match_string)

        close.tap()
        Wait(self.marionette).until(expected.element_not_displayed(close))

        # TODO we should find something suitable to wait for, but this goes too
        # fast against desktop builds causing intermittent failures
        time.sleep(0.2)

        # now back to app
        self.apps.switch_to_displayed_app()
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:31,代码来源:language.py


示例15: cancel_pick_wallpaper

 def cancel_pick_wallpaper(self):
     self.marionette.switch_to_frame()
     self.marionette.find_element(*self._pick_cancel_button_locator).tap()
     Wait(self.marionette).until(expected.element_not_displayed(*self._pick_cancel_button_locator))
     self.apps.switch_to_displayed_app()
     element = Wait(self.marionette).until(
         expected.element_present(*self._wallpaper_preview_locator))
     Wait(self.marionette).until(expected.element_displayed(element))
开发者ID:eliperelman,项目名称:gaia,代码行数:8,代码来源:homescreen_settings.py


示例16: tap_back

 def tap_back(self):
     el = self.marionette.find_element(*self._details_header_locator)
     Wait(self.marionette).until(expected.element_displayed(el))
     # TODO: remove tap with coordinates after Bug 1061698 is fixed
     el.tap(25, 25)
     Wait(self.marionette).until(expected.element_not_displayed(el))
     from gaiatest.apps.contacts.app import Contacts
     return Contacts(self.marionette)
开发者ID:DouglasSherk,项目名称:gaia,代码行数:8,代码来源:contact_details.py


示例17: tap_save_event

    def tap_save_event(self):
        date_str = self.marionette.find_element(*self._event_start_date_value_locator).get_attribute("data-date")
        el = self.marionette.find_element(*self._modify_event_view_locator)
        self.marionette.find_element(*self._save_event_button_locator).tap()
        Wait(self.marionette).until(expected.element_not_displayed(el))

        date_list = date_str.split()
        return date_list[1] + " " + date_list[2]
开发者ID:nullaus,项目名称:gaia,代码行数:8,代码来源:event.py


示例18: tap_edit

 def tap_edit(self):
     edit = Wait(self.marionette).until(expected.element_present(
         *self._edit_contact_button_locator))
     Wait(self.marionette).until(expected.element_displayed(edit))
     edit.tap()
     Wait(self.marionette).until(expected.element_not_displayed(edit))
     from gaiatest.apps.contacts.regions.contact_form import EditContact
     return EditContact(self.marionette)
开发者ID:AaskaShah,项目名称:gaia,代码行数:8,代码来源:contact_details.py


示例19: __init__

 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(lambda m: self.apps.displayed_app.src == self._src)
     self.apps.switch_to_displayed_app()
     loading = self.marionette.find_element(*self._collection_loading_locator)
     Wait(self.marionette).until(expected.element_displayed(loading))
     # See Bug 1162112, Marionette Wait() polling without interval might be interfering network load
     Wait(self.marionette, timeout=30, interval=5).until(expected.element_not_displayed(loading))
开发者ID:AaskaShah,项目名称:gaia,代码行数:8,代码来源:collections_activity.py


示例20: tap_switch_to_camera

 def tap_switch_to_camera(self):
     self.marionette.find_element(*self._camera_locator).tap()
     from gaiatest.apps.camera.app import Camera
     camera_app = Camera(self.marionette)
     camera_app.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     camera_app.wait_for_capture_ready()
     Wait(self.marionette).until(expected.element_not_displayed(*self._loading_screen_locator))
     return camera_app
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:9,代码来源:fullscreen_image.py



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Python expected.element_not_present函数代码示例发布时间:2022-05-27
下一篇:
Python expected.element_enabled函数代码示例发布时间: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