# Enum webdriver.Capability

code »

Type: `string`

Common webdriver capability keys.

## Values and Descriptions

ACCEPT_SSL_CERTS
  Indicates whether a driver should accept all SSL certs by default. This capability only applies when requesting a new session. To query whether a driver can handle insecure SSL certs, see `webdriver.Capability.SECURE_SSL`.
BROWSER_NAME
  The browser name. Common browser names are defined in the `webdriver.Browser` enum.
ELEMENT_SCROLL_BEHAVIOR
  Defines how elements should be scrolled into the viewport for interaction. This capability will be set to zero (0) if elements are aligned with the top of the viewport, or one (1) if aligned with the bottom. The default behavior is to align with the top of the viewport.
HANDLES_ALERTS
  Whether the driver is capable of handling modal alerts (e.g. alert, confirm, prompt). To define how a driver should handle alerts, use `webdriver.Capability.UNEXPECTED_ALERT_BEHAVIOR`.
LOGGING_PREFS
  Key for the logging driver logging preferences.
NATIVE_EVENTS
  Whether this session generates native events when simulating user input.
PLATFORM
  Describes the platform the browser is running on. Will be one of ANDROID, IOS, LINUX, MAC, UNIX, or WINDOWS. When requesting a session, ANY may be used to indicate no platform preference (this is semantically equivalent to omitting the platform capability).
PROXY
  Describes the proxy configuration to use for a new WebDriver session.
ROTATABLE
  Whether the driver supports changing the brower's orientation.
SECURE_SSL
  Whether a driver is only capable of handling secure SSL certs. To request that a driver accept insecure SSL certs by default, use `webdriver.Capability.ACCEPT_SSL_CERTS`.
SUPPORTS_APPLICATION_CACHE
  Whether the driver supports manipulating the app cache.
SUPPORTS_CSS_SELECTORS
  Whether the driver supports locating elements with CSS selectors.
SUPPORTS_JAVASCRIPT
  Whether the browser supports JavaScript.
SUPPORTS_LOCATION_CONTEXT
  Whether the driver supports controlling the browser's location info.
TAKES_SCREENSHOT
  Whether the driver supports taking screenshots.
UNEXPECTED_ALERT_BEHAVIOR
  Defines how the driver should handle unexpected alerts. The value should be one of "accept", "dismiss", or "ignore.
VERSION
  Defines the browser version.

Show:Public Protected Private