You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
e2e-istanbul/node_modules/selenium-webdriver/docs/namespace_bot_userAgent.html

21 lines
13 KiB

<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>bot.userAgent</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Namespace bot.userAgent</h1><a class="source" href="source/lib/atoms/userAgent.js.src.html#l20">code &raquo;</a></header><section></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>Global Functions</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l42">code &raquo;</a><span class="member"><a name="bot.userAgent.isEngineVersion">bot.userAgent.isEngineVersion</a> <span class="args">( version )</span> &rArr; <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the rendering engine version of the current browser is equal to or
greater than the given version. This implementation differs from
goog.userAgent.isVersion in the following ways:
<ol>
<li>in a Firefox extension, tests the engine version through the XUL version
comparator service, because no window.navigator object is available
<li>in IE, compares the given version to the current documentMode
</ol></summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>version: <code class="type">(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>)</code><dd>The version number to check.</dl><tr><th>Returns<tr><td><dl>Whether the browser engine version is the same or higher
than the given version.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l68">code &raquo;</a><span class="member"><a name="bot.userAgent.isProductVersion">bot.userAgent.isProductVersion</a> <span class="args">( version )</span> &rArr; <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the product version of the current browser is equal to or greater
than the given version. This implementation differs from
goog.userAgent.product.isVersion in the following ways:
<ol>
<li>in a Firefox extension, tests the product version through the XUL version
comparator service, because no window.navigator object is available
<li>on Android, always compares to the version to the OS version
</ol></summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>version: <code class="type">(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>)</code><dd>The version number to check.</dl><tr><th>Returns<tr><td><dl>Whether the browser product version is the same or higher
than the given version.</dl></table></div></details></div></div></section><section id="static-properties"><h2>Global Properties</h2><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l227">code &raquo;</a><span class="member"><a name="bot.userAgent.ANDROID_PRE_GINGERBREAD">bot.userAgent.ANDROID_PRE_GINGERBREAD</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current browser is Android pre-gingerbread.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l236">code &raquo;</a><span class="member"><a name="bot.userAgent.ANDROID_PRE_ICECREAMSANDWICH">bot.userAgent.ANDROID_PRE_ICECREAMSANDWICH</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current browser is Android pre-icecreamsandwich</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l168">code &raquo;</a><span class="member"><a name="bot.userAgent.ANDROID_VERSION_">bot.userAgent.ANDROID_VERSION_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Android Operating System Version.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l104">code &raquo;</a><span class="member"><a name="bot.userAgent.FIREFOX_EXTENSION">bot.userAgent.FIREFOX_EXTENSION</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether we are in a Firefox extension.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l86">code &raquo;</a><span class="member"><a name="bot.userAgent.FIREFOX_EXTENSION_IS_ENGINE_VERSION_">bot.userAgent.FIREFOX_EXTENSION_IS_ENGINE_VERSION_</a> : <code class="type">(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined">undefined</a>|function((<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>)): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a>)</code></span></div><p>When we are in a Firefox extension, this is a function that accepts a version
and returns whether the version of Gecko we are on is the same or higher
than the given version. When we are not in a Firefox extension, this is null.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l95">code &raquo;</a><span class="member"><a name="bot.userAgent.FIREFOX_EXTENSION_IS_PRODUCT_VERSION_">bot.userAgent.FIREFOX_EXTENSION_IS_PRODUCT_VERSION_</a> : <code class="type">(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined">undefined</a>|function((<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>|<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>)): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a>)</code></span></div><p>When we are in a Firefox extension, this is a function that accepts a version
and returns whether the version of Firefox we are on is the same or higher
than the given version. When we are not in a Firefox extension, this is null.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l210">code &raquo;</a><span class="member"><a name="bot.userAgent.IE_DOC_10">bot.userAgent.IE_DOC_10</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current document is IE in IE10 (or newer) standards mode.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l193">code &raquo;</a><span class="member"><a name="bot.userAgent.IE_DOC_9">bot.userAgent.IE_DOC_9</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current document is IE in IE9 (or newer) standards mode.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l218">code &raquo;</a><span class="member"><a name="bot.userAgent.IE_DOC_PRE10">bot.userAgent.IE_DOC_PRE10</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current document is IE in a documentMode older than 10.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l184">code &raquo;</a><span class="member"><a name="bot.userAgent.IE_DOC_PRE8">bot.userAgent.IE_DOC_PRE8</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current document is IE in a documentMode older than 8.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l201">code &raquo;</a><span class="member"><a name="bot.userAgent.IE_DOC_PRE9">bot.userAgent.IE_DOC_PRE9</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current document is IE in a documentMode older than 9.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l150">code &raquo;</a><span class="member"><a name="bot.userAgent.IOS">bot.userAgent.IOS</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether we are on IOS.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l160">code &raquo;</a><span class="member"><a name="bot.userAgent.MOBILE">bot.userAgent.MOBILE</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether we are on a mobile browser.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l245">code &raquo;</a><span class="member"><a name="bot.userAgent.SAFARI_6">bot.userAgent.SAFARI_6</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current browser is Safari 6.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/atoms/userAgent.js.src.html#l254">code &raquo;</a><span class="member"><a name="bot.userAgent.WINDOWS_PHONE">bot.userAgent.WINDOWS_PHONE</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the current browser is Windows Phone.</summary></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>No data</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>No data</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>No data</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>