public class Session extends Object implements AutoCloseable, Selector, Keyboard, Mouse, Navigator, JavaScript, Sizzle, Dom
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate this browser window
|
void |
addEventListener(EventListener<?> eventListener) |
byte[] |
captureScreenshot() |
void |
close()
Close the this browser window
|
Session |
enableConsoleLog()
Redirects javascript console logs to slf4j
|
Session |
enableDetailLog()
Redirects runtime logs (network, security, storage etc..) to slf4j
|
Session |
enableNetworkLog()
Redirects network logs to slf4j
|
boolean |
equals(Object obj) |
Command |
getCommand() |
String |
getFrameId() |
String |
getId() |
Session |
getThis() |
int |
hashCode() |
boolean |
isConnected() |
Session |
navigate(String url) |
void |
onTerminate(TerminateListener terminateListener) |
void |
removeEventEventListener(EventListener<?> eventListener) |
Session |
wait(int timeout)
Causes the current thread to wait until waiting time elapses.
|
Session |
waitDocumentReady()
waits until document is ready
|
Session |
waitDocumentReady(int timeout)
waits until document is ready
|
boolean |
waitUntil(Predicate<Session> predicate) |
boolean |
waitUntil(Predicate<Session> predicate,
int timeout) |
boolean |
waitUntil(Predicate<Session> predicate,
int timeout,
int period) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getNodeId, getObjectId, getProperty, getProperty, getPropertyByObjectId, getPropertyDescriptor, matches, matches, releaseObject, setProperty, setProperty
sendBackspace, sendDownArrow, sendEnter, sendEsc, sendKeyCode, sendKeys, sendLeftArrow, sendRightArrow, sendTab, sendUpArrow
back, clearCache, clearCookies, forward, getLocation, getPathname, getQueryString, getTitle, isDomReady, reload, setUserAgent, stop
callFunction, callFunction, callFunction, evaluate, getVariable, setVariable
installSizzle, removeSizzle, useSizzle
clearOptions, clearOptions, focus, focus, getAttribute, getAttribute, getAttributes, getAttributes, getBoxModel, getOptions, getOptions, getSelectedIndex, getSelectedIndex, getText, getText, getValue, getValue, isChecked, isChecked, isDisabled, isDisabled, selectInputText, selectInputText, setAttribute, setAttribute, setChecked, setChecked, setDisabled, setDisabled, setFiles, setFiles, setSelectedIndex, setSelectedIndex, setSelectedOptions, setSelectedOptions, setValue, setValue
public String getId()
public void close()
close
in interface AutoCloseable
public boolean isConnected()
public void activate()
public void addEventListener(EventListener<?> eventListener)
public void removeEventEventListener(EventListener<?> eventListener)
public Session waitDocumentReady()
public Session waitDocumentReady(int timeout)
timeout
- public Session enableConsoleLog()
public Session enableDetailLog()
public Session enableNetworkLog()
public Session getThis()
getThis
in interface Dom
getThis
in interface JavaScript
getThis
in interface Keyboard
getThis
in interface Mouse
getThis
in interface Navigator
getThis
in interface Selector
getThis
in interface Sizzle
public String getFrameId()
public byte[] captureScreenshot()
public Session wait(int timeout)
timeout
- the maximum time to wait in millisecondsCdpException
- if the session held by another thread at the time of invocation.public void onTerminate(TerminateListener terminateListener)
public Command getCommand()
Copyright © 2017 WebFolder OÜ. All rights reserved.