Package org.jboss.arquillian.warp

Examples of org.jboss.arquillian.warp.Activity


    public void testLoginSuccess() {
        browser.navigate().to(contextPath + "login.do");
        browser.findElement(By.id("login")).sendKeys("warp");
        browser.findElement(By.id("password")).sendKeys("warp");

        Warp.initiate(new Activity() {

            @Override
            public void perform() {

                browser.findElement(By.id("loginForm")).submit();
View Full Code Here


     */
    @Test
    @RunAsClient
    public void test() {

        Warp.initiate(new Activity() {

            @Override
            public void perform() {

                browser.navigate().to(contextPath + "error.do");
View Full Code Here

     */
    @Test
    @RunAsClient
    public void test() {

        Warp.initiate(new Activity() {

            @Override
            public void perform() {
                browser.navigate().to(contextPath + "welcome.do");
            }
View Full Code Here

    public void render_all_should_replace_all_page_content() {
        browser.get(contextPath.toExternalForm());
        assertEquals("0", counter.getText());

        Warp
            .initiate(new Activity() {
                public void perform() {
                    guardAjax(button).click();
                }
            })
            .group()
View Full Code Here

    public void button_replaced_with_render_all_should_keep_working() {
        browser.get(contextPath.toExternalForm());
        assertEquals("0", counter.getText());

        Warp
            .initiate(new Activity() {
                public void perform() {
                    guardAjax(button).click();
                }
            })
            .observe(request().uri().contains("index"))
            .inspect(new IncrementCounter());

        assertEquals("counter should be incremented and rendered during render=@all", "1", counter.getText());

        Warp
            .initiate(new Activity() {
                public void perform() {
                    guardAjax(button).click();
                }
            })
            .observe(request().uri().contains("index"))
View Full Code Here

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

        Warp
            .initiate(new Activity() {
                public void perform() {
                    guardAjax(button).click();
                }
            })
            .group()
View Full Code Here

    @Test
    public void test() throws ParserConfigurationException, SAXException, IOException {
        browser.get(contextPath.toExternalForm());

        Warp.initiate(new Activity() {
            public void perform() {
                button.click();
            }
        }).inspect(new Inspection() {
            private static final long serialVersionUID = 1L;
View Full Code Here

    }


    public void testSimplePush() {
        Warp
            .initiate(new Activity() {

                    @Override
                    public void perform() {
                        driver.navigate().to(contextPath);
                    }
View Full Code Here

    @Test
    @RunAsClient
    public void should_include_client_window_id_into_request_header() {
        browser.navigate().to(contextPath);
        Warp
            .initiate(new Activity() {

                @Override
                public void perform() {
                    Graphene.guardAjax(inputText).sendKeys("RichFaces");
                }
View Full Code Here

    }

    @Test
    public void jsf_ajax_should_trigger_script_added_by_JavaScriptService() {
        driver.navigate().to(contextPath);
        Warp.initiate(new Activity() {
            public void perform() {
                guardAjax(jsfAjax).click();
            }
        }).observe(request().uri().contains("index.xhtml")).inspect(new AddScriptViaJavaScriptService());
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.warp.Activity

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.