All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pega.uiframework.factory.DriverFactory Maven / Gradle / Ivy

The newest version!
package com.pega.uiframework.factory;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * Created by mekak2 on 3/29/17.
 */

/**
 * Create WebDriver instance based on the capabilities passed.
 */
public interface DriverFactory
{
    /**
     * Create driver based on only capabilities passed.
     * 
     * @param caps
     *            - desired browser capabilities
     * @return - WebDriver instance
     */
    WebDriver createDriver(DesiredCapabilities caps);

    /**
     * Create RemoteWebDriver instance based on the capabilities passed.
     * 
     * @param remoteHubUrl
     *            - Selenium GRID url
     * @param caps
     *            - desired browser capabilities
     * @return - RemoteWebDriver instance
     * @throws MalformedURLException
     *             - throw this exception, if selenium hub url is not well
     *             formed
     */
    WebDriver createDriver(URL remoteHubUrl, DesiredCapabilities caps) throws MalformedURLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy