Package org.jboss.arquillian.drone.spi

Examples of org.jboss.arquillian.drone.spi.DroneContext


        if (!dronePoint.conformsTo(WebDriver.class)) {
            // This Drone is not instance of WebDriver, we will not resize the window
            return;
        }
        DroneContext context = droneContext.get();

        WebDriver driver = context.get(dronePoint).getInstanceAs(WebDriver.class);

        // let's get browser configuration
        Validate.stateNotNull(context, "DroneContext must not be null");
        WebDriverConfiguration configuration = context.get(dronePoint).getConfigurationAs(WebDriverConfiguration.class);
        Validate.stateNotNull(configuration, "WebDriver configuration must not be null");

        String dimensions = configuration.getDimensions();

        if (dimensions != null) {
View Full Code Here


        // check if any parameter is @Drone annotated
        Method method = event.getTestMethod();
        Map<Integer, Annotation[]> droneParameters = SecurityActions.getParametersWithAnnotation(method, Drone.class);

        DroneContext context = droneContext.get();
        Validate.stateNotNull(context, "DroneContext should not be null");

        DroneScopeChecker scopeChecker = new DroneScopeChecker();

        Class<?>[] parameters = method.getParameterTypes();
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.drone.spi.DroneContext

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.