Package org.openqa.selenium.remote
Interface DriverCommand
@NullMarked
public interface DriverCommand
An empty interface defining constants for the standard commands defined in the WebDriver JSON
wire protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.localStorage is not part of W3C WebDriver spec.static final StringDeprecated.sessionStorage is not part of W3C WebDriver spec.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.useDOWNLOAD_FILEinsteadstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.localStorage is not part of W3C WebDriver spec.static final StringDeprecated.localStorage is not part of W3C WebDriver spec.static final StringDeprecated.localStorage is not part of W3C WebDriver spec.static final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.sessionStorage is not part of W3C WebDriver spec.static final StringDeprecated.sessionStorage is not part of W3C WebDriver spec.static final StringDeprecated.sessionStorage is not part of W3C WebDriver spec.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.localStorage is not part of W3C WebDriver spec.static final StringDeprecated.sessionStorage is not part of W3C WebDriver spec.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.localStorage is not part of W3C WebDriver spec.static final Stringstatic final Stringstatic final StringDeprecated.sessionStorage is not part of W3C WebDriver spec.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CommandPayloadACTIONS(Collection<Sequence> actions) static CommandPayloadADD_COOKIE(Cookie cookie) static CommandPayloadCLEAR_ELEMENT(String id) static CommandPayloadCLICK_ELEMENT(String id) static CommandPayloadDELETE_COOKIE(String name) static CommandPayloadstatic CommandPayloadEXECUTE_ASYNC_SCRIPT(String script, List<Object> args) static CommandPayloadEXECUTE_SCRIPT(String script, List<Object> args) static CommandPayloadFIND_CHILD_ELEMENT(String id, String strategy, String value) static CommandPayloadFIND_CHILD_ELEMENTS(String id, String strategy, String value) static CommandPayloadFIND_ELEMENT(String strategy, Object value) static CommandPayloadFIND_ELEMENT_FROM_SHADOW_ROOT(String shadowId, String strategy, String value) static CommandPayloadFIND_ELEMENTS(String strategy, Object value) static CommandPayloadFIND_ELEMENTS_FROM_SHADOW_ROOT(String shadowId, String strategy, String value) static CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadGET_ELEMENT_ATTRIBUTE(String id, String name) static CommandPayloadGET_ELEMENT_DOM_ATTRIBUTE(String id, String name) static CommandPayloadGET_ELEMENT_DOM_PROPERTY(String id, String name) static CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadGET_ELEMENT_VALUE_OF_CSS_PROPERTY(String id, String name) static CommandPayloadstatic CommandPayloadstatic CommandPayloadstatic CommandPayloadNEW_SESSION(Collection<Capabilities> capabilities) static CommandPayloadNEW_SESSION(Capabilities capabilities) static CommandPayloadPRINT_PAGE(PrintOptions options) static CommandPayloadSELECT_ACCOUNT(int index) static CommandPayloadSEND_KEYS_TO_ELEMENT(String id, CharSequence[] keysToSend) static CommandPayloadSET_ALERT_VALUE(String keysToSend) static CommandPayloadSET_CURRENT_WINDOW_POSITION(Point targetPosition) static CommandPayloadSET_CURRENT_WINDOW_SIZE(Dimension targetSize) static CommandPayloadSET_DELAY_ENABLED(boolean enabled) static CommandPayloadSET_IMPLICIT_WAIT_TIMEOUT(Duration duration) static CommandPayloadSET_PAGE_LOAD_TIMEOUT(Duration duration) static CommandPayloadSET_SCRIPT_TIMEOUT(Duration duration) static CommandPayloadSUBMIT_ELEMENT(String id) static CommandPayloadSWITCH_TO_FRAME(@Nullable Object frame) static CommandPayloadSWITCH_TO_NEW_WINDOW(WindowType typeHint) static CommandPayloadSWITCH_TO_WINDOW(String windowHandleOrName) static CommandPayloadUPLOAD_FILE(String file)
-
Field Details
-
GET_CAPABILITIES
- See Also:
-
NEW_SESSION
- See Also:
-
STATUS
- See Also:
-
CLOSE
- See Also:
-
QUIT
- See Also:
-
GET
- See Also:
-
GO_BACK
- See Also:
-
GO_FORWARD
- See Also:
-
REFRESH
- See Also:
-
ADD_COOKIE
- See Also:
-
GET_ALL_COOKIES
- See Also:
-
GET_COOKIE
- See Also:
-
DELETE_COOKIE
- See Also:
-
DELETE_ALL_COOKIES
- See Also:
-
FIND_ELEMENT
- See Also:
-
FIND_ELEMENTS
- See Also:
-
FIND_CHILD_ELEMENT
- See Also:
-
FIND_CHILD_ELEMENTS
- See Also:
-
GET_ELEMENT_SHADOW_ROOT
- See Also:
-
FIND_ELEMENT_FROM_SHADOW_ROOT
- See Also:
-
FIND_ELEMENTS_FROM_SHADOW_ROOT
- See Also:
-
CLEAR_ELEMENT
- See Also:
-
CLICK_ELEMENT
- See Also:
-
SEND_KEYS_TO_ELEMENT
- See Also:
-
SUBMIT_ELEMENT
- See Also:
-
UPLOAD_FILE
- See Also:
-
GET_CURRENT_WINDOW_HANDLE
- See Also:
-
GET_WINDOW_HANDLES
- See Also:
-
SWITCH_TO_WINDOW
- See Also:
-
SWITCH_TO_NEW_WINDOW
- See Also:
-
SWITCH_TO_FRAME
- See Also:
-
SWITCH_TO_PARENT_FRAME
- See Also:
-
GET_ACTIVE_ELEMENT
- See Also:
-
GET_CURRENT_URL
- See Also:
-
GET_PAGE_SOURCE
- See Also:
-
GET_TITLE
- See Also:
-
EXECUTE_SCRIPT
- See Also:
-
EXECUTE_ASYNC_SCRIPT
- See Also:
-
GET_ELEMENT_TEXT
- See Also:
-
GET_ELEMENT_TAG_NAME
- See Also:
-
IS_ELEMENT_SELECTED
- See Also:
-
IS_ELEMENT_ENABLED
- See Also:
-
IS_ELEMENT_DISPLAYED
- See Also:
-
GET_ELEMENT_RECT
- See Also:
-
GET_ELEMENT_LOCATION
- See Also:
-
GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW
- See Also:
-
GET_ELEMENT_SIZE
- See Also:
-
GET_ELEMENT_DOM_PROPERTY
- See Also:
-
GET_ELEMENT_DOM_ATTRIBUTE
- See Also:
-
GET_ELEMENT_ATTRIBUTE
- See Also:
-
GET_ELEMENT_VALUE_OF_CSS_PROPERTY
- See Also:
-
GET_ELEMENT_ARIA_ROLE
- See Also:
-
GET_ELEMENT_ACCESSIBLE_NAME
- See Also:
-
SCREENSHOT
- See Also:
-
ELEMENT_SCREENSHOT
- See Also:
-
ACCEPT_ALERT
- See Also:
-
DISMISS_ALERT
- See Also:
-
GET_ALERT_TEXT
- See Also:
-
SET_ALERT_VALUE
- See Also:
-
GET_TIMEOUTS
- See Also:
-
SET_TIMEOUT
- See Also:
-
PRINT_PAGE
- See Also:
-
IMPLICITLY_WAIT
- See Also:
-
SET_SCRIPT_TIMEOUT
- See Also:
-
GET_LOCATION
- See Also:
-
SET_LOCATION
- See Also:
-
GET_LOCAL_STORAGE_ITEM
Deprecated.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.localStorage.getItem('key')") instead.- See Also:
-
GET_LOCAL_STORAGE_KEYS
Deprecated.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return Object.keys(window.localStorage)") instead.- See Also:
-
SET_LOCAL_STORAGE_ITEM
Deprecated.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.localStorage.setItem('key', 'value')") instead.- See Also:
-
REMOVE_LOCAL_STORAGE_ITEM
Deprecated.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.localStorage.removeItem('key')") instead.- See Also:
-
CLEAR_LOCAL_STORAGE
Deprecated.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.localStorage.clear()") instead.- See Also:
-
GET_LOCAL_STORAGE_SIZE
Deprecated.localStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.localStorage.length") instead.- See Also:
-
GET_SESSION_STORAGE_ITEM
Deprecated.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.sessionStorage.getItem('key')") instead.- See Also:
-
GET_SESSION_STORAGE_KEYS
Deprecated.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return Object.keys(window.sessionStorage)") instead.- See Also:
-
SET_SESSION_STORAGE_ITEM
Deprecated.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.sessionStorage.setItem('key', 'value')") instead.- See Also:
-
REMOVE_SESSION_STORAGE_ITEM
Deprecated.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.sessionStorage.removeItem('key')") instead.- See Also:
-
CLEAR_SESSION_STORAGE
Deprecated.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("window.sessionStorage.clear()") instead.- See Also:
-
GET_SESSION_STORAGE_SIZE
Deprecated.sessionStorage is not part of W3C WebDriver spec. Use ((JavascriptExecutor) driver).executeScript("return window.sessionStorage.length") instead.- See Also:
-
ACTIONS
- See Also:
-
CLEAR_ACTIONS_STATE
- See Also:
-
SET_CURRENT_WINDOW_POSITION
- See Also:
-
GET_CURRENT_WINDOW_POSITION
- See Also:
-
SET_CURRENT_WINDOW_SIZE
- See Also:
-
GET_CURRENT_WINDOW_SIZE
- See Also:
-
MAXIMIZE_CURRENT_WINDOW
- See Also:
-
MINIMIZE_CURRENT_WINDOW
- See Also:
-
FULLSCREEN_CURRENT_WINDOW
- See Also:
-
GET_AVAILABLE_LOG_TYPES
- See Also:
-
GET_LOG
- See Also:
-
ADD_VIRTUAL_AUTHENTICATOR
- See Also:
-
REMOVE_VIRTUAL_AUTHENTICATOR
- See Also:
-
ADD_CREDENTIAL
- See Also:
-
GET_CREDENTIALS
- See Also:
-
REMOVE_CREDENTIAL
- See Also:
-
REMOVE_ALL_CREDENTIALS
- See Also:
-
SET_USER_VERIFIED
- See Also:
-
CANCEL_DIALOG
- See Also:
-
SELECT_ACCOUNT
- See Also:
-
CLICK_DIALOG
- See Also:
-
GET_ACCOUNTS
- See Also:
-
GET_FEDCM_TITLE
- See Also:
-
GET_FEDCM_DIALOG_TYPE
- See Also:
-
SET_DELAY_ENABLED
- See Also:
-
RESET_COOLDOWN
- See Also:
-
GET_DOWNLOADABLE_FILES
- See Also:
-
DOWNLOAD_FILE
- See Also:
-
GET_DOWNLOADED_FILE
Deprecated.useDOWNLOAD_FILEinsteadThis endpoint was introduced in 4.39.0, but not used anymore since 4.40.0. Left here for backward compatibility (if someone uses Grid 4.40+, but Client 4.39.0).Remove it in 4.41, 4.42 or 4.43.
- See Also:
-
DELETE_DOWNLOADABLE_FILES
- See Also:
-
-
Method Details
-
NEW_SESSION
-
NEW_SESSION
-
GET
-
ADD_COOKIE
-
DELETE_COOKIE
-
FIND_ELEMENT
-
FIND_ELEMENTS
-
FIND_CHILD_ELEMENT
-
FIND_CHILD_ELEMENTS
-
GET_ELEMENT_SHADOW_ROOT
-
FIND_ELEMENT_FROM_SHADOW_ROOT
-
FIND_ELEMENTS_FROM_SHADOW_ROOT
static CommandPayload FIND_ELEMENTS_FROM_SHADOW_ROOT(String shadowId, String strategy, String value) -
CLEAR_ELEMENT
-
CLICK_ELEMENT
-
SEND_KEYS_TO_ELEMENT
-
SUBMIT_ELEMENT
-
UPLOAD_FILE
-
SWITCH_TO_WINDOW
-
SWITCH_TO_NEW_WINDOW
-
SWITCH_TO_FRAME
-
EXECUTE_SCRIPT
-
EXECUTE_ASYNC_SCRIPT
-
GET_ELEMENT_TEXT
-
GET_ELEMENT_TAG_NAME
-
IS_ELEMENT_SELECTED
-
IS_ELEMENT_ENABLED
-
IS_ELEMENT_DISPLAYED
-
GET_ELEMENT_RECT
-
GET_ELEMENT_LOCATION
-
GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW
-
GET_ELEMENT_SIZE
-
GET_ELEMENT_DOM_PROPERTY
-
GET_ELEMENT_DOM_ATTRIBUTE
-
GET_ELEMENT_ATTRIBUTE
-
GET_ELEMENT_VALUE_OF_CSS_PROPERTY
-
GET_ELEMENT_ARIA_ROLE
-
GET_ELEMENT_ACCESSIBLE_NAME
-
ELEMENT_SCREENSHOT
-
SET_ALERT_VALUE
-
PRINT_PAGE
-
SET_IMPLICIT_WAIT_TIMEOUT
-
SET_SCRIPT_TIMEOUT
-
SET_PAGE_LOAD_TIMEOUT
-
ACTIONS
-
SET_CURRENT_WINDOW_POSITION
-
GET_CURRENT_WINDOW_POSITION
-
SET_CURRENT_WINDOW_SIZE
-
SELECT_ACCOUNT
-
SET_DELAY_ENABLED
-