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


Python System.wait_for_system_banner_not_displayed方法代码示例

本文整理汇总了Python中gaiatest.apps.system.app.System.wait_for_system_banner_not_displayed方法的典型用法代码示例。如果您正苦于以下问题:Python System.wait_for_system_banner_not_displayed方法的具体用法?Python System.wait_for_system_banner_not_displayed怎么用?Python System.wait_for_system_banner_not_displayed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gaiatest.apps.system.app.System的用法示例。


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

示例1: setUp

# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_system_banner_not_displayed [as 别名]
    def setUp(self):
        GaiaTestCase.setUp(self)
        self.connect_to_local_area_network()

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()

        self.test_data = {
            'name': 'packagedapp1',
            'url': self.marionette.absolute_url('webapps/packaged1/manifest.webapp'),
            'title': 'Packaged app1'}

        # Install app
        self.marionette.execute_script(
            'navigator.mozApps.installPackage("%s")' % self.test_data['url'])

        # Confirm the installation and wait for the app icon to be present
        confirm_install = ConfirmInstall(self.marionette)
        confirm_install.tap_confirm()

        # Wait for the notification to disappear
        system = System(self.marionette)
        system.wait_for_system_banner_displayed()
        system.wait_for_system_banner_not_displayed()

        self.apps.switch_to_displayed_app()
        self.homescreen.wait_for_app_icon_present(self.test_data['name'])
开发者ID:AutomatedTester,项目名称:gaia,代码行数:29,代码来源:test_homescreen_launch_app_packaged.py

示例2: setUp

# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_system_banner_not_displayed [as 别名]
    def setUp(self):
        GaiaTestCase.setUp(self)
        self.connect_to_network()

        # Turn off geolocation prompt for smart collections
        self.apps.set_permission('Smart Collections', 'geolocation', 'deny')

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()

        if not self.apps.is_app_installed(self.APP_NAME):

            # Install app
            self.marionette.execute_script(
                'navigator.mozApps.install("%s")' % self.MANIFEST)

            # Confirm the installation and wait for the app icon to be present
            confirm_install = ConfirmInstall(self.marionette)
            confirm_install.tap_confirm()

            # Wait for the notification to disappear
            system = System(self.marionette)
            system.wait_for_system_banner_displayed()
            system.wait_for_system_banner_not_displayed()

        self.apps.switch_to_displayed_app()
        self.homescreen.wait_for_app_icon_present(self.APP_NAME)
开发者ID:AkshayTiwari,项目名称:gaia,代码行数:29,代码来源:test_homescreen_launch_app.py

示例3: setUp

# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_system_banner_not_displayed [as 别名]
    def setUp(self):
        GaiaTestCase.setUp(self)
        self.connect_to_network()

        # Turn off geolocation prompt for smart collections
        self.apps.set_permission('Smart Collections', 'geolocation', 'deny')

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()

        self.test_data = {
            'name': 'Mozilla QA WebRT Tester',
            'url': self.marionette.absolute_url('webapps/mozqa.com/manifest.webapp'),
            'title': 'Directory listing for /'}

        # Install app
        self.marionette.execute_script(
            'navigator.mozApps.install("%s")' % self.test_data['url'])

        # Confirm the installation and wait for the app icon to be present
        confirm_install = ConfirmInstall(self.marionette)
        confirm_install.tap_confirm()

        # Wait for the notification to disappear
        system = System(self.marionette)
        system.wait_for_system_banner_displayed()
        system.wait_for_system_banner_not_displayed()

        self.apps.switch_to_displayed_app()
        self.homescreen.wait_for_app_icon_present(self.test_data['name'])
开发者ID:mwargers,项目名称:gaia,代码行数:32,代码来源:test_homescreen_launch_app.py

示例4: install_link

# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_system_banner_not_displayed [as 别名]
    def install_link(self):
        element = Wait(self.marionette, timeout=20, interval=1).until(
            expected.element_present(*self._addon_install_locator))
        Wait(self.marionette).until(expected.element_displayed(element))
        element.tap()

        confirm_install = ConfirmInstall(self.marionette)
        confirm_install.tap_confirm()

        system = System(self.marionette)
        system.wait_for_system_banner_displayed()
        system.wait_for_system_banner_not_displayed()

        self.apps.switch_to_displayed_app()
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:16,代码来源:app.py

示例5: setUp

# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_system_banner_not_displayed [as 别名]
    def setUp(self):
        GaiaTestCase.setUp(self)
        self.connect_to_local_area_network()

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()

        self.test_data = {
            'name': 'Mozilla QA WebRT Tester',
            'manifest': self.marionette.absolute_url('webapps/mozqa.com/manifest.webapp')
        }

        self.apps.install(self.test_data['manifest'])

        # Wait for the notification to disappear
        system = System(self.marionette)
        system.wait_for_system_banner_displayed()
        system.wait_for_system_banner_not_displayed()

        self.apps.switch_to_displayed_app()
        self.homescreen.wait_for_app_icon_present(self.test_data['manifest'])
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:23,代码来源:test_homescreen_launch_app.py

示例6: setUp

# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_system_banner_not_displayed [as 别名]
    def setUp(self):
        GaiaTestCase.setUp(self)
        self.connect_to_local_area_network()

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()

        self.test_data = {
            'name': 'packagedapp1',
            'manifest_url': self.marionette.absolute_url('webapps/packaged1/manifest.webapp'),
            'title': 'Packaged app1'}

        # Install app
        self.apps.install_package(self.test_data['manifest_url'])

        # Wait for the notification to disappear
        system = System(self.marionette)
        system.wait_for_system_banner_displayed()
        system.wait_for_system_banner_not_displayed()

        self.apps.switch_to_displayed_app()
        self.homescreen.wait_for_app_icon_present(self.test_data['manifest_url'])
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:24,代码来源:test_homescreen_launch_app_packaged.py


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