com.pega.uiframework.factory.DriverFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pega-ui-testframework Show documentation
Show all versions of pega-ui-testframework Show documentation
Selenium/WebDriver Automation Framework
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