selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
33 lines • 5.34 kB
HTML
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"><meta http-equiv="Content-Language" content="en"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Capability</title><link href="dossier.css" rel="stylesheet" type="text/css"><header><div><form><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></header><main><article><div class="parentlink"><b>Module:</b> <a href="module_selenium-webdriver.html">selenium-webdriver</a></div><div class="codelink"><a href="source/index.js.src.html#l98">View Source</a></div><h1>enum Capability</h1><dl><dt>Type<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dt>Alias for <code><a href="enum_webdriver_Capability.html">webdriver.Capability</a></code></dl><p>Common webdriver capability keys.</p>
<h2>Values and Descriptions</h2><div id="ACCEPT_SSL_CERTS" class="property"><dl><dt>ACCEPT_SSL_CERTS<dd><p>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 <a href="module_selenium-webdriver_enum_Capability.html#SECURE_SSL"><code>#SECURE_SSL</code></a>.</p>
</dl></div><div id="BROWSER_NAME" class="property"><dl><dt>BROWSER_NAME<dd><p>The browser name. Common browser names are defined in the
<a href="enum_webdriver_Browser.html"><code>webdriver.Browser</code></a> enum.</p>
</dl></div><div id="ELEMENT_SCROLL_BEHAVIOR" class="property"><dl><dt>ELEMENT_SCROLL_BEHAVIOR<dd><p>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.</p>
</dl></div><div id="HANDLES_ALERTS" class="property"><dl><dt>HANDLES_ALERTS<dd><p>Whether the driver is capable of handling modal alerts (e.g. alert,
confirm, prompt). To define how a driver <i>should</i> handle alerts,
use <a href="module_selenium-webdriver_enum_Capability.html#UNEXPECTED_ALERT_BEHAVIOR"><code>#UNEXPECTED_ALERT_BEHAVIOR</code></a>.</p>
</dl></div><div id="LOGGING_PREFS" class="property"><dl><dt>LOGGING_PREFS<dd><p>Key for the logging driver logging preferences.</p>
</dl></div><div id="NATIVE_EVENTS" class="property"><dl><dt>NATIVE_EVENTS<dd><p>Whether this session generates native events when simulating user input.</p>
</dl></div><div id="PLATFORM" class="property"><dl><dt>PLATFORM<dd><p>Describes the platform the browser is running on. Will be one of
ANDROID, IOS, LINUX, MAC, UNIX, or WINDOWS. When <i>requesting</i> a
session, ANY may be used to indicate no platform preference (this is
semantically equivalent to omitting the platform capability).</p>
</dl></div><div id="PROXY" class="property"><dl><dt>PROXY<dd><p>Describes the proxy configuration to use for a new WebDriver session.</p>
</dl></div><div id="ROTATABLE" class="property"><dl><dt>ROTATABLE<dd><p>Whether the driver supports changing the brower's orientation.</p>
</dl></div><div id="SECURE_SSL" class="property"><dl><dt>SECURE_SSL<dd><p>Whether a driver is only capable of handling secure SSL certs. To request
that a driver accept insecure SSL certs by default, use
<a href="module_selenium-webdriver_enum_Capability.html#ACCEPT_SSL_CERTS"><code>#ACCEPT_SSL_CERTS</code></a>.</p>
</dl></div><div id="SUPPORTS_APPLICATION_CACHE" class="property"><dl><dt>SUPPORTS_APPLICATION_CACHE<dd><p>Whether the driver supports manipulating the app cache.</p>
</dl></div><div id="SUPPORTS_CSS_SELECTORS" class="property"><dl><dt>SUPPORTS_CSS_SELECTORS<dd><p>Whether the driver supports locating elements with CSS selectors.</p>
</dl></div><div id="SUPPORTS_JAVASCRIPT" class="property"><dl><dt>SUPPORTS_JAVASCRIPT<dd><p>Whether the browser supports JavaScript.</p>
</dl></div><div id="SUPPORTS_LOCATION_CONTEXT" class="property"><dl><dt>SUPPORTS_LOCATION_CONTEXT<dd><p>Whether the driver supports controlling the browser's location info.</p>
</dl></div><div id="TAKES_SCREENSHOT" class="property"><dl><dt>TAKES_SCREENSHOT<dd><p>Whether the driver supports taking screenshots.</p>
</dl></div><div id="UNEXPECTED_ALERT_BEHAVIOR" class="property"><dl><dt>UNEXPECTED_ALERT_BEHAVIOR<dd><p>Defines how the driver should handle unexpected alerts. The value should
be one of "accept", "dismiss", or "ignore.</p>
</dl></div><div id="VERSION" class="property"><dl><dt>VERSION<dd><p>Defines the browser version.</p>
</dl></div></article><nav><h3><a href="index.html" tabindex="2">Overview</a></h3><div><input type="checkbox" id="nav-modules" checked/><label for="nav-modules"><h3><span class="selectable" tabindex="2">Modules</span></h3></label><div id="nav-modules-view"></div></div><div><input type="checkbox" id="nav-types" checked/><label for="nav-types"><h3><span class="selectable" tabindex="2">Types</span></h3></label><div id="nav-types-view"></div></div><h3><a href="Changes.html" tabindex="2">Changes</a></h3></nav></main><footer><div><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></div></footer><script src="types.js"></script><script src="dossier.js"></script>