PageRenderTime 33ms CodeModel.GetById 18ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 1ms

/docs/api/rb/Selenium/WebDriver/Error.html

https://bitbucket.org/abahdanovich/selenium
HTML | 288 lines | 179 code | 109 blank | 0 comment | 0 complexity | 9c6277518a78415edc571ad065b6e696 MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4  <head>
  5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6<title>
  7  Module: Selenium::WebDriver::Error
  8  
  9    &mdash; Documentation by YARD 0.8.3
 10  
 11</title>
 12
 13  <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
 14
 15  <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
 16
 17<script type="text/javascript" charset="utf-8">
 18  hasFrames = window.top.frames.main ? true : false;
 19  relpath = '../../';
 20  framesUrl = "../../frames.html#!" + escape(window.location.href);
 21</script>
 22
 23
 24  <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
 25
 26  <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
 27
 28
 29  </head>
 30  <body>
 31    <div id="header">
 32      <div id="menu">
 33  
 34    <a href="../../_index.html">Index (E)</a> &raquo;
 35    <span class='title'><span class='object_link'><a href="../../Selenium.html" title="Selenium (module)">Selenium</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../WebDriver.html" title="Selenium::WebDriver (module)">WebDriver</a></span></span>
 36     &raquo; 
 37    <span class="title">Error</span>
 38  
 39
 40  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
 41</div>
 42
 43      <div id="search">
 44  
 45    <a class="full_list_link" id="class_list_link"
 46        href="../../class_list.html">
 47      Class List
 48    </a>
 49  
 50    <a class="full_list_link" id="method_list_link"
 51        href="../../method_list.html">
 52      Method List
 53    </a>
 54  
 55    <a class="full_list_link" id="file_list_link"
 56        href="../../file_list.html">
 57      File List
 58    </a>
 59  
 60</div>
 61      <div class="clear"></div>
 62    </div>
 63
 64    <iframe id="search_frame"></iframe>
 65
 66    <div id="content"><h1>Module: Selenium::WebDriver::Error
 67  
 68  
 69  
 70</h1>
 71
 72<dl class="box">
 73  
 74  
 75    
 76  
 77    
 78  
 79  
 80  
 81    <dt class="r1 last">Defined in:</dt>
 82    <dd class="r1 last">rb/lib/selenium/webdriver/common/error.rb<span class="defines">,<br />
 83  rb/lib/selenium/webdriver/remote/server_error.rb</span>
 84</dd>
 85  
 86</dl>
 87<div class="clear"></div>
 88
 89<h2>Defined Under Namespace</h2>
 90<p class="children">
 91  
 92    
 93  
 94    
 95      <strong class="classes">Classes:</strong> <span class='object_link'><a href="Error/ElementNotSelectableError.html" title="Selenium::WebDriver::Error::ElementNotSelectableError (class)">ElementNotSelectableError</a></span>, <span class='object_link'><a href="Error/ElementNotVisibleError.html" title="Selenium::WebDriver::Error::ElementNotVisibleError (class)">ElementNotVisibleError</a></span>, <span class='object_link'><a href="Error/ExpectedError.html" title="Selenium::WebDriver::Error::ExpectedError (class)">ExpectedError</a></span>, <span class='object_link'><a href="Error/IMEEngineActivationFailedError.html" title="Selenium::WebDriver::Error::IMEEngineActivationFailedError (class)">IMEEngineActivationFailedError</a></span>, <span class='object_link'><a href="Error/IMENotAvailableError.html" title="Selenium::WebDriver::Error::IMENotAvailableError (class)">IMENotAvailableError</a></span>, <span class='object_link'><a href="Error/IndexOutOfBoundsError.html" title="Selenium::WebDriver::Error::IndexOutOfBoundsError (class)">IndexOutOfBoundsError</a></span>, <span class='object_link'><a href="Error/InvalidCookieDomainError.html" title="Selenium::WebDriver::Error::InvalidCookieDomainError (class)">InvalidCookieDomainError</a></span>, <span class='object_link'><a href="Error/InvalidElementCoordinatesError.html" title="Selenium::WebDriver::Error::InvalidElementCoordinatesError (class)">InvalidElementCoordinatesError</a></span>, <span class='object_link'><a href="Error/InvalidElementStateError.html" title="Selenium::WebDriver::Error::InvalidElementStateError (class)">InvalidElementStateError</a></span>, <span class='object_link'><a href="Error/InvalidSelectorError.html" title="Selenium::WebDriver::Error::InvalidSelectorError (class)">InvalidSelectorError</a></span>, <span class='object_link'><a href="Error/JavascriptError.html" title="Selenium::WebDriver::Error::JavascriptError (class)">JavascriptError</a></span>, <span class='object_link'><a href="Error/MoveTargetOutOfBoundsError.html" title="Selenium::WebDriver::Error::MoveTargetOutOfBoundsError (class)">MoveTargetOutOfBoundsError</a></span>, <span class='object_link'><a href="Error/NoAlertPresentError.html" title="Selenium::WebDriver::Error::NoAlertPresentError (class)">NoAlertPresentError</a></span>, <span class='object_link'><a href="Error/NoCollectionError.html" title="Selenium::WebDriver::Error::NoCollectionError (class)">NoCollectionError</a></span>, <span class='object_link'><a href="Error/NoScriptResultError.html" title="Selenium::WebDriver::Error::NoScriptResultError (class)">NoScriptResultError</a></span>, <span class='object_link'><a href="Error/NoStringError.html" title="Selenium::WebDriver::Error::NoStringError (class)">NoStringError</a></span>, <span class='object_link'><a href="Error/NoStringLengthError.html" title="Selenium::WebDriver::Error::NoStringLengthError (class)">NoStringLengthError</a></span>, <span class='object_link'><a href="Error/NoStringWrapperError.html" title="Selenium::WebDriver::Error::NoStringWrapperError (class)">NoStringWrapperError</a></span>, <span class='object_link'><a href="Error/NoSuchCollectionError.html" title="Selenium::WebDriver::Error::NoSuchCollectionError (class)">NoSuchCollectionError</a></span>, <span class='object_link'><a href="Error/NoSuchDocumentError.html" title="Selenium::WebDriver::Error::NoSuchDocumentError (class)">NoSuchDocumentError</a></span>, <span class='object_link'><a href="Error/NoSuchDriverError.html" title="Selenium::WebDriver::Error::NoSuchDriverError (class)">NoSuchDriverError</a></span>, <span class='object_link'><a href="Error/NoSuchElementError.html" title="Selenium::WebDriver::Error::NoSuchElementError (class)">NoSuchElementError</a></span>, <span class='object_link'><a href="Error/NoSuchFrameError.html" title="Selenium::WebDriver::Error::NoSuchFrameError (class)">NoSuchFrameError</a></span>, <span class='object_link'><a href="Error/NoSuchWindowError.html" title="Selenium::WebDriver::Error::NoSuchWindowError (class)">NoSuchWindowError</a></span>, <span class='object_link'><a href="Error/NullPointerError.html" title="Selenium::WebDriver::Error::NullPointerError (class)">NullPointerError</a></span>, <span class='object_link'><a href="Error/ScriptTimeOutError.html" title="Selenium::WebDriver::Error::ScriptTimeOutError (class)">ScriptTimeOutError</a></span>, <span class='object_link'><a href="Error/ServerError.html" title="Selenium::WebDriver::Error::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="Error/StaleElementReferenceError.html" title="Selenium::WebDriver::Error::StaleElementReferenceError (class)">StaleElementReferenceError</a></span>, <span class='object_link'><a href="Error/TimeOutError.html" title="Selenium::WebDriver::Error::TimeOutError (class)">TimeOutError</a></span>, <span class='object_link'><a href="Error/UnableToSetCookieError.html" title="Selenium::WebDriver::Error::UnableToSetCookieError (class)">UnableToSetCookieError</a></span>, <span class='object_link'><a href="Error/UnhandledAlertError.html" title="Selenium::WebDriver::Error::UnhandledAlertError (class)">UnhandledAlertError</a></span>, <span class='object_link'><a href="Error/UnknownCommandError.html" title="Selenium::WebDriver::Error::UnknownCommandError (class)">UnknownCommandError</a></span>, <span class='object_link'><a href="Error/UnknownError.html" title="Selenium::WebDriver::Error::UnknownError (class)">UnknownError</a></span>, <span class='object_link'><a href="Error/UnsupportedOperationError.html" title="Selenium::WebDriver::Error::UnsupportedOperationError (class)">UnsupportedOperationError</a></span>, <span class='object_link'><a href="Error/WebDriverError.html" title="Selenium::WebDriver::Error::WebDriverError (class)">WebDriverError</a></span>, <span class='object_link'><a href="Error/XPathLookupError.html" title="Selenium::WebDriver::Error::XPathLookupError (class)">XPathLookupError</a></span>
 96    
 97  
 98</p>
 99
100  <h2>Constant Summary</h2>
101  
102    <dl class="constants">
103      
104        <dt id="Errors-constant" class="">Errors =
105          <div class="docstring">
106  <div class="discussion">
107    <p class="note private">
108  <strong>This constant is part of a private API.</strong>
109  You should avoid using this constant if possible, as it may be removed or be changed in the future.
110</p>
111
112
113  </div>
114</div>
115<div class="tags">
116  
117
118</div>
119        </dt>
120        <dd><pre class="code"><span class='lbracket'>[</span>
121  <span class='const'>IndexOutOfBoundsError</span><span class='comma'>,</span>          <span class='comment'># 1
122</span>  <span class='const'>NoCollectionError</span><span class='comma'>,</span>              <span class='comment'># 2
123</span>  <span class='const'>NoStringError</span><span class='comma'>,</span>                  <span class='comment'># 3
124</span>  <span class='const'>NoStringLengthError</span><span class='comma'>,</span>            <span class='comment'># 4
125</span>  <span class='const'>NoStringWrapperError</span><span class='comma'>,</span>           <span class='comment'># 5
126</span>  <span class='const'>NoSuchDriverError</span><span class='comma'>,</span>              <span class='comment'># 6
127</span>  <span class='const'>NoSuchElementError</span><span class='comma'>,</span>             <span class='comment'># 7
128</span>  <span class='const'>NoSuchFrameError</span><span class='comma'>,</span>               <span class='comment'># 8
129</span>  <span class='const'>UnknownCommandError</span><span class='comma'>,</span>            <span class='comment'># 9
130</span>  <span class='const'>StaleElementReferenceError</span><span class='comma'>,</span>     <span class='comment'># 10
131</span>  <span class='const'>ElementNotVisibleError</span><span class='comma'>,</span>         <span class='comment'># 11
132</span>  <span class='const'>InvalidElementStateError</span><span class='comma'>,</span>       <span class='comment'># 12
133</span>  <span class='const'>UnknownError</span><span class='comma'>,</span>                   <span class='comment'># 13
134</span>  <span class='const'>ExpectedError</span><span class='comma'>,</span>                  <span class='comment'># 14
135</span>  <span class='const'>ElementNotSelectableError</span><span class='comma'>,</span>      <span class='comment'># 15
136</span>  <span class='const'>NoSuchDocumentError</span><span class='comma'>,</span>            <span class='comment'># 16
137</span>  <span class='const'>JavascriptError</span><span class='comma'>,</span>                <span class='comment'># 17
138</span>  <span class='const'>NoScriptResultError</span><span class='comma'>,</span>            <span class='comment'># 18
139</span>  <span class='const'>XPathLookupError</span><span class='comma'>,</span>               <span class='comment'># 19
140</span>  <span class='const'>NoSuchCollectionError</span><span class='comma'>,</span>          <span class='comment'># 20
141</span>  <span class='const'>TimeOutError</span><span class='comma'>,</span>                   <span class='comment'># 21
142</span>  <span class='const'>NullPointerError</span><span class='comma'>,</span>               <span class='comment'># 22
143</span>  <span class='const'>NoSuchWindowError</span><span class='comma'>,</span>              <span class='comment'># 23
144</span>  <span class='const'>InvalidCookieDomainError</span><span class='comma'>,</span>       <span class='comment'># 24
145</span>  <span class='const'>UnableToSetCookieError</span><span class='comma'>,</span>         <span class='comment'># 25
146</span>  <span class='const'>UnhandledAlertError</span><span class='comma'>,</span>            <span class='comment'># 26
147</span>  <span class='const'>NoAlertPresentError</span><span class='comma'>,</span>            <span class='comment'># 27
148</span>  <span class='const'>ScriptTimeOutError</span><span class='comma'>,</span>             <span class='comment'># 28
149</span>  <span class='const'>InvalidElementCoordinatesError</span><span class='comma'>,</span> <span class='comment'># 29
150</span>  <span class='const'>IMENotAvailableError</span><span class='comma'>,</span>           <span class='comment'># 30
151</span>  <span class='const'>IMEEngineActivationFailedError</span><span class='comma'>,</span> <span class='comment'># 31
152</span>  <span class='const'>InvalidSelectorError</span><span class='comma'>,</span>           <span class='comment'># 32
153</span>  <span class='kw'>nil</span><span class='comma'>,</span>                            <span class='comment'># 33
154</span>  <span class='const'>MoveTargetOutOfBoundsError</span>      <span class='comment'># 34
155</span><span class='rbracket'>]</span></pre></dd>
156      
157        <dt id="ObsoleteElementError-constant" class="">ObsoleteElementError =
158          <div class="docstring">
159  <div class="discussion">
160    
161<p>aliased for backwards compatibility</p>
162
163
164  </div>
165</div>
166<div class="tags">
167  
168
169</div>
170        </dt>
171        <dd><pre class="code"><span class='const'>StaleElementReferenceError</span></pre></dd>
172      
173        <dt id="UnhandledError-constant" class="">UnhandledError =
174          
175        </dt>
176        <dd><pre class="code"><span class='const'>UnknownError</span></pre></dd>
177      
178        <dt id="UnexpectedJavascriptError-constant" class="">UnexpectedJavascriptError =
179          
180        </dt>
181        <dd><pre class="code"><span class='const'>JavascriptError</span></pre></dd>
182      
183        <dt id="NoAlertOpenError-constant" class="">NoAlertOpenError =
184          
185        </dt>
186        <dd><pre class="code"><span class='const'>NoAlertPresentError</span></pre></dd>
187      
188        <dt id="ElementNotDisplayedError-constant" class="">ElementNotDisplayedError =
189          
190        </dt>
191        <dd><pre class="code"><span class='const'>ElementNotVisibleError</span></pre></dd>
192      
193    </dl>
194  
195
196
197
198
199
200
201
202  
203    <h2>
204      Class Method Summary
205      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
206    </h2>
207
208    <ul class="summary">
209      
210        <li class="public ">
211  <span class="summary_signature">
212    
213      <a href="#for_code-class_method" title="for_code (class method)">+ (Object) <strong>for_code</strong>(code) </a>
214    
215
216    
217  </span>
218  
219  
220  
221  
222  
223  
224  
225
226  
227    <span class="summary_desc"><div class='inline'></div></span>
228  
229</li>
230
231      
232    </ul>
233  
234
235
236
237  <div id="class_method_details" class="method_details_list">
238    <h2>Class Method Details</h2>
239
240    
241      <div class="method_details first">
242  <h3 class="signature first" id="for_code-class_method">
243  
244    + (<tt>Object</tt>) <strong>for_code</strong>(code) 
245  
246
247  
248
249  
250</h3><table class="source_code">
251  <tr>
252    <td>
253      <pre class="lines">
254
255
256198
257199
258200
259201
260202
261203</pre>
262    </td>
263    <td>
264      <pre class="code"><span class="info file"># File 'rb/lib/selenium/webdriver/common/error.rb', line 198</span>
265
266<span class='kw'>def</span> <span class='id identifier rubyid_for_code'>for_code</span><span class='lparen'>(</span><span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span>
267  <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_code'>code</span> <span class='op'>==</span> <span class='int'>0</span>
268  <span class='kw'>return</span> <span class='const'>WebDriverError</span> <span class='kw'>if</span> <span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
269
270  <span class='const'>Errors</span><span class='lbracket'>[</span><span class='id identifier rubyid_code'>code</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>WebDriverError</span>
271<span class='kw'>end</span></pre>
272    </td>
273  </tr>
274</table>
275</div>
276    
277  </div>
278
279</div>
280
281    <div id="footer">
282  Generated on Mon Jan 21 19:22:42 2013 by
283  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
284  0.8.3 (ruby-1.9.3).
285</div>
286
287  </body>
288</html>