Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

PART 1

SELENIUM
WEBDRIVER API
ENDPOINTS
POST /session: Creates a new session.
DELETE /session/{sessionId}: Deletes a session.
GET /status: Returns the status of the server.
GET /session/{sessionId}: Returns the capabilities of the specified session.
POST /session/{sessionId}/timeouts: Sets the timeout for certain actions.
NAVEEN AUTOMATION LABS
POST /session/{sessionId}/timeouts/async_script: Sets the timeout for script execution.
POST /session/{sessionId}/timeouts/implicit_wait: Sets the implicit wait timeout.
GET /session/{sessionId}/window_handle: Returns the current window handle.
GET /session/{sessionId}/window_handles: Returns a list of window handles.
GET /session/{sessionId}/url: Returns the current URL.
POST /session/{sessionId}/url: Navigates to a new URL.
POST /session/{sessionId}/forward: Navigates the browser forward.
POST /session/{sessionId}/back: Navigates the browser back.
POST /session/{sessionId}/refresh: Refreshes the current page.
POST /session/{sessionId}/execute: Executes a script in the context of the current page.
POST /session/{sessionId}/execute_async: Executes an async script in the context of the current page.
PART 2
WEBDRIVER API
ENDPOINTS
GET /session/{sessionId}/screenshot: Takes a screenshot of the current page.
GET /session/{sessionId}/ime/available_engines: Returns a list of available IME engines.
GET /session/{sessionId}/ime/active_engine: Returns the active IME engine.
GET /session/{sessionId}/ime/activated: Returns whether IME is activated.
POST /session/{sessionId}/ime/deactivate: Deactivates the active IME engine.
NAVEEN AUTOMATION LABS
POST /session/{sessionId}/ime/activate: Activates an IME engine.
GET /session/{sessionId}/frame: Returns the current frame.
POST /session/{sessionId}/frame: Changes the focus to a new frame.
POST /session/{sessionId}/frame/parent: Changes the focus to the parent frame.
GET /session/{sessionId}/window: Returns the current window handle.
DELETE /session/{sessionId}/window: Closes the current window.
POST /session/{sessionId}/window: Changes focus to a new window.
POST /session/{sessionId}/window/{windowHandle}/size: Changes the size of a window.
GET /session/{sessionId}/window/{windowHandle}/size: Returns the size of a window.
PART 3
WEBDRIVER API
ENDPOINTS
POST /session/{sessionId}/window/{windowHandle}/position: Changes the position of a window.
GET /session/{sessionId}/window/{windowHandle}/position: Returns the position of a window.
POST /session/{sessionId}/window/{windowHandle}/maximize: Maximizes a window.
GET /session/{sessionId}/cookie: Returns a list of cookies.
POST /session/{sessionId}/cookie: Adds a cookie.
DELETE /session/{sessionId}/cookie: Deletes all cookies.
NAVEEN AUTOMATION LABS
DELETE /session/{sessionId}/cookie/{name}: Deletes a specific cookie.
GET /session/{sessionId}/source: Returns the source of the current page.
GET /session/{sessionId}/title: Returns the title of the current page.
POST /session/{sessionId}/element: Searches for an element on the page.
POST /session/{sessionId}/elements: Searches for multiple elements on the page.
POST /session/{sessionId}/element/{elementId}/element: Searches for an element within the specified element.
POST /session/{sessionId}/element/{elementId}/elements: Searches for multiple elements within the specified element.
GET /session/{sessionId}/element/{elementId}/selected: Returns whether an element is selected.
POST /session/{sessionId}/element/{elementId}/toggle: Toggles an element.
GET /session/{sessionId}/element/{elementId}/enabled: Returns whether an element is enabled.
PART 4 WEBDRIVER API
ENDPOINTS
GET /session/{sessionId}/element/{elementId}/attribute/{name}: Returns the value of an attribute of an element.
GET /session/{sessionId}/element/{elementId}/property/{name}: Returns the value of a property of an element.
GET /session/{sessionId}/element/{elementId}/css/{propertyName}: Returns the value of a CSS property of an element.

NAVEEN AUTOMATION LABS


GET /session/{sessionId}/element/{elementId}/text: Returns the text of an element.
GET /session/{sessionId}/element/{elementId}/name: Returns the tag name of an element.
POST /session/{sessionId}/element/{elementId}/click: Clicks on an element.
POST /session/{sessionId}/element/{elementId}/submit: Submits a form.
POST /session/{sessionId}/element/{elementId}/clear: Clears the contents of an element.
POST /session/{sessionId}/element/{elementId}/value: Enters text into an element.
POST /session/{sessionId}/keys: Sends keystrokes to the active element.
PART 5
WEBDRIVER API
ENDPOINTS
GET /session/{sessionId}/element/{elementId}/displayed: Returns whether an element is displayed.
GET /session/{sessionId}/element/{elementId}/location: Returns the location of an element.
GET /session/{sessionId}/element/{elementId}/size: Returns the size of an element.
GET /session/{sessionId}/element/{elementId}/rect: Returns the rect (i.e., location and size) of an element.

NAVEEN AUTOMATION LABS


GET /session/{sessionId}/element/{elementId}/property/{name}: Returns the value of a property of an element.
POST /session/{sessionId}/moveto: Moves the mouse to an element or to an offset within an element.
POST /session/{sessionId}/click: Clicks at the current mouse location.
POST /session/{sessionId}/buttondown: Presses the mouse button down at the current mouse location.
POST /session/{sessionId}/buttonup: Releases the mouse button at the current mouse location.
POST /session/{sessionId}/doubleclick: Double-clicks at the current mouse location.
POST /session/{sessionId}/touch/click: Clicks on an element.
POST /session/{sessionId}/touch/down: Presses the touch screen at the given location.
POST /session/{sessionId}/touch/up: Releases the touch screen at the given location.
POST /session/{sessionId}/touch/move: Moves the touch screen to the given location.
POST /session/{sessionId}/touch/scroll: Scrolls on the touch screen.
PART 6
WEBDRIVER API
ENDPOINTS
POST /session/{sessionId}/touch/doubleclick: Double-clicks on an element.
POST /session/{sessionId}/touch/longclick: Long-clicks on an element.
POST /session/{sessionId}/touch/flick: Flicks on the touch screen.
POST /session/{sessionId}/touch/scroll: Scrolls on the touch screen.

NAVEEN AUTOMATION LABS


POST /session/{sessionId}/touch/scroll: Scrolls on the touch screen.
POST /session/{sessionId}/touch/scroll: Scrolls on the touch screen.
POST /session/{sessionId}/location: Sets the current geographic location of the device.
GET /session/{sessionId}/location: Returns the current geographic location of the device.
POST /session/{sessionId}/local_storage: Sets the value of an item in local storage.
GET /session/{sessionId}/local_storage: Returns a list of all keys in local storage.
DELETE /session/{sessionId}/local_storage: Clears all items from local storage.
GET /session/{sessionId}/local_storage/key/{key}: Returns the value of an item in local storage.
WEBDRIVER API
PART 7 ENDPOINTS

DELETE /session/{sessionId}/local_storage/key/{key}: Removes an item from local storage.


GET /session/{sessionId}/local_storage/size: Returns the number of items in local storage.
POST /session/{sessionId}/session_storage: Sets the value of an item in session storage.

NAVEEN AUTOMATION LABS


GET /session/{sessionId}/session_storage: Returns a list of all keys in session storage.
DELETE /session/{sessionId}/session_storage: Clears all items from session storage.
GET /session/{sessionId}/session_storage/key/{key}: Returns the value of an item in session storage.
DELETE /session/{sessionId}/session_storage/key/{key}: Removes an item from session storage.
GET /session/{sessionId}/session_storage/size: Returns the number of items in session storage.
POST /session/{sessionId}/log: Returns the log for a given log type.
THANKS FOR
WATCHING
NAVEEN AUTOMATION LABS

You might also like