Package ru.yandex.qatools.htmlelements.testpages

Examples of ru.yandex.qatools.htmlelements.testpages.SearchPage


public class LazyInitializationTest {
    private static final String TEST_TEXT = "Test text";

    @Test
    public void testEveryAccessInitialization() {
        SearchPage searchPage = new SearchPage();

        searchPage.getSearchArrow().getRequestInput().sendKeys(TEST_TEXT);
        searchPage.getSearchArrow().getSearchButton().click();

        searchPage.getSearchArrow().getRequestInput().sendKeys(TEST_TEXT);
        searchPage.getSearchArrow().getSearchButton().click();
    }
View Full Code Here


        company.getText();
    }

    @Test(expected = MyException.class)
    public void forPageObject() {
        SearchPage searchPage = new SearchPage(new MyElementLocatorFactory(webDriver));
        searchPage.getLogo().getText();
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.htmlelements.testpages.SearchPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.