Examples of ElementIsFocused


Examples of org.richfaces.utils.focus.ElementIsFocused

    }

    @Test
    public void when_there_are_inputs_with_tabindex_then_the_lowest_tabindex_will_obtain_focus() {
        browser.get(contextPath.toExternalForm());
        Graphene.waitGui().until(new ElementIsFocused(input1));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

    }

    @Test
    public void when_there_are_no_tabindex_components_then_first_input_will_obtain_focus() {
        browser.get(contextPath.toExternalForm() + "no-tabindex.jsf");
        Graphene.waitGui().until(new ElementIsFocused(input1));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

    @Test
    public void when_page_is_loaded_initially_then_first_input_from_first_form_should_gain_focus() {
        browser.get(contextPath.toExternalForm());

        Graphene.waitGui().until(new ElementIsFocused(form1.getInput1()));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

    @Test
    public void when_form_is_submitted_then_first_input_from_this_form_should_gain_focus() {
        browser.get(contextPath.toExternalForm());

        form2.submit();
        Graphene.waitGui().until(new ElementIsFocused(form2.getInput2()));

        form1.submit();
        Graphene.waitGui().until(new ElementIsFocused(form1.getInput2()));

        form3.submit();
        Graphene.waitGui().until(new ElementIsFocused(form3.getInput1()));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

    @Test
    public void when_ajax_is_sent_then_first_input_from_submitted_form_should_gain_focus() {
        browser.get(contextPath.toExternalForm());

        form2.submitAjax();
        waitAjax().until(new ElementIsFocused(form2.getInput2()));

        form1.submitAjax();
        waitAjax().until(new ElementIsFocused(form1.getInput2()));

        form3.submitAjax();
        waitAjax().until(new ElementIsFocused(form3.getInput1()));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

        // when
        input2.click();
        guardHttp(submitButton).click();

        // then
        Graphene.waitGui().until(new ElementIsFocused(input2));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

        // when
        input2.click();
        guardAjax(ajaxJSF).click();

        // then
        waitAjax().until(new ElementIsFocused(input2));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

        // when
        input2.click();
        guardAjax(ajaxRF).click();

        // then
        waitAjax().until(new ElementIsFocused(input2));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

        // when
        input2.click();
        guardAjax(ajaxCommandButton).click();

        // then
        waitAjax().until(new ElementIsFocused(input2));
    }
View Full Code Here

Examples of org.richfaces.utils.focus.ElementIsFocused

        // when
        input2.click();

        // then
        guardAjax(ajax).click();
        waitAjax().until(new ElementIsFocused(null));
    }
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.