Professional Documents
Culture Documents
WEbDriver APIs
WEbDriver APIs
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.