Package io.webdevice.support
Class ProtectedWebDriver
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebDriver
-
- io.webdevice.support.ProtectedWebDriver
-
- All Implemented Interfaces:
Supplier<Collection<String>>,org.openqa.selenium.HasCapabilities,org.openqa.selenium.interactions.HasInputDevices,org.openqa.selenium.interactions.Interactive,org.openqa.selenium.internal.FindsByClassName,org.openqa.selenium.internal.FindsByCssSelector,org.openqa.selenium.internal.FindsById,org.openqa.selenium.internal.FindsByLinkText,org.openqa.selenium.internal.FindsByName,org.openqa.selenium.internal.FindsByTagName,org.openqa.selenium.internal.FindsByXPath,org.openqa.selenium.JavascriptExecutor,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebDriver
public class ProtectedWebDriver extends org.openqa.selenium.remote.RemoteWebDriver implements Supplier<Collection<String>>
This class exists only to prevent sensitive capabilities from being leaked whenRemoteWebDriver.toString()is called on
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.When
-
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
-
-
Constructor Summary
Constructors Constructor Description ProtectedWebDriver(URL remoteAddress, org.openqa.selenium.Capabilities capabilities, Collection<String> confidential)ProtectedWebDriver(org.openqa.selenium.remote.CommandExecutor executor, org.openqa.selenium.Capabilities capabilities, Collection<String> confidential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>get()protected voidstartSession(org.openqa.selenium.Capabilities capabilities)-
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
builder, close, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, perform, quit, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFileDetector, setFoundBy, setLogLevel, setSessionId, switchTo, toString
-
-
-
-
Constructor Detail
-
ProtectedWebDriver
public ProtectedWebDriver(URL remoteAddress, org.openqa.selenium.Capabilities capabilities, Collection<String> confidential)
-
ProtectedWebDriver
public ProtectedWebDriver(org.openqa.selenium.remote.CommandExecutor executor, org.openqa.selenium.Capabilities capabilities, Collection<String> confidential)
-
-
Method Detail
-
get
public Collection<String> get()
- Specified by:
getin interfaceSupplier<Collection<String>>
-
startSession
protected void startSession(org.openqa.selenium.Capabilities capabilities)
- Overrides:
startSessionin classorg.openqa.selenium.remote.RemoteWebDriver
-
-