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


Python Home.click_learn_more方法代码示例

本文整理汇总了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)
开发者ID:sajith93,项目名称:Addon-Tests,代码行数:12,代码来源:test_home.py

示例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)
开发者ID:adini121,项目名称:Addon-Tests,代码行数:13,代码来源:test_home.py

示例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)
开发者ID:Marlena,项目名称:Addon-Tests,代码行数:16,代码来源:test_home.py


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