public class WebUIDriver extends Object
Constructor and Description |
---|
WebUIDriver() |
WebUIDriver(String browser,
String mode) |
Modifier and Type | Method and Description |
---|---|
static void |
cleanUp() |
org.openqa.selenium.WebDriver |
createRemoteWebDriver(String browser,
String mode) |
org.openqa.selenium.WebDriver |
createWebDriver() |
String |
getBrowser() |
String |
getBrowserDownloadDir() |
String |
getBrowserVersion() |
String |
getChromeBinPath() |
String |
getChromeDriverPath() |
DriverConfig |
getConfig() |
int |
getExplicitWait() |
String |
getFfBinPath() |
String |
getFfProfilePath() |
String |
getHubUrl() |
String |
getIEDriverPath() |
double |
getImplicitWait() |
String |
getMode() |
static org.openqa.selenium.WebDriver |
getNativeWebDriver()
Returns native WebDriver which can be converted to RemoteWebDriver.
|
String |
getNode() |
String |
getNtlmAuthTrustedUris() |
String |
getOperaProfilePath() |
String |
getOutputDirectory() |
int |
getPageLoadTimeout() |
String |
getPlatform() |
String |
getProxyHost() |
String |
getUserAgentOverride() |
static org.openqa.selenium.WebDriver |
getWebDriver()
Get EventFiringWebDriver.
|
static org.openqa.selenium.WebDriver |
getWebDriver(Boolean isCreate)
Returns WebDriver instance Creates a new WebDriver Instance if it is null and isCreate is true.
|
IWebDriverFactory |
getWebDriverBuilder() |
int |
getWebSessionTimeout() |
static WebUIDriver |
getWebUIDriver()
Returns WebUIDriver instance Creates new WebUIDriver instance if it is null.
|
protected org.openqa.selenium.WebDriver |
handleListeners(org.openqa.selenium.WebDriver driver) |
boolean |
isEnableJavascript() |
boolean |
isSetAcceptUntrustedCertificates() |
boolean |
isSetAssumeUntrustedCertificateIssuer() |
static void |
main(String[] args) |
void |
setBrowser(String browser) |
void |
setBrowserDownloadDir(String browserDownloadDir) |
void |
setBrowserVersion(String browserVersion) |
void |
setChromeBinPath(String chromeBinPath) |
void |
setChromeDriverPath(String chromeDriverPath) |
void |
setConfig(DriverConfig config) |
void |
setEnableJavascript(Boolean enableJavascript) |
void |
setExplicitTimeout(int explicitWaitTimeout) |
void |
setFfBinPath(String ffBinPath) |
void |
setFfProfilePath(String ffProfilePath) |
void |
setHubUrl(String hubUrl) |
void |
setIEDriverPath(String ieDriverPath) |
void |
setImplicitlyWaitTimeout(double implicitTimeout) |
void |
setMode(String mode) |
void |
setNode(String node) |
void |
setNtlmAuthTrustedUris(String url) |
void |
setOperaProfilePath(String operaProfilePath) |
void |
setOutputDirectory(String outputDirectory) |
void |
setPageLoadTimeout(int pageLoadTimeout) |
void |
setPlatform(String platform) |
void |
setProxyHost(String proxyHost) |
void |
setSetAcceptUntrustedCertificates(boolean setAcceptUntrustedCertificates) |
void |
setSetAssumeUntrustedCertificateIssuer(boolean setAssumeUntrustedCertificateIssuer) |
void |
setUserAgentOverride(String userAgentOverride) |
static void |
setWebDriver(org.openqa.selenium.WebDriver driver)
Lets user set their own driver This can be retrieved as WebUIDriver.getWebDriver().
|
void |
setWebDriverBuilder(IWebDriverFactory builder) |
void |
setWebSessionTimeout(int webSessionTimeout) |
public String getNode()
public void setNode(String node)
public static void cleanUp()
public static org.openqa.selenium.WebDriver getNativeWebDriver()
public static org.openqa.selenium.WebDriver getWebDriver()
public static org.openqa.selenium.WebDriver getWebDriver(Boolean isCreate)
isCreate
- create webdriver or notpublic static WebUIDriver getWebUIDriver()
public static void setWebDriver(org.openqa.selenium.WebDriver driver)
driver
- public org.openqa.selenium.WebDriver createRemoteWebDriver(String browser, String mode) throws Exception
Exception
protected org.openqa.selenium.WebDriver handleListeners(org.openqa.selenium.WebDriver driver)
public org.openqa.selenium.WebDriver createWebDriver() throws Exception
Exception
public String getBrowser()
public String getPlatform()
public String getBrowserVersion()
public String getChromeBinPath()
public String getChromeDriverPath()
public DriverConfig getConfig()
public int getExplicitWait()
public String getFfBinPath()
public String getFfProfilePath() throws URISyntaxException
URISyntaxException
public String getOperaProfilePath() throws URISyntaxException
URISyntaxException
public void setOperaProfilePath(String operaProfilePath)
public String getHubUrl()
public String getIEDriverPath()
public double getImplicitWait()
public String getMode()
public String getOutputDirectory()
public String getNtlmAuthTrustedUris()
public void setNtlmAuthTrustedUris(String url)
public int getPageLoadTimeout()
public String getProxyHost()
public void setUserAgentOverride(String userAgentOverride)
public String getUserAgentOverride()
public IWebDriverFactory getWebDriverBuilder()
public int getWebSessionTimeout()
public static void main(String[] args)
public boolean isSetAcceptUntrustedCertificates()
public boolean isSetAssumeUntrustedCertificateIssuer()
public boolean isEnableJavascript()
public void setEnableJavascript(Boolean enableJavascript)
public void setBrowser(String browser)
public void setBrowserVersion(String browserVersion)
public void setPlatform(String platform)
public void setChromeBinPath(String chromeBinPath)
public void setBrowserDownloadDir(String browserDownloadDir)
public String getBrowserDownloadDir()
public void setChromeDriverPath(String chromeDriverPath)
public void setConfig(DriverConfig config)
public void setExplicitTimeout(int explicitWaitTimeout)
public void setFfBinPath(String ffBinPath)
public void setFfProfilePath(String ffProfilePath)
public void setHubUrl(String hubUrl)
public void setIEDriverPath(String ieDriverPath)
public void setImplicitlyWaitTimeout(double implicitTimeout)
public void setMode(String mode)
public void setOutputDirectory(String outputDirectory)
public void setPageLoadTimeout(int pageLoadTimeout)
public void setProxyHost(String proxyHost)
public void setSetAcceptUntrustedCertificates(boolean setAcceptUntrustedCertificates)
public void setSetAssumeUntrustedCertificateIssuer(boolean setAssumeUntrustedCertificateIssuer)
public void setWebDriverBuilder(IWebDriverFactory builder)
public void setWebSessionTimeout(int webSessionTimeout)
Copyright © 2018. All rights reserved.