本文整理汇总了Python中pages.mobile.home.Home.click_learn_more方法的典型用法代码示例。如果您正苦于以下问题:Python Home.click_learn_more方法的具体用法?Python Home.click_learn_more怎么用?Python Home.click_learn_more使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.mobile.home.Home
的用法示例。
在下文中一共展示了Home.click_learn_more方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_that_checks_learn_more_link
# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_learn_more [as 别名]
def test_that_checks_learn_more_link(self, mozwebqa):
home = Home(mozwebqa)
Assert.true(home.is_the_current_page)
Assert.equal(u'Learn More\xbb', home.learn_more_text)
home.click_learn_more()
Assert.true(home.is_learn_more_msg_visible)
Assert.equal("Add-ons are applications that let you personalize Firefox with extra functionality and style. Whether you mistype the name of a website or can't read a busy page, there's an add-on to improve your on-the-go browsing.",
home.learn_more_msg_text)
示例2: test_that_checks_learn_more_link
# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_learn_more [as 别名]
def test_that_checks_learn_more_link(self, mozwebqa):
home = Home(mozwebqa)
assert home.is_the_current_page
assert u'Learn More\xbb' == home.learn_more_text
home.click_learn_more()
assert home.is_learn_more_msg_visible
assert ('Add-ons are applications that let you personalize Firefox '
'with extra functionality and style. Whether you mistype the '
'name of a website or can\'t read a busy page, there\'s an '
'add-on to improve your on-the-go browsing.' == home.learn_more_msg_text)
示例3: test_that_checks_the_header_menu
# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_learn_more [as 别名]
def test_that_checks_the_header_menu(self, mozwebqa):
home = Home(mozwebqa)
Assert.true(home.is_the_current_page)
Assert.equal('FIREFOX ADD-ONS', home.header_text)
Assert.equal('Return to the Firefox Add-ons homepage', home.header_title)
Assert.equal('Easy ways to personalize.', home.header_statement_text)
Assert.equal(u'Learn More\xbb', home.learn_more_text)
home.click_learn_more()
Assert.true(home.is_learn_more_msg_visible)
Assert.equal("Add-ons are applications that let you personalize Firefox with extra functionality and style. Whether you mistype the name of a website or can't read a busy page, there's an add-on to improve your on-the-go browsing.",
home.learn_more_msg_text)