Package | Description |
---|---|
io.webfolder.cdp.session |
Modifier and Type | Method | Description |
---|---|---|
default Session |
Navigator.back() |
Returns the window to the previous item in the history.
|
default Session |
Dom.clearOptions(String selector) |
Clears any existing selected items of <select> element.
|
default Session |
Dom.clearOptions(String selector,
Object... args) |
Clears any existing selected items of <select> element.
|
default Session |
Mouse.click(String selector) |
Click on the specified element.
|
default Session |
Mouse.click(String selector,
Object... args) |
Click on the specified element.
|
Session |
SessionFactory.connect(String targetId) |
|
Session |
SessionFactory.create() |
|
Session |
SessionFactory.create(String browserContextId) |
|
Session |
Session.enableConsoleLog() |
Redirects javascript console logs to slf4j
|
Session |
Session.enableDetailLog() |
Redirects runtime logs (network, security, storage etc..) to slf4j
|
Session |
Session.enableNetworkLog() |
Redirects network logs to slf4j
|
default Session |
Dom.focus(Integer contextId,
String selector) |
The HTMLElement.focus() method sets focus on the specified element, if it
can be focused.
|
default Session |
Dom.focus(Integer contextId,
String selector,
Object... args) |
The HTMLElement.focus() method sets focus on the specified element, if it
can be focused.
|
default Session |
Dom.focus(String selector) |
The HTMLElement.focus() method sets focus on the specified element, if it can be focused.
|
default Session |
Navigator.forward() |
Moves the window one document forward in the history
|
Session |
Dom.getThis() |
|
Session |
JavaScript.getThis() |
|
Session |
Keyboard.getThis() |
|
Session |
Mouse.getThis() |
|
Session |
Navigator.getThis() |
|
Session |
Selector.getThis() |
|
Session |
Session.getThis() |
|
Session |
Session.navigate(String url) |
|
Session |
Session.navigateAndWait(String url,
WaitUntil condition) |
|
Session |
Session.navigateAndWait(String url,
WaitUntil condition,
int timeout) |
|
default Session |
Selector.releaseObject(String objectId) |
|
default Session |
Navigator.reload() |
This method reloads the resource from the current URL.
|
default Session |
Dom.selectInputText(String selector) |
The HTMLInputElement.select() method selects all the text in a <textarea> element
or an <input> element with a text field. |
default Session |
Dom.selectInputText(String selector,
Object... args) |
The HTMLInputElement.select() method selects all the text in a <textarea> element
or an <input> element with a text field. |
default Session |
Keyboard.sendBackspace() |
Use this method to simulate typing BACKSPACE key.
|
default Session |
Keyboard.sendDownArrow() |
Use this method to simulate typing DOWN_ARROW key.
|
default Session |
Keyboard.sendEnter() |
Use this method to simulate typing ENTER key.
|
default Session |
Keyboard.sendEsc() |
Use this method to simulate typing ESC key.
|
default Session |
Keyboard.sendKeyCode(int keyCode) |
Use this method to simulate typing unicode value of keyboard key.
|
default Session |
Keyboard.sendKeys(String text) |
Use this method to simulate typing into an element, which may set its value.
|
default Session |
Keyboard.sendLeftArrow() |
Use this method to simulate typing LEFT_ARROW key.
|
default Session |
Keyboard.sendRightArrow() |
Use this method to simulate typing RIGHT_ARROW key.
|
default Session |
Keyboard.sendTab() |
Use this method to simulate typing TAB key.
|
default Session |
Keyboard.sendUpArrow() |
Use this method to simulate typing UP_ARROW key.
|
default Session |
Dom.setAttribute(Integer contextId,
String selector,
String name,
Object value,
Object... args) |
Sets attribute for an element
|
default Session |
Dom.setAttribute(String selector,
String name,
Object value) |
Sets attribute for an element
|
default Session |
Dom.setAttribute(String selector,
String name,
Object value,
Object... args) |
Sets attribute for an element
|
default Session |
Dom.setChecked(String selector,
boolean checked) |
Sets the value of the checked property.
|
default Session |
Dom.setChecked(String selector,
boolean checked,
Object... args) |
Sets the value of the checked property.
|
default Session |
Dom.setDisabled(String selector,
boolean disabled) |
Sets the value of the disabled property.
|
default Session |
Dom.setDisabled(String selector,
boolean disabled,
Object... args) |
Sets the value of the disabled property.
|
default Session |
Dom.setFiles(String selector,
String... files) |
Sets files for the given file input element.
|
default Session |
Dom.setFiles(String selector,
Path... files) |
Sets files for the given file input element.
|
default Session |
Dom.setSelectedIndex(String selector,
int index) |
Set selectedIndex of <option> element.
|
default Session |
Dom.setSelectedIndex(String selector,
int index,
Object... args) |
Set selectedIndex of <option> element.
|
default Session |
Dom.setSelectedOptions(String selector,
List<Integer> indexes) |
Set selected indices of <select> element.
|
default Session |
Dom.setSelectedOptions(String selector,
List<Integer> indexes,
Object... args) |
Set selected indices of <select> element.
|
default Session |
Navigator.setUserAgent(String userAgent) |
Allows overriding user agent with the given string.
|
default Session |
Dom.setValue(String selector,
Object value) |
Sets the value of the <input> input control.
|
default Session |
Dom.setValue(String selector,
Object value,
Object... args) |
Sets the value of the <input> control.
|
default Session |
Navigator.stop() |
This method stops window loading.
|
Session |
Session.wait(int timeout) |
Causes the current thread to wait until waiting time elapses.
|
Session |
Session.wait(int timeout,
boolean log) |
Causes the current thread to wait until waiting time elapses.
|
Session |
Session.waitDocumentReady() |
waits until document is ready
|
Session |
Session.waitDocumentReady(int timeout) |
waits until document is ready
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
Session.waitUntil(Predicate<Session> predicate) |
|
boolean |
Session.waitUntil(Predicate<Session> predicate,
int timeout) |
|
boolean |
Session.waitUntil(Predicate<Session> predicate,
int timeout,
int period) |
|
boolean |
Session.waitUntil(Predicate<Session> predicate,
int timeout,
int period,
boolean log) |
Constructor | Description |
---|---|
Command(Session session) |
Copyright © 2017, 2018–2018 WebFolder OÜ. All rights reserved.