UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

16 lines 5.91 kB
<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>webdriver.Capability</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Enum webdriver.Capability</h1><a class="source" href="source/lib/webdriver/capabilities.js.src.html#l68">code &raquo;</a><dl><dt>Type: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></dl></header><section><p>Common webdriver capability keys.<h2>Values and Descriptions</h2><div class="type-summary"><dl class="public"><dt><a class="enum member" name="webdriver.Capability.ACCEPT_SSL_CERTS">ACCEPT_SSL_CERTS</a><dd>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 <code class="type"><a href="enum_webdriver_Capability.html#webdriver.Capability.SECURE_SSL">webdriver.Capability.SECURE_SSL</a></code>.<dt><a class="enum member" name="webdriver.Capability.BROWSER_NAME">BROWSER_NAME</a><dd>The browser name. Common browser names are defined in the <code class="type"><a href="enum_webdriver_Browser.html">webdriver.Browser</a></code> enum.<dt><a class="enum member" name="webdriver.Capability.ELEMENT_SCROLL_BEHAVIOR">ELEMENT_SCROLL_BEHAVIOR</a><dd>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.<dt><a class="enum member" name="webdriver.Capability.HANDLES_ALERTS">HANDLES_ALERTS</a><dd>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 <code class="type"><a href="enum_webdriver_Capability.html#webdriver.Capability.UNEXPECTED_ALERT_BEHAVIOR">webdriver.Capability.UNEXPECTED_ALERT_BEHAVIOR</a></code>.<dt><a class="enum member" name="webdriver.Capability.LOGGING_PREFS">LOGGING_PREFS</a><dd>Key for the logging driver logging preferences.<dt><a class="enum member" name="webdriver.Capability.NATIVE_EVENTS">NATIVE_EVENTS</a><dd>Whether this session generates native events when simulating user input.<dt><a class="enum member" name="webdriver.Capability.PLATFORM">PLATFORM</a><dd>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).<dt><a class="enum member" name="webdriver.Capability.PROXY">PROXY</a><dd>Describes the proxy configuration to use for a new WebDriver session.<dt><a class="enum member" name="webdriver.Capability.ROTATABLE">ROTATABLE</a><dd>Whether the driver supports changing the brower's orientation.<dt><a class="enum member" name="webdriver.Capability.SECURE_SSL">SECURE_SSL</a><dd>Whether a driver is only capable of handling secure SSL certs. To request that a driver accept insecure SSL certs by default, use <code class="type"><a href="enum_webdriver_Capability.html#webdriver.Capability.ACCEPT_SSL_CERTS">webdriver.Capability.ACCEPT_SSL_CERTS</a></code>.<dt><a class="enum member" name="webdriver.Capability.SUPPORTS_APPLICATION_CACHE">SUPPORTS_APPLICATION_CACHE</a><dd>Whether the driver supports manipulating the app cache.<dt><a class="enum member" name="webdriver.Capability.SUPPORTS_CSS_SELECTORS">SUPPORTS_CSS_SELECTORS</a><dd>Whether the driver supports locating elements with CSS selectors.<dt><a class="enum member" name="webdriver.Capability.SUPPORTS_JAVASCRIPT">SUPPORTS_JAVASCRIPT</a><dd>Whether the browser supports JavaScript.<dt><a class="enum member" name="webdriver.Capability.SUPPORTS_LOCATION_CONTEXT">SUPPORTS_LOCATION_CONTEXT</a><dd>Whether the driver supports controlling the browser's location info.<dt><a class="enum member" name="webdriver.Capability.TAKES_SCREENSHOT">TAKES_SCREENSHOT</a><dd>Whether the driver supports taking screenshots.<dt><a class="enum member" name="webdriver.Capability.UNEXPECTED_ALERT_BEHAVIOR">UNEXPECTED_ALERT_BEHAVIOR</a><dd>Defines how the driver should handle unexpected alerts. The value should be one of "accept", "dismiss", or "ignore.<dt><a class="enum member" name="webdriver.Capability.VERSION">VERSION</a><dd>Defines the browser version.</dl></div></section><div id="visibility-controls"><b>Show:</b><label for="show-public"><span><input type="checkbox" id="show-public" checked/></span>Public</label><label for="show-protected"><span><input type="checkbox" id="show-protected"/></span>Protected</label><label for="show-private"><span><input type="checkbox" id="show-private"/></span>Private</label></div></main><nav id="topnav"><div><div id="menubutton"><label for="sidenav-toggle">Menu</label></div><form id="searchbox"><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></nav><nav id="sidenav"><input type="checkbox" id="sidenav-types-ctrl" /><input type="checkbox" id="sidenav-files-ctrl" /><input type="checkbox" id="sidenav-modules-ctrl" /><a id="sidenav-overview"><div><h4>Overview</h4></div></a><div id="sidenav-types"><label for="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><a href="license.html"><div><h4>License</h4></div></a></nav><div id="push-footer"></div></div><footer><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><script src="types.js"></script><script src="dossier.js"></script>