Package net.thucydides.core.annotations.locators

Examples of net.thucydides.core.annotations.locators.SmartAjaxElementLocator.findElement()


    @Test(timeout = 5000)
    public void should_find_element_immediately_if_a_previous_step_has_failed() {

        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);
        StepEventBus.getEventBus().stepFailed(failure);
        locator.findElement();
    }

    @Rule
    public ExpectedException expectedException = ExpectedException.none();
View Full Code Here


        expectedException.expect(NoSuchElementException.class);
        expectedException.expectMessage(containsString("Timed out after 1 second"));

        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 1);
        locator.findElement();
    }

}
View Full Code Here

    @Test(timeout = 5000)
    public void should_find_element_immediately_if_a_previous_step_has_failed() {

        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);
        StepEventBus.getEventBus().stepFailed(failure);
        locator.findElement();
    }

    @Test(timeout = 5000)
    public void should_find_elements_immediately_if_a_previous_step_has_failed() {
        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);
View Full Code Here

        expectedException.expect(NoSuchElementException.class);
        expectedException.expectMessage(containsString("Timed out after 1 second"));

        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 1);
        locator.findElement();
    }

    @Test
    public void should_wait_for_find_elements_if_no_previous_step_has_failed() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.