Package net.thucydides.core.pages

Examples of net.thucydides.core.pages.WebElementFacade


    }

    @Test
    public void should_print_web_element_facade_without_a_webelement_in_a_readable_form() {

        WebElementFacade WebElement = WebElementFacadeImpl.wrapWebElement(driver, null, 0);
        assertThat(WebElement.toString(), is("<Undefined web element>"));
    }
View Full Code Here


    }

    @Test
    public void should_provide_a_fluent_api_for_entering_a_value_in_a_field_using_webelementfacade() {
        WebElement field = mock(WebElement.class);
        WebElementFacade facade = WebElementFacadeImpl.wrapWebElement(driver, field, 0L);
        BasicPageObject page = new BasicPageObject(driver);
        when(field.isEnabled()).thenReturn(true);
        when(field.getTagName()).thenReturn("input");

        page.enter("some value").into(facade);
View Full Code Here

TOP

Related Classes of net.thucydides.core.pages.WebElementFacade

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.