public class WebCapability extends Object
| Modifier and Type | Field and Description |
|---|---|
org.openqa.selenium.remote.DesiredCapabilities |
capabilities |
DriverOption |
options |
| 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() |
DriverOption |
getDriverOption() |
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() |
boolean |
isInternetExplorer() |
boolean |
isSafari() |
static boolean |
printWebDriverVersionHelp(Exception e)
catch errors where browser version is not detected properly
|
void |
setWebCapabilties()
set capabilties with prefix android.capabilties.
|
WebCapability |
withBrowserOption()
sets capability for web based apps
|
public org.openqa.selenium.remote.DesiredCapabilities capabilities
public DriverOption options
public WebCapability withBrowserOption()
IOExceptionpublic void setWebCapabilties()
public org.openqa.selenium.remote.DesiredCapabilities getCapability()
public DriverOption getDriverOption()
public String getUrl(String app, String defaultUrl)
public browserType.BrowserType getBrowser()
public String getBrowserName()
public boolean isChrome()
public boolean isFirefox()
public boolean isInternetExplorer()
public boolean isSafari()
public String getDriverVersion()
public driverType.DriverType getWebDriverType()
public static boolean printWebDriverVersionHelp(Exception e)
e - Copyright © 2020. All rights reserved.