Package org.jboss.arquillian.drone.webdriver.augmentation

Examples of org.jboss.arquillian.drone.webdriver.augmentation.AugmentingEnhancer


    public void whenBrowserIsCreatedThenCouldBeReused(@Drone @Reusable RemoteWebDriver driver)
            throws UnableReuseSessionException {

        driver.navigate().to(SERVER_URL.toString());

        new AugmentingEnhancer().deenhance(driver, Reusable.class); // without deenhancing we can't serialize capabilities

        Capabilities reusedCapabilities = serializeDeserialize(ReusedSession.createReusableCapabilities(driver
                .getCapabilities()));
        SessionId reusedSessionId = new SessionId(serializeDeserialize(driver.getSessionId().toString()));
View Full Code Here


    @Test
    public void whenBrowserIsCreatedAndQuitAndTriedToReuseThenItShouldThrowException(@Drone @Reusable RemoteWebDriver driver) {

        driver.navigate().to(SERVER_URL.toString());
        new AugmentingEnhancer().deenhance(driver, Reusable.class); // without deenhancing we can't serialize capabilities
        Capabilities reusedCapabilities = serializeDeserialize(ReusedSession.createReusableCapabilities(driver
                .getCapabilities()));
        SessionId reusedSessionId = new SessionId(serializeDeserialize(driver.getSessionId().toString()));
        driver.quit();
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.drone.webdriver.augmentation.AugmentingEnhancer

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.