public class WebCapability extends Object
| Modifier and Type | Field and Description |
|---|---|
org.openqa.selenium.remote.DesiredCapabilities |
capabilities |
org.openqa.selenium.chrome.ChromeOptions |
chromeOptions |
| Constructor and Description |
|---|
WebCapability() |
| Modifier and Type | Method and Description |
|---|---|
browserType.BrowserType |
getBrowser()
set browser through maven using -D command eg.
|
String |
getBrowserName() |
org.openqa.selenium.remote.DesiredCapabilities |
getCapability() |
String |
getDriverVersion() |
String |
getUrl(String app,
String defaultUrl)
set url through maven using -D command eg.
|
driverType.DriverType |
getWebDriverType()
set driver through maven using -D command eg.
|
boolean |
isChrome() |
boolean |
isFirefox() |
WebCapability |
withBrowserCapability()
sets capability for web based apps
|
WebCapability |
withCapability(org.openqa.selenium.remote.DesiredCapabilities Capabilities) |
public org.openqa.selenium.remote.DesiredCapabilities capabilities
public org.openqa.selenium.chrome.ChromeOptions chromeOptions
public WebCapability withCapability(org.openqa.selenium.remote.DesiredCapabilities Capabilities)
public WebCapability withBrowserCapability()
IOExceptionpublic org.openqa.selenium.remote.DesiredCapabilities getCapability()
public String getUrl(String app, String defaultUrl)
public browserType.BrowserType getBrowser()
public String getBrowserName()
public boolean isChrome()
public boolean isFirefox()
public String getDriverVersion()
public driverType.DriverType getWebDriverType()
Copyright © 2019. All rights reserved.