WebDriver Capabilities

From AutoIt Wiki
Jump to navigation Jump to search

This page is still a work in progress.

WebDriver Capabilities

What are Capabilities?

A good description can be found here:
Not all server implementations will support every WebDriver feature. Therefore, the client and server should use JSON objects with the properties listed below when describing which features a user requests that a session support. If a session cannot support a capability that is requested in the desired capabilities, no error is thrown; a read-only capabilities object is returned that indicates the capabilities the session actually supports.

  • Capabilities are options that you can use to customize and configure a Browser session
  • The capabilities you want to set are passed as a formatted string to function _WD_CreateSession
  • The WebDriver UDF uses the DesiredCapabilities class to pass the capabilities string to the WebDriver Exe
  • Format and content of the capabilities string differ from Browser to Browser
  • Some capabilities are read-only, some are read-write

Chrome

Link to the documentation of Capabilities for Chrome.

Examples

Firefox

Link to the documentation of Capabilities for Firefox.

Examples

Edge

Link to the documentation of Capabilities for Chrome.

Examples

WD_Capabilities UDF

examples with the full capabilities string and the WD_Capabilites functions to create it