Examples of GalenPageActionWait


Examples of net.mindengine.galen.suite.actions.GalenPageActionWait

   
   
    private MockedPage mockedPage = createMockedPage();
   
    @Test public void shouldWait_forAllElements() throws Exception {
        GalenPageActionWait wait = new GalenPageActionWait();
        wait.setTimeout(1000);
        wait.setUntilElements(asList(
                until(UntilType.VISIBLE, css("div.list")),
                until(UntilType.HIDDEN, id("qwe")),
                until(UntilType.EXIST, xpath("//div[@id='wqe']")),
                until(UntilType.GONE, css("qweqwewqee"))
                ));
        MockedBrowser browser = new MockedBrowser(null, null);
        browser.setMockedPage(mockedPage);
        wait.execute(new TestReport(), browser, null, null);
    }
View Full Code Here

Examples of net.mindengine.galen.suite.actions.GalenPageActionWait

        wait.execute(new TestReport(), browser, null, null);
    }
   
    @Test
    public void shouldThrowException() throws Exception {
        GalenPageActionWait wait = new GalenPageActionWait();
        wait.setTimeout(1000);
        wait.setUntilElements(asList(
                until(UntilType.HIDDEN, css("div.list")),
                until(UntilType.VISIBLE, id("qwe")),
                until(UntilType.GONE, xpath("//div[@id='wqe']")),
                until(UntilType.EXIST, css("qweqwewqee"))
                ));
        MockedBrowser browser = new MockedBrowser(null, null);
        browser.setMockedPage(mockedPage);
       
       
        TimeoutException exception = null;
        try {
            wait.execute(new TestReport(), browser, null, null);
        }
        catch(TimeoutException e) {
            exception = e;
        }
       
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.