Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

r828@D600 (orig r13): dev | 2006-06-06 12:03:24 +0100

 Added support for Selenium Core 0.7
 Added rcov task


git-svn-id: https://svn.openqa.org/svn/selenium-on-rails/trunk@14 9274398c-e119-0410-8437-aa71ef7847aa
  • Loading branch information...
commit 980d2ba343e32fc943cacfed40ec4d5f5dd10853 1 parent c5b37d2
Jonas authored
Showing with 4,093 additions and 2,046 deletions.
  1. +5 −5 README
  2. +8 −0 Rakefile
  3. +1 −1  doc/classes/SeleniumController.html
  4. +1 −1  doc/classes/SeleniumOnRails.html
  5. +14 −14 doc/classes/SeleniumOnRails/FixtureLoader.html
  6. +36 −36 doc/classes/SeleniumOnRails/Paths.html
  7. +2 −2 doc/classes/SeleniumOnRails/RSelenese.html
  8. +6 −6 doc/classes/SeleniumOnRails/Renderer.html
  9. +24 −24 doc/classes/SeleniumOnRails/SuiteRenderer.html
  10. +149 −47 doc/classes/SeleniumOnRails/TestBuilder.html
  11. +1,672 −0 doc/classes/SeleniumOnRails/TestBuilderAccessors.html
  12. +630 −237 doc/classes/SeleniumOnRails/TestBuilderActions.html
  13. +0 −1,172 doc/classes/SeleniumOnRails/TestBuilderChecks.html
  14. +7 −7 doc/files/README.html
  15. +114 −0 doc/files/lib/selenium_on_rails/test_builder_accessors_rb.html
  16. +113 −0 doc/files/lib/selenium_on_rails/test_builder_actions_rb.html
  17. +16 −4 doc/files/lib/selenium_on_rails/test_builder_rb.html
  18. +2 −1  doc/files/lib/selenium_on_rails_rb.html
  19. +1 −1  doc/fr_class_index.html
  20. +2 −0  doc/fr_file_index.html
  21. +77 −73 doc/fr_method_index.html
  22. +2 −2 generators/selenium/templates/rhtml.rhtml
  23. +1 −1  generators/selenium/templates/rselenese.rhtml
  24. +2 −2 generators/selenium/templates/selenese.rhtml
  25. +7 −5 lib/selenium_on_rails/paths.rb
  26. +36 −336 lib/selenium_on_rails/test_builder.rb
  27. +575 −0 lib/selenium_on_rails/test_builder_accessors.rb
  28. +283 −0 lib/selenium_on_rails/test_builder_actions.rb
  29. +1 −0  test/renderer_test.rb
  30. +304 −68 test/rselenese_test.rb
  31. +2 −1  test_data/rselenese.rsel
10 README
View
@@ -3,17 +3,17 @@
== Overview
Selenium on Rails provides an easy way to test Rails application with
-Selenium[http://www.openqa.org/selenium/].
+SeleniumCore[http://www.openqa.org/selenium-core/].
This plugin does four things:
-1. The Selenium files don't have to pollute <tt>/public</tt>, they can stay in the Selenium gem or in <tt>/vendor/selenium</tt>.
+1. The Selenium Core files don't have to pollute <tt>/public</tt>, they can stay in the Selenium gem or in <tt>/vendor/selenium</tt>.
2. No need to create suite files, they are generated on the fly -- one suite per directory in <tt>/test/selenium</tt> (suites can be nested).
3. Instead of writing the test cases in HTML you can use a number of better formats (see <tt>Formats</tt>).
4. Loading of fixtures and wiping of session (<tt>/selenium/setup</tt>).
== Installation
-1. Selenium needs to be available. It could either be installed as a gem (<tt>gem install selenium</tt>) or in <tt>/vendor/selenium/</tt>.
+1. Selenium Core needs to be available. It could either be installed as a gem (<tt>gem install selenium</tt>) or in <tt>/vendor/selenium/</tt>.
2. Install Selenium on Rails: <tt>script/plugin install http://andthennothing.net/svn/public/selenium_on_rails/</tt>
3. <i>If RedCloth is available the Selenese test cases can use it for better markup.</i>
4. Run the Rakefile in the plugin's directory to run the tests in order to see that everything works. (If RedCloth isn't installed a few tests will fail since they assume RedCloth is installed.)
@@ -149,8 +149,8 @@ the server when needed.
=== user_extension.js
Selenium has support for <tt>user_extension.js</tt> which is a way to extend the
-functionality of Selenium. However there is currently no easy way to add such a
-file in Selenium on Rails.
+functionality of Selenium Core. However there is currently no easy way to add
+such a file in Selenium on Rails.
=== More setup/teardown support?
8 Rakefile
View
@@ -17,3 +17,11 @@ task :rdoc do
rm_rf 'doc'
RDoc::RDoc.new.document(%w(--line-numbers --inline-source --title SeleniumOnRails README lib))
end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |t|
+ t.test_files = FileList['test/*_test.rb']
+ end
+rescue LoadError #if rcov isn't available, ignore
+end
2  doc/classes/SeleniumController.html
View
@@ -193,7 +193,7 @@ <h3 class="section-bar">Public Instance methods</h3>
<span class="ruby-comment cmt"># File lib/controllers/selenium_controller.rb, line 31</span>
31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">support_file</span>
32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:filename</span>].<span class="ruby-identifier">empty?</span>
-33: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:filename</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'TestRunner.html'</span>
+33: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:filename</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'TestRunner.html'</span>, <span class="ruby-identifier">:test</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'tests'</span>
34: <span class="ruby-keyword kw">return</span>
35: <span class="ruby-keyword kw">end</span>
36:
2  doc/classes/SeleniumOnRails.html
View
@@ -96,8 +96,8 @@ <h3 class="section-bar">Classes and Modules</h3>
Module <a href="SeleniumOnRails/Paths.html" class="link">SeleniumOnRails::Paths</a><br />
Module <a href="SeleniumOnRails/Renderer.html" class="link">SeleniumOnRails::Renderer</a><br />
Module <a href="SeleniumOnRails/SuiteRenderer.html" class="link">SeleniumOnRails::SuiteRenderer</a><br />
+Module <a href="SeleniumOnRails/TestBuilderAccessors.html" class="link">SeleniumOnRails::TestBuilderAccessors</a><br />
Module <a href="SeleniumOnRails/TestBuilderActions.html" class="link">SeleniumOnRails::TestBuilderActions</a><br />
-Module <a href="SeleniumOnRails/TestBuilderChecks.html" class="link">SeleniumOnRails::TestBuilderChecks</a><br />
Class <a href="SeleniumOnRails/RSelenese.html" class="link">SeleniumOnRails::RSelenese</a><br />
Class <a href="SeleniumOnRails/Selenese.html" class="link">SeleniumOnRails::Selenese</a><br />
Class <a href="SeleniumOnRails/TestBuilder.html" class="link">SeleniumOnRails::TestBuilder</a><br />
28 doc/classes/SeleniumOnRails/FixtureLoader.html
View
@@ -80,8 +80,8 @@
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000076">available_fixtures</a>&nbsp;&nbsp;
- <a href="#M000077">load_fixtures</a>&nbsp;&nbsp;
+ <a href="#M000048">available_fixtures</a>&nbsp;&nbsp;
+ <a href="#M000049">load_fixtures</a>&nbsp;&nbsp;
</div>
</div>
@@ -110,43 +110,43 @@ <h3 class="section-bar">Included Modules</h3>
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000076" class="method-detail">
- <a name="M000076"></a>
+ <div id="method-M000048" class="method-detail">
+ <a name="M000048"></a>
<div class="method-heading">
- <a href="#M000076" class="method-signature">
+ <a href="#M000048" class="method-signature">
<span class="method-name">available_fixtures</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000076-source">
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000048-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/fixture_loader.rb, line 6</span>
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">available_fixtures</span>
-7: <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">entries</span>(<span class="ruby-identifier">fixtures_path</span>).<span class="ruby-identifier">reject</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">fixtures_path</span>, <span class="ruby-identifier">f</span>))}
-8: <span class="ruby-identifier">files</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/\.[^.]*$/</span>, <span class="ruby-value str">''</span>)}
+7: <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>[<span class="ruby-node">&quot;#{fixtures_path}/*.{yml,csv}&quot;</span>]
+8: <span class="ruby-identifier">files</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">f</span>).<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/\.[^.]*$/</span>, <span class="ruby-value str">''</span>)}
9: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000077" class="method-detail">
- <a name="M000077"></a>
+ <div id="method-M000049" class="method-detail">
+ <a name="M000049"></a>
<div class="method-heading">
- <a href="#M000077" class="method-signature">
+ <a href="#M000049" class="method-signature">
<span class="method-name">load_fixtures</span><span class="method-args">(fixtures)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000077-source">
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000049-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/fixture_loader.rb, line 11</span>
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_fixtures</span> <span class="ruby-identifier">fixtures</span>
72 doc/classes/SeleniumOnRails/Paths.html
View
@@ -80,12 +80,12 @@
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000070">fixtures_path</a>&nbsp;&nbsp;
- <a href="#M000069">layout_path</a>&nbsp;&nbsp;
- <a href="#M000071">log_path</a>&nbsp;&nbsp;
- <a href="#M000066">selenium_path</a>&nbsp;&nbsp;
- <a href="#M000067">selenium_tests_path</a>&nbsp;&nbsp;
- <a href="#M000068">view_path</a>&nbsp;&nbsp;
+ <a href="#M000042">fixtures_path</a>&nbsp;&nbsp;
+ <a href="#M000041">layout_path</a>&nbsp;&nbsp;
+ <a href="#M000043">log_path</a>&nbsp;&nbsp;
+ <a href="#M000038">selenium_path</a>&nbsp;&nbsp;
+ <a href="#M000039">selenium_tests_path</a>&nbsp;&nbsp;
+ <a href="#M000040">view_path</a>&nbsp;&nbsp;
</div>
</div>
@@ -107,19 +107,19 @@ <h3 class="section-bar">Methods</h3>
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000070" class="method-detail">
- <a name="M000070"></a>
+ <div id="method-M000042" class="method-detail">
+ <a name="M000042"></a>
<div class="method-heading">
- <a href="#M000070" class="method-signature">
+ <a href="#M000042" class="method-signature">
<span class="method-name">fixtures_path</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000070-source">
+ onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000042-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/paths.rb, line 25</span>
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fixtures_path</span>
@@ -130,11 +130,11 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000069" class="method-detail">
- <a name="M000069"></a>
+ <div id="method-M000041" class="method-detail">
+ <a name="M000041"></a>
<div class="method-heading">
- <a href="#M000069" class="method-signature">
+ <a href="#M000041" class="method-signature">
<span class="method-name">layout_path</span><span class="method-args">()</span>
</a>
</div>
@@ -146,8 +146,8 @@ <h3 class="section-bar">Public Instance methods</h3>
paths to layout templates.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000069-source">
+ onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000041-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/paths.rb, line 19</span>
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">layout_path</span>
@@ -160,19 +160,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000071" class="method-detail">
- <a name="M000071"></a>
+ <div id="method-M000043" class="method-detail">
+ <a name="M000043"></a>
<div class="method-heading">
- <a href="#M000071" class="method-signature">
+ <a href="#M000043" class="method-signature">
<span class="method-name">log_path</span><span class="method-args">(log_file)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000071-source">
+ onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000043-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/paths.rb, line 29</span>
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_path</span> <span class="ruby-identifier">log_file</span>
@@ -183,19 +183,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000066" class="method-detail">
- <a name="M000066"></a>
+ <div id="method-M000038" class="method-detail">
+ <a name="M000038"></a>
<div class="method-heading">
- <a href="#M000066" class="method-signature">
+ <a href="#M000038" class="method-signature">
<span class="method-name">selenium_path</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000066-source">
+ onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000038-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/paths.rb, line 3</span>
3: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">selenium_path</span>
@@ -207,19 +207,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000067" class="method-detail">
- <a name="M000067"></a>
+ <div id="method-M000039" class="method-detail">
+ <a name="M000039"></a>
<div class="method-heading">
- <a href="#M000067" class="method-signature">
+ <a href="#M000039" class="method-signature">
<span class="method-name">selenium_tests_path</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000067-source">
+ onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000039-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/paths.rb, line 8</span>
8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">selenium_tests_path</span>
@@ -230,19 +230,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000068" class="method-detail">
- <a name="M000068"></a>
+ <div id="method-M000040" class="method-detail">
+ <a name="M000040"></a>
<div class="method-heading">
- <a href="#M000068" class="method-signature">
+ <a href="#M000040" class="method-signature">
<span class="method-name">view_path</span><span class="method-args">(view)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000068-source">
+ onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000040-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/paths.rb, line 12</span>
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">view_path</span> <span class="ruby-identifier">view</span>
4 doc/classes/SeleniumOnRails/RSelenese.html
View
@@ -192,10 +192,10 @@ <h3 class="section-bar">Public Instance methods</h3>
24: <span class="ruby-identifier">title</span> = (<span class="ruby-ivar">@view</span>.<span class="ruby-identifier">assigns</span>[<span class="ruby-value str">'page_title'</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">local_assigns</span>[<span class="ruby-value str">'page_title'</span>])
25: <span class="ruby-identifier">table</span>(<span class="ruby-identifier">title</span>) <span class="ruby-keyword kw">do</span>
26: <span class="ruby-identifier">test</span> = <span class="ruby-keyword kw">self</span> <span class="ruby-comment cmt">#to enable test.command</span>
-27:
+27:
28: <span class="ruby-identifier">assign_locals_code</span> = <span class="ruby-value str">''</span>
29: <span class="ruby-identifier">local_assigns</span>.<span class="ruby-identifier">each_key</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">assign_locals_code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{key} = local_assigns[#{key.inspect}];&quot;</span>}
-30:
+30:
31: <span class="ruby-identifier">eval</span> <span class="ruby-identifier">assign_locals_code</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">template</span>
32: <span class="ruby-keyword kw">end</span>
33: <span class="ruby-keyword kw">end</span>
12 doc/classes/SeleniumOnRails/Renderer.html
View
@@ -80,7 +80,7 @@
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000065">render_test_case</a>&nbsp;&nbsp;
+ <a href="#M000037">render_test_case</a>&nbsp;&nbsp;
</div>
</div>
@@ -110,19 +110,19 @@ <h3 class="section-bar">Included Modules</h3>
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000065" class="method-detail">
- <a name="M000065"></a>
+ <div id="method-M000037" class="method-detail">
+ <a name="M000037"></a>
<div class="method-heading">
- <a href="#M000065" class="method-signature">
+ <a href="#M000037" class="method-signature">
<span class="method-name">render_test_case</span><span class="method-args">(filename)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000065-source">
+ onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000037-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/renderer.rb, line 5</span>
5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_test_case</span> <span class="ruby-identifier">filename</span>
48 doc/classes/SeleniumOnRails/SuiteRenderer.html
View
@@ -80,10 +80,10 @@
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000075">link_to_test_case</a>&nbsp;&nbsp;
- <a href="#M000074">test_cases</a>&nbsp;&nbsp;
- <a href="#M000072">test_suite_name</a>&nbsp;&nbsp;
- <a href="#M000073">test_suites</a>&nbsp;&nbsp;
+ <a href="#M000047">link_to_test_case</a>&nbsp;&nbsp;
+ <a href="#M000046">test_cases</a>&nbsp;&nbsp;
+ <a href="#M000044">test_suite_name</a>&nbsp;&nbsp;
+ <a href="#M000045">test_suites</a>&nbsp;&nbsp;
</div>
</div>
@@ -105,19 +105,19 @@ <h3 class="section-bar">Methods</h3>
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000075" class="method-detail">
- <a name="M000075"></a>
+ <div id="method-M000047" class="method-detail">
+ <a name="M000047"></a>
<div class="method-heading">
- <a href="#M000075" class="method-signature">
+ <a href="#M000047" class="method-signature">
<span class="method-name">link_to_test_case</span><span class="method-args">(suite_name, filename)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000075-source">
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000047-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/suite_renderer.rb, line 24</span>
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_to_test_case</span> <span class="ruby-identifier">suite_name</span>, <span class="ruby-identifier">filename</span>
@@ -129,19 +129,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000074" class="method-detail">
- <a name="M000074"></a>
+ <div id="method-M000046" class="method-detail">
+ <a name="M000046"></a>
<div class="method-heading">
- <a href="#M000074" class="method-signature">
+ <a href="#M000046" class="method-signature">
<span class="method-name">test_cases</span><span class="method-args">(path)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000074-source">
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000046-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/suite_renderer.rb, line 18</span>
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cases</span> <span class="ruby-identifier">path</span>
@@ -154,19 +154,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000072" class="method-detail">
- <a name="M000072"></a>
+ <div id="method-M000044" class="method-detail">
+ <a name="M000044"></a>
<div class="method-heading">
- <a href="#M000072" class="method-signature">
+ <a href="#M000044" class="method-signature">
<span class="method-name">test_suite_name</span><span class="method-args">(path)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000072-source">
+ onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000044-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/suite_renderer.rb, line 2</span>
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_suite_name</span> <span class="ruby-identifier">path</span>
@@ -178,19 +178,19 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000073" class="method-detail">
- <a name="M000073"></a>
+ <div id="method-M000045" class="method-detail">
+ <a name="M000045"></a>
<div class="method-heading">
- <a href="#M000073" class="method-signature">
+ <a href="#M000045" class="method-signature">
<span class="method-name">test_suites</span><span class="method-args">(path)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000073-source">
+ onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000045-source">
<pre>
<span class="ruby-comment cmt"># File lib/selenium_on_rails/suite_renderer.rb, line 7</span>
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_suites</span> <span class="ruby-identifier">path</span>
196 doc/classes/SeleniumOnRails/TestBuilder.html
View
@@ -87,14 +87,14 @@
See <a
href="TestBuilderActions.html">SeleniumOnRails::TestBuilderActions</a> for
the available actions and <a
-href="TestBuilderChecks.html">SeleniumOnRails::TestBuilderChecks</a> for
-the available checks.
+href="TestBuilderAccessors.html">SeleniumOnRails::TestBuilderAccessors</a>
+for the available checks.
</p>
<p>
For more information on the commands supported by <a
href="TestBuilder.html">TestBuilder</a>, see the Selenium Commands
Documentation at <a
-href="http://www.openqa.org/selenium/seleniumReference.html">www.openqa.org/selenium/seleniumReference.html</a>.
+href="http://release.openqa.org/selenium-core/nightly/reference.html">release.openqa.org/selenium-core/nightly/reference.html</a>.
</p>
</div>
@@ -106,10 +106,14 @@
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000087">command</a>&nbsp;&nbsp;
- <a href="#M000085">new</a>&nbsp;&nbsp;
+ <a href="#M000088">command</a>&nbsp;&nbsp;
+ <a href="#M000090">command_and_wait</a>&nbsp;&nbsp;
+ <a href="#M000089">command_verbatim</a>&nbsp;&nbsp;
+ <a href="#M000085">exactize</a>&nbsp;&nbsp;
+ <a href="#M000091">make_command_waiting</a>&nbsp;&nbsp;
+ <a href="#M000086">new</a>&nbsp;&nbsp;
<a href="#M000084">selenize</a>&nbsp;&nbsp;
- <a href="#M000086">table</a>&nbsp;&nbsp;
+ <a href="#M000087">table</a>&nbsp;&nbsp;
</div>
</div>
@@ -122,7 +126,7 @@ <h3 class="section-bar">Included Modules</h3>
<div id="includes-list">
<span class="include-name"><a href="TestBuilderActions.html">SeleniumOnRails::TestBuilderActions</a></span>
- <span class="include-name"><a href="TestBuilderChecks.html">SeleniumOnRails::TestBuilderChecks</a></span>
+ <span class="include-name"><a href="TestBuilderAccessors.html">SeleniumOnRails::TestBuilderAccessors</a></span>
</div>
</div>
@@ -139,11 +143,11 @@ <h3 class="section-bar">Included Modules</h3>
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000085" class="method-detail">
- <a name="M000085"></a>
+ <div id="method-M000086" class="method-detail">
+ <a name="M000086"></a>
<div class="method-heading">
- <a href="#M000085" class="method-signature">
+ <a href="#M000086" class="method-signature">
<span class="method-name">new</span><span class="method-args">(view)</span>
</a>
</div>
@@ -153,15 +157,15 @@ <h3 class="section-bar">Public Class methods</h3>
Create a new <a href="TestBuilder.html">TestBuilder</a> for <em>view</em>.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000085-source">
+ onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000086-source">
<pre>
- <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 346</span>
-346: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">view</span>
-347: <span class="ruby-ivar">@view</span> = <span class="ruby-identifier">view</span>
-348: <span class="ruby-ivar">@output</span> = <span class="ruby-value str">''</span>
-349: <span class="ruby-ivar">@xml</span> = <span class="ruby-constant">Builder</span><span class="ruby-operator">::</span><span class="ruby-constant">XmlMarkup</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:indent</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">2</span>, <span class="ruby-identifier">:target</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@output</span>
-350: <span class="ruby-keyword kw">end</span>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 26</span>
+26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">view</span>
+27: <span class="ruby-ivar">@view</span> = <span class="ruby-identifier">view</span>
+28: <span class="ruby-ivar">@output</span> = <span class="ruby-value str">''</span>
+29: <span class="ruby-ivar">@xml</span> = <span class="ruby-constant">Builder</span><span class="ruby-operator">::</span><span class="ruby-constant">XmlMarkup</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:indent</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">2</span>, <span class="ruby-identifier">:target</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@output</span>
+30: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
@@ -184,10 +188,10 @@ <h3 class="section-bar">Public Class methods</h3>
onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000084-source">
<pre>
- <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 341</span>
-341: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">selenize</span>(<span class="ruby-identifier">str</span>)
-342: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">camelize</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^[A-Z]/</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">downcase</span> }
-343: <span class="ruby-keyword kw">end</span>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 15</span>
+15: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">selenize</span> <span class="ruby-identifier">str</span>
+16: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">camelize</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^[A-Z]/</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">downcase</span> }
+17: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
@@ -195,11 +199,11 @@ <h3 class="section-bar">Public Class methods</h3>
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000087" class="method-detail">
- <a name="M000087"></a>
+ <div id="method-M000088" class="method-detail">
+ <a name="M000088"></a>
<div class="method-heading">
- <a href="#M000087" class="method-signature">
+ <a href="#M000088" class="method-signature">
<span class="method-name">command</span><span class="method-args">(cmd, target=nil, value=nil)</span>
</a>
</div>
@@ -210,27 +214,125 @@ <h3 class="section-bar">Public Instance methods</h3>
<em>value</em>.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000087-source">
+ onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000088-source">
<pre>
- <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 361</span>
-361: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">target</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>
-362: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
-363: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">cmd</span>
-364: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">target</span>
-365: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">value</span>
-366: <span class="ruby-keyword kw">end</span>
-367: <span class="ruby-keyword kw">end</span>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 41</span>
+41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">target</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>
+42: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
+43: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">cmd</span>
+44: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">target</span>
+45: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">value</span>
+46: <span class="ruby-keyword kw">end</span>
+47: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000086" class="method-detail">
- <a name="M000086"></a>
+ <div id="method-M000090" class="method-detail">
+ <a name="M000090"></a>
<div class="method-heading">
- <a href="#M000086" class="method-signature">
+ <a href="#M000090" class="method-signature">
+ <span class="method-name">command_and_wait</span><span class="method-args">(cmd, target=nil, value=nil)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Same as <em>command</em> but add <em>AndWait</em> to the name of
+<em>cmd</em>.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000090-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 52</span>
+52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command_and_wait</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">target</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>
+53: <span class="ruby-identifier">command_verbatim</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'AndWait'</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">value</span>
+54: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000089" class="method-detail">
+ <a name="M000089"></a>
+
+ <div class="method-heading">
+ <span class="method-name">command_verbatim</span><span class="method-args">(cmd, target=nil, value=nil)</span>
+ </div>
+
+ <div class="method-description">
+ <p>
+Alias for <a href="TestBuilder.html#M000088">command</a>
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000085" class="method-detail">
+ <a name="M000085"></a>
+
+ <div class="method-heading">
+ <a href="#M000085" class="method-signature">
+ <span class="method-name">exactize</span><span class="method-args">(pattern)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Prepends <em>pattern</em> with &#8216;exact:&#8217; if it would be
+considered containing string-match pattern otherwise.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000085-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 21</span>
+21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exactize</span> <span class="ruby-identifier">pattern</span>
+22: <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">':'</span>) <span class="ruby-operator">?</span> <span class="ruby-node">&quot;exact:#{pattern}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">pattern</span>
+23: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000091" class="method-detail">
+ <a name="M000091"></a>
+
+ <div class="method-heading">
+ <a href="#M000091" class="method-signature">
+ <span class="method-name">make_command_waiting</span><span class="method-args">() {|| ...}</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Re routes commands in the provided block to <a
+href="TestBuilder.html#M000090">command_and_wait</a> instead of <a
+href="TestBuilder.html#M000088">command</a>.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000091-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 58</span>
+58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_command_waiting</span>
+59: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:alias_method</span>, <span class="ruby-identifier">:command</span>, <span class="ruby-identifier">:command_and_wait</span>
+60: <span class="ruby-keyword kw">yield</span>
+61: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:alias_method</span>, <span class="ruby-identifier">:command</span>, <span class="ruby-identifier">:command_verbatim</span>
+62: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000087" class="method-detail">
+ <a name="M000087"></a>
+
+ <div class="method-heading">
+ <a href="#M000087" class="method-signature">
<span class="method-name">table</span><span class="method-args">(title) {|self| ...}</span>
</a>
</div>
@@ -240,16 +342,16 @@ <h3 class="section-bar">Public Instance methods</h3>
Add a new table of tests, and return the HTML.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000086-source">
+ onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000087-source">
<pre>
- <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 353</span>
-353: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span> <span class="ruby-identifier">title</span>
-354: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
-355: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span> <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">th</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">:colspan</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">3</span>) <span class="ruby-keyword kw">end</span>
-356: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span>
-357: <span class="ruby-keyword kw">end</span>
-358: <span class="ruby-keyword kw">end</span>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 33</span>
+33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span> <span class="ruby-identifier">title</span>
+34: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
+35: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span> <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">th</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">:colspan</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">3</span>) <span class="ruby-keyword kw">end</span>
+36: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span>
+37: <span class="ruby-keyword kw">end</span>
+38: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
1,672 doc/classes/SeleniumOnRails/TestBuilderAccessors.html
View
@@ -0,0 +1,1672 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!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" xml:lang="en" lang="en">
+<head>
+ <title>Module: SeleniumOnRails::TestBuilderAccessors</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">SeleniumOnRails::TestBuilderAccessors</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/selenium_on_rails/test_builder_accessors_rb.html">
+ lib/selenium_on_rails/test_builder_accessors.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+The accessors available for <a
+href="TestBuilder.html">SeleniumOnRails::TestBuilder</a> tests.
+</p>
+<p>
+For each <tt>store_foo</tt> there&#8217;s <tt>assert_foo</tt>,
+<tt>assert_not_foo</tt>, <tt>verify_foo</tt>, <tt>verify_not_foo</tt>,
+<tt>wait_for_foo</tt>, <tt>wait_for_not_foo</tt>.
+</p>
+
+ </div>
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000056">store_absolute_location</a>&nbsp;&nbsp;
+ <a href="#M000053">store_alert</a>&nbsp;&nbsp;
+ <a href="#M000050">store_alert_present</a>&nbsp;&nbsp;
+ <a href="#M000073">store_all_buttons</a>&nbsp;&nbsp;
+ <a href="#M000075">store_all_fields</a>&nbsp;&nbsp;
+ <a href="#M000074">store_all_links</a>&nbsp;&nbsp;
+ <a href="#M000068">store_attribute</a>&nbsp;&nbsp;
+ <a href="#M000059">store_body_text</a>&nbsp;&nbsp;
+ <a href="#M000063">store_checked</a>&nbsp;&nbsp;
+ <a href="#M000054">store_confirmation</a>&nbsp;&nbsp;
+ <a href="#M000052">store_confirmation_present</a>&nbsp;&nbsp;
+ <a href="#M000072">store_editable</a>&nbsp;&nbsp;
+ <a href="#M000070">store_element_present</a>&nbsp;&nbsp;
+ <a href="#M000062">store_eval</a>&nbsp;&nbsp;
+ <a href="#M000077">store_expression</a>&nbsp;&nbsp;
+ <a href="#M000076">store_html_source</a>&nbsp;&nbsp;
+ <a href="#M000057">store_location</a>&nbsp;&nbsp;
+ <a href="#M000055">store_prompt</a>&nbsp;&nbsp;
+ <a href="#M000051">store_prompt_present</a>&nbsp;&nbsp;
+ <a href="#M000067">store_select_options</a>&nbsp;&nbsp;
+ <a href="#M000065">store_selected</a>&nbsp;&nbsp;
+ <a href="#M000066">store_selected_options</a>&nbsp;&nbsp;
+ <a href="#M000064">store_table</a>&nbsp;&nbsp;
+ <a href="#M000061">store_text</a>&nbsp;&nbsp;
+ <a href="#M000069">store_text_present</a>&nbsp;&nbsp;
+ <a href="#M000058">store_title</a>&nbsp;&nbsp;
+ <a href="#M000060">store_value</a>&nbsp;&nbsp;
+ <a href="#M000071">store_visible</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000056" class="method-detail">
+ <a name="M000056"></a>
+
+ <div class="method-heading">
+ <a href="#M000056" class="method-signature">
+ <span class="method-name">store_absolute_location</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Gets the absolute URL of the current page.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_absolute_location(pattern)</tt>
+
+</li>
+<li><tt>assert_not_absolute_location(pattern)</tt>
+
+</li>
+<li><tt>verify_absolute_location_present(pattern)</tt>
+
+</li>
+<li><tt>verify_not_absolute_location(pattern)</tt>
+
+</li>
+<li><tt>wait_for_absolute_location(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_absolute_location(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000056-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 129</span>
+129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_absolute_location</span> <span class="ruby-identifier">variable_name</span>
+130: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAbsoluteLocation'</span>, <span class="ruby-identifier">variable_name</span>
+131: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000053" class="method-detail">
+ <a name="M000053"></a>
+
+ <div class="method-heading">
+ <a href="#M000053" class="method-signature">
+ <span class="method-name">store_alert</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Retrieves the message of a JavaScript alert generated during the previous
+action, or fail if there were no alerts.
+</p>
+<p>
+Getting an alert has the same effect as manually clicking OK. If an alert
+is generated but you do not get/verify it, the next Selenium action will
+fail.
+</p>
+<p>
+NOTE: under Selenium, JavaScript alerts will NOT pop up a visible alert
+dialog.
+</p>
+<p>
+NOTE: Selenium does NOT support JavaScript alerts that are generated in a
+page&#8217;s <tt>onload()</tt> event handler. In this case a visible dialog
+WILL be generated and Selenium will hang until someone manually clicks OK.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_alert(pattern)</tt>
+
+</li>
+<li><tt>assert_not_alert(pattern)</tt>
+
+</li>
+<li><tt>verify_alert_present(pattern)</tt>
+
+</li>
+<li><tt>verify_not_alert(pattern)</tt>
+
+</li>
+<li><tt>wait_for_alert(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_alert(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000053-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 66</span>
+66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_alert</span> <span class="ruby-identifier">variable_name</span>
+67: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAlert'</span>, <span class="ruby-identifier">variable_name</span>
+68: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000050" class="method-detail">
+ <a name="M000050"></a>
+
+ <div class="method-heading">
+ <a href="#M000050" class="method-signature">
+ <span class="method-name">store_alert_present</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Has an alert occurred?
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_alert_present</tt>
+
+</li>
+<li><tt>assert_alert_not_present</tt>
+
+</li>
+<li><tt>verify_alert_present</tt>
+
+</li>
+<li><tt>verify_alert_not_present</tt>
+
+</li>
+<li><tt>wait_for_alert_present</tt>
+
+</li>
+<li><tt>wait_for_alert_not_present</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000050-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 15</span>
+15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_alert_present</span> <span class="ruby-identifier">variable_name</span>
+16: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAlertPresent'</span>, <span class="ruby-identifier">variable_name</span>
+17: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000073" class="method-detail">
+ <a name="M000073"></a>
+
+ <div class="method-heading">
+ <a href="#M000073" class="method-signature">
+ <span class="method-name">store_all_buttons</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns the IDs of all buttons on the page.
+</p>
+<p>
+If a given button has no ID, it will appear as &quot;&quot; in this array.
+</p>
+<p>
+The <tt>pattern</tt> for the automatically generated assertions can either
+take an array or a pattern.
+</p>
+<pre>
+ assert_all_buttons ['but1', 'but2']
+ assert_all_buttons 'but?,but?*'
+</pre>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_all_buttons(pattern)</tt>
+
+</li>
+<li><tt>assert_not_all_buttons(pattern)</tt>
+
+</li>
+<li><tt>verify_all_buttons(pattern)</tt>
+
+</li>
+<li><tt>verify_not_all_buttons(pattern)</tt>
+
+</li>
+<li><tt>wait_for_all_buttons(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_all_buttons(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000073-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 400</span>
+400: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_buttons</span> <span class="ruby-identifier">variable_name</span>
+401: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllButtons'</span>, <span class="ruby-identifier">variable_name</span>
+402: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000075" class="method-detail">
+ <a name="M000075"></a>
+
+ <div class="method-heading">
+ <a href="#M000075" class="method-signature">
+ <span class="method-name">store_all_fields</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns the IDs of all input fields on the page.
+</p>
+<p>
+If a given field has no ID, it will appear as &quot;&quot; in this array.
+</p>
+<p>
+The <tt>pattern</tt> for the automatically generated assertions can either
+take an array or a pattern.
+</p>
+<pre>
+ assert_all_fields ['field1', 'field2']
+ assert_all_fields 'field?,field?*'
+</pre>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_all_fields(pattern)</tt>
+
+</li>
+<li><tt>assert_not_all_fields(pattern)</tt>
+
+</li>
+<li><tt>verify_all_fields(pattern)</tt>
+
+</li>
+<li><tt>verify_not_all_fields(pattern)</tt>
+
+</li>
+<li><tt>wait_for_all_fields(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_all_fields(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000075-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 440</span>
+440: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_fields</span> <span class="ruby-identifier">variable_name</span>
+441: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllFields'</span>, <span class="ruby-identifier">variable_name</span>
+442: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000074" class="method-detail">
+ <a name="M000074"></a>
+
+ <div class="method-heading">
+ <a href="#M000074" class="method-signature">
+ <span class="method-name">store_all_links</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns the IDs of all links on the page.
+</p>
+<p>
+If a given link has no ID, it will appear as &quot;&quot; in this array.
+</p>
+<p>
+The <tt>pattern</tt> for the automatically generated assertions can either
+take an array or a pattern.
+</p>
+<pre>
+ assert_all_links ['link1', 'link2']
+ assert_all_links 'link?,link?*'
+</pre>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_all_links(pattern)</tt>
+
+</li>
+<li><tt>assert_not_all_links(pattern)</tt>
+
+</li>
+<li><tt>verify_all_links(pattern)</tt>
+
+</li>
+<li><tt>verify_not_all_links(pattern)</tt>
+
+</li>
+<li><tt>wait_for_all_links(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_all_links(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000074-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 420</span>
+420: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_links</span> <span class="ruby-identifier">variable_name</span>
+421: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllLinks'</span>, <span class="ruby-identifier">variable_name</span>
+422: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000068" class="method-detail">
+ <a name="M000068"></a>
+
+ <div class="method-heading">
+ <a href="#M000068" class="method-signature">
+ <span class="method-name">store_attribute</span><span class="method-args">(locator, attribute_name, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Gets the value of an element attribute.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_attribute(locator, attribute_name, pattern)</tt>
+
+</li>
+<li><tt>assert_not_attribute(locator, attribute_name, pattern)</tt>
+
+</li>
+<li><tt>verify_attribute_present(locator, attribute_name, pattern)</tt>
+
+</li>
+<li><tt>verify_not_attribute(locator, attribute_name, pattern)</tt>
+
+</li>
+<li><tt>wait_for_attribute(locator, attribute_name, pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_attribute(locator, attribute_name, pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000068-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 322</span>
+322: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_attribute</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">attribute_name</span>, <span class="ruby-identifier">variable_name</span>
+323: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAttribute'</span>, <span class="ruby-node">&quot;#{locator}@#{attribute_name}&quot;</span>, <span class="ruby-identifier">variable_name</span>
+324: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000059" class="method-detail">
+ <a name="M000059"></a>
+
+ <div class="method-heading">
+ <a href="#M000059" class="method-signature">
+ <span class="method-name">store_body_text</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Gets the entire text of the page.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_body_text(pattern)</tt>
+
+</li>
+<li><tt>assert_not_body_text(pattern)</tt>
+
+</li>
+<li><tt>verify_body_text_present(pattern)</tt>
+
+</li>
+<li><tt>verify_not_body_text(pattern)</tt>
+
+</li>
+<li><tt>wait_for_body_text(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_body_text(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000059-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 169</span>
+169: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_body_text</span> <span class="ruby-identifier">variable_name</span>
+170: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeBodyText'</span>, <span class="ruby-identifier">variable_name</span>
+171: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000063" class="method-detail">
+ <a name="M000063"></a>
+
+ <div class="method-heading">
+ <a href="#M000063" class="method-signature">
+ <span class="method-name">store_checked</span><span class="method-args">(locator, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Gets whether a toggle-button (checkbox/radio) is checked. Fails if the
+specified element doesn&#8217;t exist or isn&#8217;t a toggle-button.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_checked(locator, pattern)</tt>
+
+</li>
+<li><tt>assert_not_checked(locator, pattern)</tt>
+
+</li>
+<li><tt>verify_checked_present(locator, pattern)</tt>
+
+</li>
+<li><tt>verify_not_checked(locator, pattern)</tt>
+
+</li>
+<li><tt>wait_for_checked(locator, pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_checked(locator, pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000063-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 239</span>
+239: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_checked</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
+240: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeChecked'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
+241: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000054" class="method-detail">
+ <a name="M000054"></a>
+
+ <div class="method-heading">
+ <a href="#M000054" class="method-signature">
+ <span class="method-name">store_confirmation</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Retrieves the message of a JavaScript confirmation dialog generated during
+the previous action.
+</p>
+<p>
+By default, the confirm function will return <tt>true</tt>, having the same
+effect as manually clicking OK. This can be changed by prior execution of
+the <tt>choose_cancel_on_next_confirmation</tt> command. If a confirmation
+is generated but you do not get/verify it, the next Selenium action will
+fail.
+</p>
+<p>
+NOTE: under Selenium, JavaScript confirmations will NOT pop up a visible
+dialog.
+</p>
+<p>
+NOTE: Selenium does NOT support JavaScript confirmations that are generated
+in a page&#8217;s <tt>onload()</tt> event handler. In this case a visible
+dialog WILL be generated and Selenium will hang until you manually click
+OK.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_confirmation(pattern)</tt>
+
+</li>
+<li><tt>assert_not_confirmation(pattern)</tt>
+
+</li>
+<li><tt>verify_confirmation_present(pattern)</tt>
+
+</li>
+<li><tt>verify_not_confirmation(pattern)</tt>
+
+</li>
+<li><tt>wait_for_confirmation(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_confirmation(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000054-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 92</span>
+92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_confirmation</span> <span class="ruby-identifier">variable_name</span>
+93: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeConfirmation'</span>, <span class="ruby-identifier">variable_name</span>
+94: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000052" class="method-detail">
+ <a name="M000052"></a>
+
+ <div class="method-heading">
+ <a href="#M000052" class="method-signature">
+ <span class="method-name">store_confirmation_present</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Has <tt>confirm()</tt> been called?
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_confirmation_present</tt>
+
+</li>
+<li><tt>assert_confirmation_not_present</tt>
+
+</li>
+<li><tt>verify_confirmation_present</tt>
+
+</li>
+<li><tt>verify_confirmation_not_present</tt>
+
+</li>
+<li><tt>wait_for_confirmation_present</tt>
+
+</li>
+<li><tt>wait_for_confirmation_not_present</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000052-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 41</span>
+41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_confirmation_present</span> <span class="ruby-identifier">variable_name</span>
+42: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeConfirmationPresent'</span>, <span class="ruby-identifier">variable_name</span>
+43: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000072" class="method-detail">
+ <a name="M000072"></a>
+
+ <div class="method-heading">
+ <a href="#M000072" class="method-signature">
+ <span class="method-name">store_editable</span><span class="method-args">(locator, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Determines whether the specified input element is editable, i.e.
+hasn&#8217;t been disabled. This method will fail if the specified element
+isn&#8217;t an input element.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_editable(locator)</tt>
+
+</li>
+<li><tt>assert_not_editable(locator)</tt>
+
+</li>
+<li><tt>verify_editable(locator)</tt>
+
+</li>
+<li><tt>verify_not_editable(locator)</tt>
+
+</li>
+<li><tt>wait_for_editable(locator)</tt>
+
+</li>
+<li><tt>wait_for_not_editable(locator)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000072-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 380</span>
+380: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_editable</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
+381: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeEditable'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
+382: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000070" class="method-detail">
+ <a name="M000070"></a>
+
+ <div class="method-heading">
+ <a href="#M000070" class="method-signature">
+ <span class="method-name">store_element_present</span><span class="method-args">(locator, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Verifies that the specified element is somewhere on the page.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_element_present(locator)</tt>
+
+</li>
+<li><tt>assert_element_not_present(locator)</tt>
+
+</li>
+<li><tt>verify_element_present(locator)</tt>
+
+</li>
+<li><tt>verify_element_not_present(locator)</tt>
+
+</li>
+<li><tt>wait_for_element_present(locator)</tt>
+
+</li>
+<li><tt>wait_for_element_not_present(locator)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000070-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 349</span>
+349: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_present</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
+350: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementPresent'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
+351: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000062" class="method-detail">
+ <a name="M000062"></a>
+
+ <div class="method-heading">
+ <a href="#M000062" class="method-signature">
+ <span class="method-name">store_eval</span><span class="method-args">(script, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Gets the result of evaluating the specified JavaScript snippet. The snippet
+may have multiple lines, but only the result of the last line will be
+returned.
+</p>
+<p>
+Note that, by default, the snippet will run in the context of the
+&quot;selenium&quot; object itself, so <tt>this</tt> will refer to the
+Selenium object, and <tt>window</tt> will refer to the top-level runner
+test window, not the window of your application.
+</p>
+<p>
+If you need a reference to the window of your application, you can refer to
+<tt>this.browserbot.getCurrentWindow()</tt> and if you need to use a
+locator to refer to a single element in your application page, you can use
+<tt>this.page().findElement(&quot;foo&quot;)</tt> where
+<tt>&quot;foo&quot;</tt> is your locator.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_eval(script, pattern)</tt>
+
+</li>
+<li><tt>assert_not_eval(script, pattern)</tt>
+
+</li>
+<li><tt>verify_eval_present(script, pattern)</tt>
+
+</li>
+<li><tt>verify_not_eval(script, pattern)</tt>
+
+</li>
+<li><tt>wait_for_eval(script, pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_eval(script, pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000062-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 225</span>
+225: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_eval</span> <span class="ruby-identifier">script</span>, <span class="ruby-identifier">variable_name</span>
+226: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeEval'</span>, <span class="ruby-identifier">script</span>, <span class="ruby-identifier">variable_name</span>
+227: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000077" class="method-detail">
+ <a name="M000077"></a>
+
+ <div class="method-heading">
+ <a href="#M000077" class="method-signature">
+ <span class="method-name">store_expression</span><span class="method-args">(expression, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns the specified expression.
+</p>
+<p>
+This is useful because of JavaScript preprocessing.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_expression(expression, pattern)</tt>
+
+</li>
+<li><tt>assert_not_expression(expression, pattern)</tt>
+
+</li>
+<li><tt>verify_expression(expression, pattern)</tt>
+
+</li>
+<li><tt>verify_not_expression(expression, pattern)</tt>
+
+</li>
+<li><tt>wait_for_expression(expression, pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_expression(expression, pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000077-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 468</span>
+468: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_expression</span> <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
+469: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeExpression'</span>, <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
+470: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000076" class="method-detail">
+ <a name="M000076"></a>
+
+ <div class="method-heading">
+ <a href="#M000076" class="method-signature">
+ <span class="method-name">store_html_source</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns the entire HTML source between the opening and closing
+&quot;html&quot; tags.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_html_source(pattern)</tt>
+
+</li>
+<li><tt>assert_not_html_source(pattern)</tt>
+
+</li>
+<li><tt>verify_html_source(pattern)</tt>
+
+</li>
+<li><tt>verify_not_html_source(pattern)</tt>
+
+</li>
+<li><tt>wait_for_html_source(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_html_source(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000076-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 453</span>
+453: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_html_source</span> <span class="ruby-identifier">variable_name</span>
+454: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeHtmlSource'</span>, <span class="ruby-identifier">variable_name</span>
+455: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000057" class="method-detail">
+ <a name="M000057"></a>
+
+ <div class="method-heading">
+ <a href="#M000057" class="method-signature">
+ <span class="method-name">store_location</span><span class="method-args">(expected_location, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Verify the location of the current page ends with the expected location. If
+an URL querystring is provided, this is checked as well.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_location(pattern)</tt>
+
+</li>
+<li><tt>assert_not_location(pattern)</tt>
+
+</li>
+<li><tt>verify_location_present(pattern)</tt>
+
+</li>
+<li><tt>verify_not_location(pattern)</tt>
+
+</li>
+<li><tt>wait_for_location(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_location(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000057-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 143</span>
+143: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_location</span> <span class="ruby-identifier">expected_location</span>, <span class="ruby-identifier">variable_name</span>
+144: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeLocation'</span>, <span class="ruby-identifier">expected_location</span>, <span class="ruby-identifier">variable_name</span>
+145: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000055" class="method-detail">
+ <a name="M000055"></a>
+
+ <div class="method-heading">
+ <a href="#M000055" class="method-signature">
+ <span class="method-name">store_prompt</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Retrieves the message of a JavaScript question prompt dialog generated
+during the previous action.
+</p>
+<p>
+Successful handling of the prompt requires prior execution of the
+<tt>answer_on_next_prompt</tt> command. If a prompt is generated but you do
+not get/verify it, the next Selenium action will fail.
+</p>
+<p>
+NOTE: under Selenium, JavaScript prompts will NOT pop up a visible dialog.
+</p>
+<p>
+NOTE: Selenium does NOT support JavaScript prompts that are generated in a
+page&#8217;s <tt>onload()</tt> event handler. In this case a visible dialog
+WILL be generated and Selenium will hang until someone manually clicks OK.
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_prompt(pattern)</tt>
+
+</li>
+<li><tt>assert_not_prompt(pattern)</tt>
+
+</li>
+<li><tt>verify_prompt_present(pattern)</tt>
+
+</li>
+<li><tt>verify_not_prompt(pattern)</tt>
+
+</li>
+<li><tt>wait_for_prompt(pattern)</tt>
+
+</li>
+<li><tt>wait_for_not_prompt(pattern)</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000055-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 116</span>
+116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_prompt</span> <span class="ruby-identifier">variable_name</span>
+117: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storePrompt'</span>, <span class="ruby-identifier">variable_name</span>
+118: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000051" class="method-detail">
+ <a name="M000051"></a>
+
+ <div class="method-heading">
+ <a href="#M000051" class="method-signature">
+ <span class="method-name">store_prompt_present</span><span class="method-args">(variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Has a prompt occurred?
+</p>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_prompt_present</tt>
+
+</li>
+<li><tt>assert_prompt_not_present</tt>
+
+</li>
+<li><tt>verify_prompt_present</tt>
+
+</li>
+<li><tt>verify_prompt_not_present</tt>
+
+</li>
+<li><tt>wait_for_prompt_present</tt>
+
+</li>
+<li><tt>wait_for_prompt_not_present</tt>
+
+</li>
+</ul>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000051-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 28</span>
+28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_prompt_present</span> <span class="ruby-identifier">variable_name</span>
+29: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storePromptPresent'</span>, <span class="ruby-identifier">variable_name</span>
+30: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000067" class="method-detail">
+ <a name="M000067"></a>
+
+ <div class="method-heading">
+ <a href="#M000067" class="method-signature">
+ <span class="method-name">store_select_options</span><span class="method-args">(locator, variable_name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Gets all option labels in the specified select drop-down.
+</p>
+<p>
+The <tt>pattern</tt> for the automatically generated assertions can either
+take an array or a pattern.
+</p>
+<pre>
+ assert_select_options 'fruits', ['apple', 'pear']
+ assert_select_options 'fruits', 'a*,p*'
+</pre>
+<p>
+Related Assertions, automatically generated:
+</p>
+<ul>
+<li><tt>assert_select_options(locator, pattern)</tt>
+
+</li>
+<li><tt>assert_not_select_options(locator, pattern)</tt>
+
+</li>
+<li><tt>verify_select_options_present(locator, pattern)</tt>