selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
6 lines • 5.19 kB
HTML
<meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>selenium-webdriver/chrome</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Module selenium-webdriver/chrome</h1><a class="source" href="/Users/jleyba/Development/selenium2/build/javascript/node/selenium-webdriver/docs/source/chrome.js.src.html">code »</a></header><section></section><section><h2>Classes</h2><div class="type-summary"><table><tbody><tr><td><dl><dt><a href="module_selenium-webdriver_chrome_class_Driver.html">Driver</a><dd>Creates a new WebDriver client for Chrome.<dt><a href="module_selenium-webdriver_chrome_class_Options.html">Options</a><dd>Class for managing ChromeDriver specific options.<dt><a href="module_selenium-webdriver_chrome_class_ServiceBuilder.html">ServiceBuilder</a><dd>Creates <code class="type"><a class="unresolved-link">remote.DriverService</a></code> instances that manage a ChromeDriver
server.</dl></table></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><section id="static-functions"><h2>Functions</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/chrome.js.src.html#l492">code »</a><span class="member deprecation-notice"><a name="createDriver">createDriver</a> <span class="args">( opt_options, opt_service, opt_flow )</span> ⇒ <code class="type">!<a href="class_webdriver_WebDriver.html">webdriver.WebDriver</a></code></span></div><div class="deprecation-notice">Deprecated: <span class="deprecation-reason">Use <code class="type"><a class="unresolved-link">new Driver()</a></code>.</span></div><p>Creates a new ChromeDriver session.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>opt_options: <code class="type">(<a href="class_webdriver_Capabilities.html">webdriver.Capabilities</a>|Options)=</code><dd>The session options.<dt>opt_service: <code class="type">remote.DriverService=</code><dd>The session to use; will use
the <code class="type"><a class="unresolved-link">default service</a></code> by default.<dt>opt_flow: <code class="type"><a href="class_webdriver_promise_ControlFlow.html">webdriver.promise.ControlFlow</a>=</code><dd>The control flow to use, or
<code >null</code> to use the currently active flow.</dl><tr><th>Returns<tr><td><dl>A new WebDriver instance.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/chrome.js.src.html#l493">code »</a><span class="member"><a name="getDefaultService">getDefaultService</a> <span class="args">( )</span> ⇒ <code class="type">!remote.DriverService</code></span></div><p>Returns the default ChromeDriver service. If such a service has not been
configured, one will be constructed using the default configuration for
a ChromeDriver executable found on the system PATH.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>The default ChromeDriver service.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/chrome.js.src.html#l494">code »</a><span class="member"><a name="setDefaultService">setDefaultService</a> <span class="args">( service )</span></span></div><p>Sets the default service to use for new ChromeDriver instances.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>service: <code class="type">!remote.DriverService</code><dd>The service to use.</dl><tr><th>Throws<tr><td><dl><dt><code class="type"><a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error">Error</a></code><dd>If the default service is currently running.</dl></table></div></details></div></div></section></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>