mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Upgrade Selenium on Rails to r140
This commit is contained in:
parent
156862200b
commit
40074c71ad
117 changed files with 16789 additions and 8867 deletions
|
|
@ -198,8 +198,8 @@ command for more information about option locators.
|
|||
<div class="method-source-code" id="M000023-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 148</span>
|
||||
148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_selection</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
149: <span class="ruby-identifier">command</span> <span class="ruby-value str">'addSelection'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_selection</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
149: <span class="ruby-identifier">command</span> <span class="ruby-value str">'addSelection'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
150: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -225,8 +225,8 @@ is called or a new page is loaded.
|
|||
<div class="method-source-code" id="M000034-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 221</span>
|
||||
221: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alt_key_down</span>
|
||||
222: <span class="ruby-identifier">command</span> <span class="ruby-value str">'altKeyDown'</span>
|
||||
221: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alt_key_down</span>
|
||||
222: <span class="ruby-identifier">command</span> <span class="ruby-value str">'altKeyDown'</span>
|
||||
223: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -251,8 +251,8 @@ Simulates the user releasing the alt key.
|
|||
<div class="method-source-code" id="M000035-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 226</span>
|
||||
226: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alt_key_up</span>
|
||||
227: <span class="ruby-identifier">command</span> <span class="ruby-value str">'altKeyUp'</span>
|
||||
226: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alt_key_up</span>
|
||||
227: <span class="ruby-identifier">command</span> <span class="ruby-value str">'altKeyUp'</span>
|
||||
228: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -278,8 +278,8 @@ next JavaScript prompt (<tt>window.prompt()</tt>).
|
|||
<div class="method-source-code" id="M000030-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 199</span>
|
||||
199: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">answer_on_next_prompt</span> <span class="ruby-identifier">answer</span>
|
||||
200: <span class="ruby-identifier">command</span> <span class="ruby-value str">'answerOnNextPrompt'</span>, <span class="ruby-identifier">answer</span>
|
||||
199: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">answer_on_next_prompt</span> <span class="ruby-identifier">answer</span>
|
||||
200: <span class="ruby-identifier">command</span> <span class="ruby-value str">'answerOnNextPrompt'</span>, <span class="ruby-identifier">answer</span>
|
||||
201: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -312,8 +312,8 @@ href="TestBuilderActions.html#M000036">brake</a>()</tt>
|
|||
<div class="method-source-code" id="M000036-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 236</span>
|
||||
236: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">brake</span>
|
||||
237: <span class="ruby-identifier">command</span> <span class="ruby-value str">'break'</span>
|
||||
236: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">brake</span>
|
||||
237: <span class="ruby-identifier">command</span> <span class="ruby-value str">'break'</span>
|
||||
238: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -338,8 +338,8 @@ Check a toggle-button (checkbox/radio).
|
|||
<div class="method-source-code" id="M000020-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 108</span>
|
||||
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check</span> <span class="ruby-identifier">locator</span>
|
||||
109: <span class="ruby-identifier">command</span> <span class="ruby-value str">'check'</span>, <span class="ruby-identifier">locator</span>
|
||||
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check</span> <span class="ruby-identifier">locator</span>
|
||||
109: <span class="ruby-identifier">command</span> <span class="ruby-value str">'check'</span>, <span class="ruby-identifier">locator</span>
|
||||
110: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -367,8 +367,8 @@ running this command, the next call to <tt>confirm()</tt> will return
|
|||
<div class="method-source-code" id="M000029-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 193</span>
|
||||
193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">choose_cancel_on_next_confirmation</span>
|
||||
194: <span class="ruby-identifier">command</span> <span class="ruby-value str">'chooseCancelOnNextConfirmation'</span>
|
||||
193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">choose_cancel_on_next_confirmation</span>
|
||||
194: <span class="ruby-identifier">command</span> <span class="ruby-value str">'chooseCancelOnNextConfirmation'</span>
|
||||
195: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -396,8 +396,8 @@ href="TestBuilderActions.html#M000070">wait_for_page_to_load</a></tt>.
|
|||
<div class="method-source-code" id="M000011-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 47</span>
|
||||
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">click</span> <span class="ruby-identifier">locator</span>
|
||||
48: <span class="ruby-identifier">command</span> <span class="ruby-value str">'click'</span>, <span class="ruby-identifier">locator</span>
|
||||
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">click</span> <span class="ruby-identifier">locator</span>
|
||||
48: <span class="ruby-identifier">command</span> <span class="ruby-value str">'click'</span>, <span class="ruby-identifier">locator</span>
|
||||
49: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -425,8 +425,8 @@ href="TestBuilderActions.html#M000070">wait_for_page_to_load</a>.
|
|||
<div class="method-source-code" id="M000012-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 53</span>
|
||||
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">click_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
54: <span class="ruby-identifier">command</span> <span class="ruby-value str">'clickAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">click_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
54: <span class="ruby-identifier">command</span> <span class="ruby-value str">'clickAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
55: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -453,8 +453,8 @@ titlebar of a popup window or tab.
|
|||
<div class="method-source-code" id="M000033-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 215</span>
|
||||
215: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
||||
216: <span class="ruby-identifier">command</span> <span class="ruby-value str">'close'</span>
|
||||
215: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
||||
216: <span class="ruby-identifier">command</span> <span class="ruby-value str">'close'</span>
|
||||
217: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -480,8 +480,8 @@ do_control_up() is called or a new page is loaded.
|
|||
<div class="method-source-code" id="M000037-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 242</span>
|
||||
242: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">control_key_down</span>
|
||||
243: <span class="ruby-identifier">command</span> <span class="ruby-value str">'controlKeyDown'</span>
|
||||
242: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">control_key_down</span>
|
||||
243: <span class="ruby-identifier">command</span> <span class="ruby-value str">'controlKeyDown'</span>
|
||||
244: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -506,8 +506,8 @@ Simulates the user releasing the control key.
|
|||
<div class="method-source-code" id="M000038-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 247</span>
|
||||
247: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">control_key_up</span>
|
||||
248: <span class="ruby-identifier">command</span> <span class="ruby-value str">'controlKeyUp'</span>
|
||||
247: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">control_key_up</span>
|
||||
248: <span class="ruby-identifier">command</span> <span class="ruby-value str">'controlKeyUp'</span>
|
||||
249: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -549,8 +549,8 @@ value of ‘max_age’ is second.
|
|||
<div class="method-source-code" id="M000039-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 260</span>
|
||||
260: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_cookie</span> <span class="ruby-identifier">name_value_pair</span>, <span class="ruby-identifier">options_string</span>
|
||||
261: <span class="ruby-identifier">command</span> <span class="ruby-value str">'createCookie'</span>, <span class="ruby-identifier">name_value_pair</span>, <span class="ruby-identifier">options_string</span>
|
||||
260: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_cookie</span> <span class="ruby-identifier">name_value_pair</span>, <span class="ruby-identifier">options_string</span>
|
||||
261: <span class="ruby-identifier">command</span> <span class="ruby-value str">'createCookie'</span>, <span class="ruby-identifier">name_value_pair</span>, <span class="ruby-identifier">options_string</span>
|
||||
262: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -575,8 +575,8 @@ Delete a named cookie with specified path.
|
|||
<div class="method-source-code" id="M000040-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 265</span>
|
||||
265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_cookie</span> <span class="ruby-identifier">name</span>, <span class="ruby-identifier">path</span>
|
||||
266: <span class="ruby-identifier">command</span> <span class="ruby-value str">'deleteCookie'</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">path</span>
|
||||
265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_cookie</span> <span class="ruby-identifier">name</span>, <span class="ruby-identifier">path</span>
|
||||
266: <span class="ruby-identifier">command</span> <span class="ruby-value str">'deleteCookie'</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">path</span>
|
||||
267: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -604,8 +604,8 @@ href="TestBuilderActions.html#M000070">wait_for_page_to_load</a></tt>.
|
|||
<div class="method-source-code" id="M000041-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 271</span>
|
||||
271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">double_click</span> <span class="ruby-identifier">locator</span>
|
||||
272: <span class="ruby-identifier">command</span> <span class="ruby-value str">'doubleClick'</span>, <span class="ruby-identifier">locator</span>
|
||||
271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">double_click</span> <span class="ruby-identifier">locator</span>
|
||||
272: <span class="ruby-identifier">command</span> <span class="ruby-value str">'doubleClick'</span>, <span class="ruby-identifier">locator</span>
|
||||
273: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -632,8 +632,8 @@ href="TestBuilderActions.html#M000070">wait_for_page_to_load</a></tt>.
|
|||
<div class="method-source-code" id="M000042-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 277</span>
|
||||
277: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">double_click_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
278: <span class="ruby-identifier">command</span> <span class="ruby-value str">'doubleClickAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
277: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">double_click_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
278: <span class="ruby-identifier">command</span> <span class="ruby-value str">'doubleClickAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
279: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -658,8 +658,8 @@ Drags an element a certain distance and then drops it.
|
|||
<div class="method-source-code" id="M000043-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 282</span>
|
||||
282: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drag_and_drop</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">movements_string</span>
|
||||
283: <span class="ruby-identifier">command</span> <span class="ruby-value str">'dragAndDrop'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">movements_string</span>
|
||||
282: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drag_and_drop</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">movements_string</span>
|
||||
283: <span class="ruby-identifier">command</span> <span class="ruby-value str">'dragAndDrop'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">movements_string</span>
|
||||
284: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -684,8 +684,8 @@ Drags an element and drops it on another element.
|
|||
<div class="method-source-code" id="M000044-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 287</span>
|
||||
287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drag_and_drop_to_object</span> <span class="ruby-identifier">locator_of_object_to_be_dragged</span>, <span class="ruby-identifier">locator_of_drag_destination_object</span>
|
||||
288: <span class="ruby-identifier">command</span> <span class="ruby-value str">'dragAndDropToObject'</span>, <span class="ruby-identifier">locator_of_object_to_be_dragged</span>, <span class="ruby-identifier">locator_of_drag_destination_object</span>
|
||||
287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drag_and_drop_to_object</span> <span class="ruby-identifier">locator_of_object_to_be_dragged</span>, <span class="ruby-identifier">locator_of_drag_destination_object</span>
|
||||
288: <span class="ruby-identifier">command</span> <span class="ruby-value str">'dragAndDropToObject'</span>, <span class="ruby-identifier">locator_of_object_to_be_dragged</span>, <span class="ruby-identifier">locator_of_drag_destination_object</span>
|
||||
289: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -711,8 +711,8 @@ href="Selenese.html">Selenese</a> tables. Useful for debugging.
|
|||
<div class="method-source-code" id="M000045-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 294</span>
|
||||
294: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">echo</span> <span class="ruby-identifier">message</span>
|
||||
295: <span class="ruby-identifier">command</span> <span class="ruby-value str">'echo'</span>, <span class="ruby-identifier">message</span>
|
||||
294: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">echo</span> <span class="ruby-identifier">message</span>
|
||||
295: <span class="ruby-identifier">command</span> <span class="ruby-value str">'echo'</span>, <span class="ruby-identifier">message</span>
|
||||
296: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -739,8 +739,8 @@ Explicitly simulate an event (e.g. <tt>"focus"</tt>,
|
|||
<div class="method-source-code" id="M000013-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 59</span>
|
||||
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fire_event</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">event_name</span>
|
||||
60: <span class="ruby-identifier">command</span> <span class="ruby-value str">'fireEvent'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">event_name</span>
|
||||
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fire_event</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">event_name</span>
|
||||
60: <span class="ruby-identifier">command</span> <span class="ruby-value str">'fireEvent'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">event_name</span>
|
||||
61: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -765,8 +765,8 @@ Simulates the user clicking the "back" button on their browser.
|
|||
<div class="method-source-code" id="M000031-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 204</span>
|
||||
204: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">go_back</span>
|
||||
205: <span class="ruby-identifier">command</span> <span class="ruby-value str">'goBack'</span>
|
||||
204: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">go_back</span>
|
||||
205: <span class="ruby-identifier">command</span> <span class="ruby-value str">'goBack'</span>
|
||||
206: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -792,8 +792,8 @@ for debugging.
|
|||
<div class="method-source-code" id="M000046-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 300</span>
|
||||
300: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">highlight</span> <span class="ruby-identifier">locator</span>
|
||||
301: <span class="ruby-identifier">command</span> <span class="ruby-value str">'highlight'</span>, <span class="ruby-identifier">locator</span>
|
||||
300: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">highlight</span> <span class="ruby-identifier">locator</span>
|
||||
301: <span class="ruby-identifier">command</span> <span class="ruby-value str">'highlight'</span>, <span class="ruby-identifier">locator</span>
|
||||
302: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -827,9 +827,9 @@ starting _ and the file extension don‘t have to be specified.
|
|||
<div class="method-source-code" id="M000010-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 39</span>
|
||||
39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include_partial</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">local_assigns</span> = {}
|
||||
40: <span class="ruby-identifier">partial</span> = <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">local_assigns</span>
|
||||
41: <span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">partial</span>
|
||||
39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include_partial</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">local_assigns</span> = {}
|
||||
40: <span class="ruby-identifier">partial</span> = <span class="ruby-ivar">@view</span>.<span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">local_assigns</span>
|
||||
41: <span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">partial</span>
|
||||
42: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -858,8 +858,8 @@ the ASCII value of that key.
|
|||
<div class="method-source-code" id="M000015-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 75</span>
|
||||
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key_down</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
76: <span class="ruby-identifier">command</span> <span class="ruby-value str">'keyDown'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key_down</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
76: <span class="ruby-identifier">command</span> <span class="ruby-value str">'keyDown'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
77: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -888,8 +888,8 @@ the ASCII value of that key.
|
|||
<div class="method-source-code" id="M000014-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 67</span>
|
||||
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key_press</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
68: <span class="ruby-identifier">command</span> <span class="ruby-value str">'keyPress'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key_press</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
68: <span class="ruby-identifier">command</span> <span class="ruby-value str">'keyPress'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
69: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -918,8 +918,8 @@ the ASCII value of that key.
|
|||
<div class="method-source-code" id="M000016-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 83</span>
|
||||
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key_up</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
84: <span class="ruby-identifier">command</span> <span class="ruby-value str">'keyUp'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key_up</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
84: <span class="ruby-identifier">command</span> <span class="ruby-value str">'keyUp'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">keycode</span>
|
||||
85: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -945,8 +945,8 @@ a new page is loaded.
|
|||
<div class="method-source-code" id="M000047-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 306</span>
|
||||
306: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_key_down</span>
|
||||
307: <span class="ruby-identifier">command</span> <span class="ruby-value str">'metaKeyDown'</span>
|
||||
306: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_key_down</span>
|
||||
307: <span class="ruby-identifier">command</span> <span class="ruby-value str">'metaKeyDown'</span>
|
||||
308: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -971,8 +971,8 @@ Release the meta key.
|
|||
<div class="method-source-code" id="M000048-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 311</span>
|
||||
311: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_key_up</span>
|
||||
312: <span class="ruby-identifier">command</span> <span class="ruby-value str">'metaKeyUp'</span>
|
||||
311: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_key_up</span>
|
||||
312: <span class="ruby-identifier">command</span> <span class="ruby-value str">'metaKeyUp'</span>
|
||||
313: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -998,8 +998,8 @@ the specified element.
|
|||
<div class="method-source-code" id="M000018-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 94</span>
|
||||
94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_down</span> <span class="ruby-identifier">locator</span>
|
||||
95: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseDown'</span>, <span class="ruby-identifier">locator</span>
|
||||
94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_down</span> <span class="ruby-identifier">locator</span>
|
||||
95: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseDown'</span>, <span class="ruby-identifier">locator</span>
|
||||
96: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1025,8 +1025,8 @@ the specified element.
|
|||
<div class="method-source-code" id="M000049-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 317</span>
|
||||
317: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_down_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
318: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseDownAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
317: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_down_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
318: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseDownAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
319: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1051,8 +1051,8 @@ Simulates a user moving the mouse.
|
|||
<div class="method-source-code" id="M000050-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 322</span>
|
||||
322: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_move</span> <span class="ruby-identifier">locator</span>
|
||||
323: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseMove'</span>, <span class="ruby-identifier">locator</span>
|
||||
322: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_move</span> <span class="ruby-identifier">locator</span>
|
||||
323: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseMove'</span>, <span class="ruby-identifier">locator</span>
|
||||
324: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1077,8 +1077,8 @@ Simulates a user moving the mouse relative to the specified element.
|
|||
<div class="method-source-code" id="M000051-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 327</span>
|
||||
327: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_move_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
328: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseMoveAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
327: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_move_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
328: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseMoveAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
329: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1103,8 +1103,8 @@ Simulates the user moving the mouse off the specified element.
|
|||
<div class="method-source-code" id="M000052-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 332</span>
|
||||
332: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_out</span> <span class="ruby-identifier">locator</span>
|
||||
333: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseOut'</span>, <span class="ruby-identifier">locator</span>
|
||||
332: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_out</span> <span class="ruby-identifier">locator</span>
|
||||
333: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseOut'</span>, <span class="ruby-identifier">locator</span>
|
||||
334: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1129,8 +1129,8 @@ Simulates a user hovering a mouse over the specified element.
|
|||
<div class="method-source-code" id="M000017-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 88</span>
|
||||
88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_over</span> <span class="ruby-identifier">locator</span>
|
||||
89: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseOver'</span>, <span class="ruby-identifier">locator</span>
|
||||
88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_over</span> <span class="ruby-identifier">locator</span>
|
||||
89: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseOver'</span>, <span class="ruby-identifier">locator</span>
|
||||
90: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1155,8 +1155,8 @@ Simulates the user releasing the mouse button on the specified element.
|
|||
<div class="method-source-code" id="M000053-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 337</span>
|
||||
337: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_up</span> <span class="ruby-identifier">locator</span>
|
||||
338: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseUp'</span>, <span class="ruby-identifier">locator</span>
|
||||
337: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_up</span> <span class="ruby-identifier">locator</span>
|
||||
338: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseUp'</span>, <span class="ruby-identifier">locator</span>
|
||||
339: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1182,8 +1182,8 @@ the specified element.
|
|||
<div class="method-source-code" id="M000054-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 343</span>
|
||||
343: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_up_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
344: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseUpAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
343: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mouse_up_at</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
344: <span class="ruby-identifier">command</span> <span class="ruby-value str">'mouseUpAt'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">coord_string</span>
|
||||
345: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1216,8 +1216,8 @@ restrictions in the browser (Same Origin Policy).
|
|||
<div class="method-source-code" id="M000026-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 172</span>
|
||||
172: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span> <span class="ruby-identifier">url</span>
|
||||
173: <span class="ruby-identifier">command</span> <span class="ruby-value str">'open'</span>, <span class="ruby-identifier">url_arg</span>(<span class="ruby-identifier">url</span>)
|
||||
172: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span> <span class="ruby-identifier">url</span>
|
||||
173: <span class="ruby-identifier">command</span> <span class="ruby-value str">'open'</span>, <span class="ruby-identifier">url_arg</span>(<span class="ruby-identifier">url</span>)
|
||||
174: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1257,8 +1257,8 @@ href="TestBuilderActions.html#M000055">open_window</a>("",
|
|||
<div class="method-source-code" id="M000055-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 355</span>
|
||||
355: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open_window</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">window_id</span>
|
||||
356: <span class="ruby-identifier">command</span> <span class="ruby-value str">'openWindow'</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">window_id</span>
|
||||
355: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open_window</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">window_id</span>
|
||||
356: <span class="ruby-identifier">command</span> <span class="ruby-value str">'openWindow'</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">window_id</span>
|
||||
357: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1283,8 +1283,8 @@ Wait for the specified amount of time (in milliseconds).
|
|||
<div class="method-source-code" id="M000056-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 360</span>
|
||||
360: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span> <span class="ruby-identifier">wait_time</span>
|
||||
361: <span class="ruby-identifier">command</span> <span class="ruby-value str">'pause'</span>, <span class="ruby-identifier">wait_time</span>
|
||||
360: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span> <span class="ruby-identifier">wait_time</span>
|
||||
361: <span class="ruby-identifier">command</span> <span class="ruby-value str">'pause'</span>, <span class="ruby-identifier">wait_time</span>
|
||||
362: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1310,8 +1310,8 @@ browser.
|
|||
<div class="method-source-code" id="M000032-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 209</span>
|
||||
209: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">refresh</span>
|
||||
210: <span class="ruby-identifier">command</span> <span class="ruby-value str">'refresh'</span>
|
||||
209: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">refresh</span>
|
||||
210: <span class="ruby-identifier">command</span> <span class="ruby-value str">'refresh'</span>
|
||||
211: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1337,8 +1337,8 @@ href="TestBuilderActions.html#M000022">select</a> element.
|
|||
<div class="method-source-code" id="M000057-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 365</span>
|
||||
365: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_all_selections</span> <span class="ruby-identifier">locator</span>
|
||||
366: <span class="ruby-identifier">command</span> <span class="ruby-value str">'removeAllSelections'</span>, <span class="ruby-identifier">locator</span>
|
||||
365: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_all_selections</span> <span class="ruby-identifier">locator</span>
|
||||
366: <span class="ruby-identifier">command</span> <span class="ruby-value str">'removeAllSelections'</span>, <span class="ruby-identifier">locator</span>
|
||||
367: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1369,8 +1369,8 @@ command for more information about option locators.
|
|||
<div class="method-source-code" id="M000024-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 156</span>
|
||||
156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_selection</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
157: <span class="ruby-identifier">command</span> <span class="ruby-value str">'removeSelection'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_selection</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
157: <span class="ruby-identifier">command</span> <span class="ruby-value str">'removeSelection'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
158: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1432,8 +1432,8 @@ on label.
|
|||
<div class="method-source-code" id="M000022-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 140</span>
|
||||
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
141: <span class="ruby-identifier">command</span> <span class="ruby-value str">'select'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
141: <span class="ruby-identifier">command</span> <span class="ruby-value str">'select'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>
|
||||
142: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1468,8 +1468,8 @@ href="http://"subframe"">dom=frames["main"].frames</a></tt>
|
|||
<div class="method-source-code" id="M000058-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 375</span>
|
||||
375: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_frame</span> <span class="ruby-identifier">locator</span>
|
||||
376: <span class="ruby-identifier">command</span> <span class="ruby-value str">'selectFrame'</span>, <span class="ruby-identifier">locator</span>
|
||||
375: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_frame</span> <span class="ruby-identifier">locator</span>
|
||||
376: <span class="ruby-identifier">command</span> <span class="ruby-value str">'selectFrame'</span>, <span class="ruby-identifier">locator</span>
|
||||
377: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1496,8 +1496,8 @@ the main window again, use <tt>nil</tt> as the target.
|
|||
<div class="method-source-code" id="M000027-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 178</span>
|
||||
178: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_window</span> <span class="ruby-identifier">window_id</span>
|
||||
179: <span class="ruby-identifier">command</span> <span class="ruby-value str">'selectWindow'</span>, <span class="ruby-identifier">window_id</span><span class="ruby-operator">||</span><span class="ruby-value str">'null'</span>
|
||||
178: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_window</span> <span class="ruby-identifier">window_id</span>
|
||||
179: <span class="ruby-identifier">command</span> <span class="ruby-value str">'selectWindow'</span>, <span class="ruby-identifier">window_id</span><span class="ruby-operator">||</span><span class="ruby-value str">'null'</span>
|
||||
180: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1529,12 +1529,12 @@ Writes a message to the status bar and adds a note to the browser-side log.
|
|||
<div class="method-source-code" id="M000067-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 448</span>
|
||||
448: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_context</span> <span class="ruby-identifier">context</span>, <span class="ruby-identifier">log_level_threshold</span> = <span class="ruby-keyword kw">nil</span>
|
||||
449: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">log_level_threshold</span>
|
||||
450: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setContext'</span>, <span class="ruby-identifier">context</span>, <span class="ruby-identifier">log_level_threshold</span>.<span class="ruby-identifier">to_s</span>
|
||||
451: <span class="ruby-keyword kw">else</span>
|
||||
452: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setContext'</span>, <span class="ruby-identifier">context</span>
|
||||
453: <span class="ruby-keyword kw">end</span>
|
||||
448: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_context</span> <span class="ruby-identifier">context</span>, <span class="ruby-identifier">log_level_threshold</span> = <span class="ruby-keyword kw">nil</span>
|
||||
449: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">log_level_threshold</span>
|
||||
450: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setContext'</span>, <span class="ruby-identifier">context</span>, <span class="ruby-identifier">log_level_threshold</span>.<span class="ruby-identifier">to_s</span>
|
||||
451: <span class="ruby-keyword kw">else</span>
|
||||
452: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setContext'</span>, <span class="ruby-identifier">context</span>
|
||||
453: <span class="ruby-keyword kw">end</span>
|
||||
454: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1561,8 +1561,8 @@ input element or textarea.
|
|||
<div class="method-source-code" id="M000059-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 381</span>
|
||||
381: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_cursor_position</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">position</span>
|
||||
382: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setCursorPosition'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">position</span>
|
||||
381: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_cursor_position</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">position</span>
|
||||
382: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setCursorPosition'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">position</span>
|
||||
383: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1596,8 +1596,8 @@ location and then one final one at the end location.
|
|||
<div class="method-source-code" id="M000060-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 393</span>
|
||||
393: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_mouse_speed</span> <span class="ruby-identifier">pixels</span>
|
||||
394: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setMouseSpeed'</span>, <span class="ruby-identifier">pixels</span>
|
||||
393: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_mouse_speed</span> <span class="ruby-identifier">pixels</span>
|
||||
394: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setMouseSpeed'</span>, <span class="ruby-identifier">pixels</span>
|
||||
395: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1634,8 +1634,8 @@ The default timeout is 30 seconds.
|
|||
<div class="method-source-code" id="M000069-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 480</span>
|
||||
480: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_timeout</span> <span class="ruby-identifier">timeout</span>
|
||||
481: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setTimeout'</span>, <span class="ruby-identifier">timeout</span>
|
||||
480: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_timeout</span> <span class="ruby-identifier">timeout</span>
|
||||
481: <span class="ruby-identifier">command</span> <span class="ruby-value str">'setTimeout'</span>, <span class="ruby-identifier">timeout</span>
|
||||
482: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1669,20 +1669,20 @@ CALL THIS AGAINST NON-TEST DATABASES. The supported <tt>options</tt> are
|
|||
<div class="method-source-code" id="M000009-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 14</span>
|
||||
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">options</span> = {}
|
||||
15: <span class="ruby-identifier">options</span> = {<span class="ruby-identifier">options</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">nil</span>} <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
|
||||
16:
|
||||
17: <span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:controller</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'selenium'</span>, <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'setup'</span>}
|
||||
18: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:keep_session</span>] = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-identifier">:keep_session</span>
|
||||
19:
|
||||
20: [<span class="ruby-identifier">:fixtures</span>, <span class="ruby-identifier">:clear_tables</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
|
||||
21: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">f</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">key</span>])
|
||||
22: <span class="ruby-identifier">f</span> = [<span class="ruby-identifier">f</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
|
||||
23: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">join</span> <span class="ruby-value str">','</span>
|
||||
24: <span class="ruby-keyword kw">end</span>
|
||||
25: <span class="ruby-keyword kw">end</span>
|
||||
26:
|
||||
27: <span class="ruby-identifier">open</span> <span class="ruby-identifier">opts</span>
|
||||
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">options</span> = {}
|
||||
15: <span class="ruby-identifier">options</span> = {<span class="ruby-identifier">options</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">nil</span>} <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
|
||||
16:
|
||||
17: <span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:controller</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'selenium'</span>, <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'setup'</span>}
|
||||
18: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:keep_session</span>] = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-identifier">:keep_session</span>
|
||||
19:
|
||||
20: [<span class="ruby-identifier">:fixtures</span>, <span class="ruby-identifier">:clear_tables</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
|
||||
21: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">f</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">key</span>])
|
||||
22: <span class="ruby-identifier">f</span> = [<span class="ruby-identifier">f</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
|
||||
23: <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">join</span> <span class="ruby-value str">','</span>
|
||||
24: <span class="ruby-keyword kw">end</span>
|
||||
25: <span class="ruby-keyword kw">end</span>
|
||||
26:
|
||||
27: <span class="ruby-identifier">open</span> <span class="ruby-identifier">opts</span>
|
||||
28: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1708,8 +1708,8 @@ or a new page is loaded.
|
|||
<div class="method-source-code" id="M000061-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 399</span>
|
||||
399: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift_key_down</span>
|
||||
400: <span class="ruby-identifier">command</span> <span class="ruby-value str">'shiftKeyDown'</span>
|
||||
399: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift_key_down</span>
|
||||
400: <span class="ruby-identifier">command</span> <span class="ruby-value str">'shiftKeyDown'</span>
|
||||
401: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1734,8 +1734,8 @@ Release the shift key.
|
|||
<div class="method-source-code" id="M000062-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 404</span>
|
||||
404: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift_key_up</span>
|
||||
405: <span class="ruby-identifier">command</span> <span class="ruby-value str">'shiftKeyUp'</span>
|
||||
404: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift_key_up</span>
|
||||
405: <span class="ruby-identifier">command</span> <span class="ruby-value str">'shiftKeyUp'</span>
|
||||
406: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1760,8 +1760,8 @@ This command is a synonym for <tt>store_expression</tt>.
|
|||
<div class="method-source-code" id="M000063-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 409</span>
|
||||
409: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span> <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
|
||||
410: <span class="ruby-identifier">command</span> <span class="ruby-value str">'store'</span>, <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
|
||||
409: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span> <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
|
||||
410: <span class="ruby-identifier">command</span> <span class="ruby-value str">'store'</span>, <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
|
||||
411: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1788,8 +1788,8 @@ single-input "Search" forms.
|
|||
<div class="method-source-code" id="M000025-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 162</span>
|
||||
162: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit</span> <span class="ruby-identifier">locator</span>
|
||||
163: <span class="ruby-identifier">command</span> <span class="ruby-value str">'submit'</span>, <span class="ruby-identifier">locator</span>
|
||||
162: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit</span> <span class="ruby-identifier">locator</span>
|
||||
163: <span class="ruby-identifier">command</span> <span class="ruby-value str">'submit'</span>, <span class="ruby-identifier">locator</span>
|
||||
164: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1820,8 +1820,8 @@ visible text.
|
|||
<div class="method-source-code" id="M000019-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 103</span>
|
||||
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
104: <span class="ruby-identifier">command</span> <span class="ruby-value str">'type'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
104: <span class="ruby-identifier">command</span> <span class="ruby-value str">'type'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
105: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1871,8 +1871,8 @@ send the keystroke events corresponding to what you just typed.
|
|||
<div class="method-source-code" id="M000064-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 428</span>
|
||||
428: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type_keys</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
429: <span class="ruby-identifier">command</span> <span class="ruby-value str">'typeKeys'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
428: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type_keys</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
429: <span class="ruby-identifier">command</span> <span class="ruby-value str">'typeKeys'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">value</span>
|
||||
430: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1897,8 +1897,8 @@ Uncheck a toggle-button (checkbox/radio).
|
|||
<div class="method-source-code" id="M000021-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 113</span>
|
||||
113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uncheck</span> <span class="ruby-identifier">locator</span>
|
||||
114: <span class="ruby-identifier">command</span> <span class="ruby-value str">'uncheck'</span>, <span class="ruby-identifier">locator</span>
|
||||
113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uncheck</span> <span class="ruby-identifier">locator</span>
|
||||
114: <span class="ruby-identifier">command</span> <span class="ruby-value str">'uncheck'</span>, <span class="ruby-identifier">locator</span>
|
||||
115: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1935,8 +1935,8 @@ JavaScript in there.
|
|||
<div class="method-source-code" id="M000068-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 467</span>
|
||||
467: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_for_condition</span> <span class="ruby-identifier">script</span>, <span class="ruby-identifier">timeout</span>
|
||||
468: <span class="ruby-identifier">command</span> <span class="ruby-value str">'waitForCondition'</span>, <span class="ruby-identifier">script</span>, <span class="ruby-identifier">timeout</span>
|
||||
467: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_for_condition</span> <span class="ruby-identifier">script</span>, <span class="ruby-identifier">timeout</span>
|
||||
468: <span class="ruby-identifier">command</span> <span class="ruby-value str">'waitForCondition'</span>, <span class="ruby-identifier">script</span>, <span class="ruby-identifier">timeout</span>
|
||||
469: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -1976,8 +1976,8 @@ Selenium command that caused a page-load.
|
|||
<div class="method-source-code" id="M000070-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 497</span>
|
||||
497: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_for_page_to_load</span> <span class="ruby-identifier">timeout</span>
|
||||
498: <span class="ruby-identifier">command</span> <span class="ruby-value str">'waitForPageToLoad'</span>, <span class="ruby-identifier">timeout</span>
|
||||
497: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_for_page_to_load</span> <span class="ruby-identifier">timeout</span>
|
||||
498: <span class="ruby-identifier">command</span> <span class="ruby-value str">'waitForPageToLoad'</span>, <span class="ruby-identifier">timeout</span>
|
||||
499: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -2005,8 +2005,8 @@ The <tt>timeout</tt> is specified in milliseconds.
|
|||
<div class="method-source-code" id="M000028-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 185</span>
|
||||
185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_for_popup</span> <span class="ruby-identifier">window_id</span>, <span class="ruby-identifier">timeout</span>
|
||||
186: <span class="ruby-identifier">command</span> <span class="ruby-value str">'waitForPopUp'</span>, <span class="ruby-identifier">window_id</span><span class="ruby-operator">||</span><span class="ruby-value str">'null'</span>, <span class="ruby-identifier">timeout</span>
|
||||
185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_for_popup</span> <span class="ruby-identifier">window_id</span>, <span class="ruby-identifier">timeout</span>
|
||||
186: <span class="ruby-identifier">command</span> <span class="ruby-value str">'waitForPopUp'</span>, <span class="ruby-identifier">window_id</span><span class="ruby-operator">||</span><span class="ruby-value str">'null'</span>, <span class="ruby-identifier">timeout</span>
|
||||
187: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -2031,8 +2031,8 @@ Gives focus to a window.
|
|||
<div class="method-source-code" id="M000065-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 433</span>
|
||||
433: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">window_focus</span> <span class="ruby-identifier">window_name</span>
|
||||
434: <span class="ruby-identifier">command</span> <span class="ruby-value str">'windowFocus'</span>, <span class="ruby-identifier">window_name</span>
|
||||
433: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">window_focus</span> <span class="ruby-identifier">window_name</span>
|
||||
434: <span class="ruby-identifier">command</span> <span class="ruby-value str">'windowFocus'</span>, <span class="ruby-identifier">window_name</span>
|
||||
435: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -2057,8 +2057,8 @@ Resize window to take up the entire screen.
|
|||
<div class="method-source-code" id="M000066-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_actions.rb, line 438</span>
|
||||
438: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">window_maximize</span> <span class="ruby-identifier">window_name</span>
|
||||
439: <span class="ruby-identifier">command</span> <span class="ruby-value str">'windowMaximize'</span>, <span class="ruby-identifier">window_name</span>
|
||||
438: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">window_maximize</span> <span class="ruby-identifier">window_name</span>
|
||||
439: <span class="ruby-identifier">command</span> <span class="ruby-value str">'windowMaximize'</span>, <span class="ruby-identifier">window_name</span>
|
||||
440: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue