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 |
|---|---|
void |
disableLogs() |
static browserType.BrowserType |
getBrowser()
set browser through maven using -D command eg.
|
static 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.
|
static boolean |
isChrome() |
static boolean |
isFirefox() |
static boolean |
isInternetExplorer() |
static boolean |
isMicrosoftEdge() |
static 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 disableLogs()
public void setWebCapabilties()
public org.openqa.selenium.remote.DesiredCapabilities getCapability()
public DriverOption getDriverOption()
public String getUrl(String app, String defaultUrl)
public static browserType.BrowserType getBrowser()
public static String getBrowserName()
public static boolean isChrome()
public static boolean isFirefox()
public static boolean isInternetExplorer()
public static boolean isSafari()
public static boolean isMicrosoftEdge()
public String getDriverVersion()
public driverType.DriverType getWebDriverType()
public static boolean printWebDriverVersionHelp(Exception e)
e - Copyright © 2020. All rights reserved.