Package ru.yandex.qatools.htmlelements.element

Examples of ru.yandex.qatools.htmlelements.element.TextInput


        when(element.isEnabled()).thenReturn(false);
        return element;
    }

    public static TextInput mockTextInput(String enteredText) {
        TextInput textInput = mock(TextInput.class);
        when(textInput.getText()).thenReturn(enteredText);
        return textInput;
    }
View Full Code Here


public class HasEnteredTextTest {
    private static final String ENTERED_TEXT = "some text";

    @Test
    public void hasEnteredTextTest() {
        TextInput textInput = MockFactory.mockTextInput(ENTERED_TEXT);
        assertThat(textInput, hasEnteredText(ENTERED_TEXT));
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.htmlelements.element.TextInput

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.