本文整理汇总了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'])
示例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)
示例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'])
示例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()
示例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'])
示例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'])