forked from vbarhate/OSAandSAST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WebDriverFactory.java
40 lines (32 loc) · 1.15 KB
/
WebDriverFactory.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.cx.automation.adk.selenium;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
/**
* Created by: iland
* Date: 5/6/2015
*/
public interface WebDriverFactory {
/**
* Get default WebDriver instance;
*
* @param browserType BrowserType enum (firefox, etc..)
* @return the desired browser
*/
public WebDriver createWebDriver(BrowserType browserType);
/**
* Get WebDriver instance with capabilities;
*
* @param browserType BrowserType enum (firefox, etc..)
* @param desiredCapabilities Selenium DesiredCapabilities
* @return the desired browser with his desired capabilities.
*/
public WebDriver createWebDriver(BrowserType browserType, DesiredCapabilities desiredCapabilities);
/**
*
* @param URL the URL of the selenium grid
* @param browserType rowserType enum (firefox, etc..)
* @return
*/
WebDriver createRemoteWebDriver(String URL,BrowserType browserType, DesiredCapabilities customCapabilities);
WebDriver createWebDriverManager(BrowserType browserType);
}