public interface BrowserManager extends Manager
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.interactions.Actions |
actionBuilder()
This method grants access to a global action builder.
|
Usable |
getBrowser()
Returns the
Browser set by the BrowserDriver class instancing. |
org.openqa.selenium.Capabilities |
getCapabilities()
Gets the current browser's capabilities.
|
String |
getSessionId()
Gets the current browser's session id.
|
String |
getVersion() |
boolean |
hasQuit()
.
|
void |
postInstantiation()
Called immediately after the browser is instantiated.
|
void |
sleep(long timeout)
Deprecated.
'sleep' is considered to be a bad design practice.
|
void postInstantiation()
@Deprecated void sleep(long timeout) throws InterruptedException
use waitUntil
instead since pausing threads is
not recommended by Selenium.
timeout
- How long the browser waits in milliseconds.InterruptedException
- thrown if sleep interrupts the thread.org.openqa.selenium.Capabilities getCapabilities()
String getSessionId()
String getVersion()
boolean hasQuit()
org.openqa.selenium.interactions.Actions actionBuilder()
Note if pending actions are left unbuilt/unperformed, adding new actions will be appended to the queue instead of starting a new action set.
Copyright © 2019. All rights reserved.