Package org.jboss.arquillian.graphene.page.document

Examples of org.jboss.arquillian.graphene.page.document.Document


        Resource.inCurrentPackage().find("sample.html").loadPage(browser, contextRoot);
    }

    @Test
    public void testWithoutSources() {
        Document document = JSInterfaceFactory.create(context, Document.class);
        List<WebElement> elements = document.getElementsByTagName("html");
        Assert.assertNotNull(elements);
        Assert.assertEquals(1, elements.size());
    }
View Full Code Here


        Resource.inCurrentPackage().find("sample.html").loadPage(browser, contextRoot);
    }

    @Test
    public void test() {
        Document document = JSInterfaceFactory.create(context, Document.class);
        String title = document.getTitle();
        assertNotNull(title);
        assertEquals("Hello World!", title.trim());
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.graphene.page.document.Document

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.