Difference between revisions of "WebDriver Capabilities"

From AutoIt Wiki
Jump to navigation Jump to search
(WebDriver Capabilities)
Line 2: Line 2:
  
 
= WebDriver Capabilities =
 
= WebDriver Capabilities =
What are Capabilities?
+
What are Capabilities?<p>
 +
A good description can be found [https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities here]:<br>
 +
''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
 
* 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 capabilities you want to set are passed as a formatted string to function _WD_CreateSession

Revision as of 13:28, 9 December 2021

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 Browser
  • 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