blob: 7bbfff1dc3dcc190c038799f11208ea866fca8d7 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>selenium.webdriver.remote.errorhandler &mdash; Selenium 2.0 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '2.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="Selenium 2.0 documentation" href="../index.html" />
<link rel="up" title="Selenium Documentation" href="../api.html" />
<link rel="next" title="selenium.webdriver.remote.remote_connection" href="selenium.webdriver.remote.remote_connection.html" />
<link rel="prev" title="selenium.webdriver.remote.command" href="selenium.webdriver.remote.command.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="selenium.webdriver.remote.remote_connection.html" title="selenium.webdriver.remote.remote_connection"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="selenium.webdriver.remote.command.html" title="selenium.webdriver.remote.command"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">Selenium 2.0 documentation</a> &raquo;</li>
<li><a href="../api.html" accesskey="U">Selenium Documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="module-selenium.webdriver.remote.errorhandler">
<span id="selenium-webdriver-remote-errorhandler"></span><h1>selenium.webdriver.remote.errorhandler<a class="headerlink" href="#module-selenium.webdriver.remote.errorhandler" title="Permalink to this headline"></a></h1>
<dl class="class">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode">
<em class="property">class </em><tt class="descclassname">selenium.webdriver.remote.errorhandler.</tt><tt class="descname">ErrorCode</tt><a class="reference internal" href="../_modules/selenium/webdriver/remote/errorhandler.html#ErrorCode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode" title="Permalink to this definition"></a></dt>
<dd><p>Error codes defined in the WebDriver wire protocol.</p>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.ELEMENT_IS_NOT_SELECTABLE">
<tt class="descname">ELEMENT_IS_NOT_SELECTABLE</tt><em class="property"> = 15</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.ELEMENT_IS_NOT_SELECTABLE" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.ELEMENT_NOT_VISIBLE">
<tt class="descname">ELEMENT_NOT_VISIBLE</tt><em class="property"> = 11</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.ELEMENT_NOT_VISIBLE" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.IME_ENGINE_ACTIVATION_FAILED">
<tt class="descname">IME_ENGINE_ACTIVATION_FAILED</tt><em class="property"> = 31</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.IME_ENGINE_ACTIVATION_FAILED" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.IME_NOT_AVAILABLE">
<tt class="descname">IME_NOT_AVAILABLE</tt><em class="property"> = 30</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.IME_NOT_AVAILABLE" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_COOKIE_DOMAIN">
<tt class="descname">INVALID_COOKIE_DOMAIN</tt><em class="property"> = 24</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_COOKIE_DOMAIN" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_ELEMENT_COORDINATES">
<tt class="descname">INVALID_ELEMENT_COORDINATES</tt><em class="property"> = 29</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_ELEMENT_COORDINATES" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_ELEMENT_STATE">
<tt class="descname">INVALID_ELEMENT_STATE</tt><em class="property"> = 12</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_ELEMENT_STATE" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_SELECTOR">
<tt class="descname">INVALID_SELECTOR</tt><em class="property"> = 32</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_SELECTOR" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_XPATH_SELECTOR">
<tt class="descname">INVALID_XPATH_SELECTOR</tt><em class="property"> = 51</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_XPATH_SELECTOR" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER">
<tt class="descname">INVALID_XPATH_SELECTOR_RETURN_TYPER</tt><em class="property"> = 52</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.JAVASCRIPT_ERROR">
<tt class="descname">JAVASCRIPT_ERROR</tt><em class="property"> = 17</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.JAVASCRIPT_ERROR" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.METHOD_NOT_ALLOWED">
<tt class="descname">METHOD_NOT_ALLOWED</tt><em class="property"> = 405</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.METHOD_NOT_ALLOWED" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS">
<tt class="descname">MOVE_TARGET_OUT_OF_BOUNDS</tt><em class="property"> = 34</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.NO_ALERT_OPEN">
<tt class="descname">NO_ALERT_OPEN</tt><em class="property"> = 27</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.NO_ALERT_OPEN" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.NO_SUCH_ELEMENT">
<tt class="descname">NO_SUCH_ELEMENT</tt><em class="property"> = 7</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.NO_SUCH_ELEMENT" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.NO_SUCH_FRAME">
<tt class="descname">NO_SUCH_FRAME</tt><em class="property"> = 8</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.NO_SUCH_FRAME" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.NO_SUCH_WINDOW">
<tt class="descname">NO_SUCH_WINDOW</tt><em class="property"> = 23</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.NO_SUCH_WINDOW" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.SCRIPT_TIMEOUT">
<tt class="descname">SCRIPT_TIMEOUT</tt><em class="property"> = 28</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.SCRIPT_TIMEOUT" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.STALE_ELEMENT_REFERENCE">
<tt class="descname">STALE_ELEMENT_REFERENCE</tt><em class="property"> = 10</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.STALE_ELEMENT_REFERENCE" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.SUCCESS">
<tt class="descname">SUCCESS</tt><em class="property"> = 0</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.SUCCESS" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.TIMEOUT">
<tt class="descname">TIMEOUT</tt><em class="property"> = 21</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.TIMEOUT" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.UNABLE_TO_SET_COOKIE">
<tt class="descname">UNABLE_TO_SET_COOKIE</tt><em class="property"> = 25</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.UNABLE_TO_SET_COOKIE" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.UNEXPECTED_ALERT_OPEN">
<tt class="descname">UNEXPECTED_ALERT_OPEN</tt><em class="property"> = 26</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.UNEXPECTED_ALERT_OPEN" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.UNKNOWN_COMMAND">
<tt class="descname">UNKNOWN_COMMAND</tt><em class="property"> = 9</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.UNKNOWN_COMMAND" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.UNKNOWN_ERROR">
<tt class="descname">UNKNOWN_ERROR</tt><em class="property"> = 13</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.UNKNOWN_ERROR" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="selenium.webdriver.remote.errorhandler.ErrorCode.XPATH_LOOKUP_ERROR">
<tt class="descname">XPATH_LOOKUP_ERROR</tt><em class="property"> = 19</em><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorCode.XPATH_LOOKUP_ERROR" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
<dl class="class">
<dt id="selenium.webdriver.remote.errorhandler.ErrorHandler">
<em class="property">class </em><tt class="descclassname">selenium.webdriver.remote.errorhandler.</tt><tt class="descname">ErrorHandler</tt><a class="reference internal" href="../_modules/selenium/webdriver/remote/errorhandler.html#ErrorHandler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorHandler" title="Permalink to this definition"></a></dt>
<dd><p>Handles errors returned by the WebDriver server.</p>
<dl class="method">
<dt id="selenium.webdriver.remote.errorhandler.ErrorHandler.check_response">
<tt class="descname">check_response</tt><big>(</big><em>response</em><big>)</big><a class="reference internal" href="../_modules/selenium/webdriver/remote/errorhandler.html#ErrorHandler.check_response"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#selenium.webdriver.remote.errorhandler.ErrorHandler.check_response" title="Permalink to this definition"></a></dt>
<dd><p>Checks that a JSON response from the WebDriver does not have an error.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Args :</th><td class="field-body"><ul class="first simple">
<li>response - The JSON response from the WebDriver server as a dictionary
object.</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last">If the response contains an error message.</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="selenium.webdriver.remote.command.html"
title="previous chapter">selenium.webdriver.remote.command</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="selenium.webdriver.remote.remote_connection.html"
title="next chapter">selenium.webdriver.remote.remote_connection</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/webdriver_remote/selenium.webdriver.remote.errorhandler.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="selenium.webdriver.remote.remote_connection.html" title="selenium.webdriver.remote.remote_connection"
>next</a> |</li>
<li class="right" >
<a href="selenium.webdriver.remote.command.html" title="selenium.webdriver.remote.command"
>previous</a> |</li>
<li><a href="../index.html">Selenium 2.0 documentation</a> &raquo;</li>
<li><a href="../api.html" >Selenium Documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2011, plightbo, simon.m.stewart, hbchai, jrhuggins, et al..
</div>
</body>
</html>