mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
3098 lines
No EOL
103 KiB
HTML
3098 lines
No EOL
103 KiB
HTML
<?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‘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="#M000100">store_absolute_location</a>
|
|
<a href="#M000097">store_alert</a>
|
|
<a href="#M000091">store_alert_present</a>
|
|
<a href="#M000134">store_all_buttons</a>
|
|
<a href="#M000136">store_all_fields</a>
|
|
<a href="#M000135">store_all_links</a>
|
|
<a href="#M000088">store_all_window_ids</a>
|
|
<a href="#M000089">store_all_window_names</a>
|
|
<a href="#M000090">store_all_window_titles</a>
|
|
<a href="#M000122">store_attribute</a>
|
|
<a href="#M000092">store_attribute_from_all_windows</a>
|
|
<a href="#M000104">store_body_text</a>
|
|
<a href="#M000108">store_checked</a>
|
|
<a href="#M000098">store_confirmation</a>
|
|
<a href="#M000094">store_confirmation_present</a>
|
|
<a href="#M000095">store_cookie</a>
|
|
<a href="#M000096">store_cursor_position</a>
|
|
<a href="#M000133">store_editable</a>
|
|
<a href="#M000127">store_element_height</a>
|
|
<a href="#M000128">store_element_index</a>
|
|
<a href="#M000130">store_element_position_left</a>
|
|
<a href="#M000131">store_element_position_top</a>
|
|
<a href="#M000125">store_element_present</a>
|
|
<a href="#M000129">store_element_width</a>
|
|
<a href="#M000086">store_error_on_next</a>
|
|
<a href="#M000107">store_eval</a>
|
|
<a href="#M000138">store_expression</a>
|
|
<a href="#M000087">store_failure_on_next</a>
|
|
<a href="#M000137">store_html_source</a>
|
|
<a href="#M000101">store_location</a>
|
|
<a href="#M000132">store_log_messages</a>
|
|
<a href="#M000102">store_mouse_speed</a>
|
|
<a href="#M000123">store_ordered</a>
|
|
<a href="#M000099">store_prompt</a>
|
|
<a href="#M000093">store_prompt_present</a>
|
|
<a href="#M000121">store_select_options</a>
|
|
<a href="#M000110">store_selected</a>
|
|
<a href="#M000111">store_selected_id</a>
|
|
<a href="#M000112">store_selected_ids</a>
|
|
<a href="#M000113">store_selected_index</a>
|
|
<a href="#M000114">store_selected_indexes</a>
|
|
<a href="#M000115">store_selected_label</a>
|
|
<a href="#M000116">store_selected_labels</a>
|
|
<a href="#M000120">store_selected_options</a>
|
|
<a href="#M000117">store_selected_value</a>
|
|
<a href="#M000118">store_selected_values</a>
|
|
<a href="#M000119">store_something_selected</a>
|
|
<a href="#M000109">store_table</a>
|
|
<a href="#M000106">store_text</a>
|
|
<a href="#M000124">store_text_present</a>
|
|
<a href="#M000103">store_title</a>
|
|
<a href="#M000105">store_value</a>
|
|
<a href="#M000126">store_visible</a>
|
|
<a href="#M000139">store_whether_this_frame_match_frame_expression</a>
|
|
<a href="#M000140">store_whether_this_window_match_window_expression</a>
|
|
</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-M000100" class="method-detail">
|
|
<a name="M000100"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000100" 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('M000100-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000100-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 246</span>
|
|
246: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_absolute_location</span> <span class="ruby-identifier">variable_name</span>
|
|
247: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAbsoluteLocation'</span>, <span class="ruby-identifier">variable_name</span>
|
|
248: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000097" class="method-detail">
|
|
<a name="M000097"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000097" 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‘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('M000097-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000097-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 183</span>
|
|
183: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_alert</span> <span class="ruby-identifier">variable_name</span>
|
|
184: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAlert'</span>, <span class="ruby-identifier">variable_name</span>
|
|
185: <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">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('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_accessors.rb, line 89</span>
|
|
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_alert_present</span> <span class="ruby-identifier">variable_name</span>
|
|
90: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAlertPresent'</span>, <span class="ruby-identifier">variable_name</span>
|
|
91: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000134" class="method-detail">
|
|
<a name="M000134"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000134" 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 "" 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('M000134-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000134-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 754</span>
|
|
754: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_buttons</span> <span class="ruby-identifier">variable_name</span>
|
|
755: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllButtons'</span>, <span class="ruby-identifier">variable_name</span>
|
|
756: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000136" class="method-detail">
|
|
<a name="M000136"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000136" 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 "" 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('M000136-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000136-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 794</span>
|
|
794: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_fields</span> <span class="ruby-identifier">variable_name</span>
|
|
795: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllFields'</span>, <span class="ruby-identifier">variable_name</span>
|
|
796: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000135" class="method-detail">
|
|
<a name="M000135"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000135" 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 "" 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('M000135-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000135-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 774</span>
|
|
774: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_links</span> <span class="ruby-identifier">variable_name</span>
|
|
775: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllLinks'</span>, <span class="ruby-identifier">variable_name</span>
|
|
776: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000088" class="method-detail">
|
|
<a name="M000088"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000088" class="method-signature">
|
|
<span class="method-name">store_all_window_ids</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Returns the IDs of all windows that the browser knows about.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assertAllWindowIds(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assertNotAllWindowIds(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verifyAllWindowIds(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verifyNotAllWindowIds(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>waitForAllWindowIds(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>waitForNotAllWindowIds(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
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_accessors.rb, line 50</span>
|
|
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_window_ids</span> <span class="ruby-identifier">variable_name</span>
|
|
51: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllWindowIds'</span>, <span class="ruby-identifier">variable_name</span>
|
|
52: <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">
|
|
<a href="#M000089" class="method-signature">
|
|
<span class="method-name">store_all_window_names</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Returns the names of all windows that the browser knows about.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assertAllWindowNames(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assertNotAllWindowNames(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verifyAllWindowNames(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verifyNotAllWindowNames(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>waitForAllWindowNames(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>waitForNotAllWindowNames(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000089-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 63</span>
|
|
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_window_names</span> <span class="ruby-identifier">variable_name</span>
|
|
64: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllWindowNames'</span>, <span class="ruby-identifier">variable_name</span>
|
|
65: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000090" class="method-detail">
|
|
<a name="M000090"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000090" class="method-signature">
|
|
<span class="method-name">store_all_window_titles</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Returns the titles of all windows that the browser knows about.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assertAllWindowTitles(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assertNotAllWindowTitles(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verifyAllWindowTitles(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verifyNotAllWindowTitles(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>waitForAllWindowTitles(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>waitForNotAllWindowTitles(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<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_accessors.rb, line 76</span>
|
|
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_window_titles</span> <span class="ruby-identifier">variable_name</span>
|
|
77: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllWindowTitles'</span>, <span class="ruby-identifier">variable_name</span>
|
|
78: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000122" class="method-detail">
|
|
<a name="M000122"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000122" 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('M000122-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000122-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 577</span>
|
|
577: <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>
|
|
578: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAttribute'</span>, <span class="ruby-node">"#{locator}@#{attribute_name}"</span>, <span class="ruby-identifier">variable_name</span>
|
|
579: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000092" class="method-detail">
|
|
<a name="M000092"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000092" class="method-signature">
|
|
<span class="method-name">store_attribute_from_all_windows</span><span class="method-args">(attribute_name, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Returns every instance of some attribute from all known windows.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000092-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 102</span>
|
|
102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_attribute_from_all_windows</span> <span class="ruby-identifier">attribute_name</span>, <span class="ruby-identifier">variable_name</span>
|
|
103: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAttributeFromAllWindows'</span>, <span class="ruby-identifier">attribute_name</span>, <span class="ruby-identifier">variable_name</span>
|
|
104: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000104" class="method-detail">
|
|
<a name="M000104"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000104" 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('M000104-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000104-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 300</span>
|
|
300: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_body_text</span> <span class="ruby-identifier">variable_name</span>
|
|
301: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeBodyText'</span>, <span class="ruby-identifier">variable_name</span>
|
|
302: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000108" class="method-detail">
|
|
<a name="M000108"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000108" 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‘t exist or isn‘t a toggle-button.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_checked(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_checked(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_checked_present(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_checked(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_checked(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_checked(locator)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000108-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 370</span>
|
|
370: <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>
|
|
371: <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>
|
|
372: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000098" class="method-detail">
|
|
<a name="M000098"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000098" 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‘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('M000098-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000098-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 209</span>
|
|
209: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_confirmation</span> <span class="ruby-identifier">variable_name</span>
|
|
210: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeConfirmation'</span>, <span class="ruby-identifier">variable_name</span>
|
|
211: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000094" class="method-detail">
|
|
<a name="M000094"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000094" 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('M000094-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000094-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 128</span>
|
|
128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_confirmation_present</span> <span class="ruby-identifier">variable_name</span>
|
|
129: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeConfirmationPresent'</span>, <span class="ruby-identifier">variable_name</span>
|
|
130: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000095" class="method-detail">
|
|
<a name="M000095"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000095" class="method-signature">
|
|
<span class="method-name">store_cookie</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Return all cookies of the current page under test.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_cookie(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_cookie(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_cookie(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_cookie(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_cookie(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_cookie(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000095-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 141</span>
|
|
141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_cookie</span> <span class="ruby-identifier">variable_name</span>
|
|
142: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeCookie'</span>, <span class="ruby-identifier">variable_name</span>
|
|
143: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000096" class="method-detail">
|
|
<a name="M000096"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000096" class="method-signature">
|
|
<span class="method-name">store_cursor_position</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Retrieves the text cursor position in the given input element or textarea;
|
|
beware, this may not work perfectly on all browsers.
|
|
</p>
|
|
<p>
|
|
This method will fail if the specified element isn‘t an input element
|
|
or textarea, or there is no cursor in the element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_cursor_position(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_cursor_position(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_cursor_position(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_cursor_position(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_cursor_position(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_cursor_position(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000096-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 158</span>
|
|
158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_cursor_position</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
159: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeCursorPosition'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
160: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000133" class="method-detail">
|
|
<a name="M000133"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000133" 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‘t been disabled. This method will fail if the specified element
|
|
isn‘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('M000133-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000133-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 734</span>
|
|
734: <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>
|
|
735: <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>
|
|
736: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000127" class="method-detail">
|
|
<a name="M000127"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000127" class="method-signature">
|
|
<span class="method-name">store_element_height</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Retrieves the height of an element. This method will fail if the element is
|
|
not present.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_element_height(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_element_height(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_element_height(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_element_height(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_element_height(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_element_height(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000127-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 650</span>
|
|
650: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_height</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
651: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementHeight'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
652: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000128" class="method-detail">
|
|
<a name="M000128"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000128" class="method-signature">
|
|
<span class="method-name">store_element_index</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Get the relative index of an element to its parent (starting from 0). The
|
|
comment node and empty text node will be ignored.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_element_index(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_element_index(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_element_index(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_element_index(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_element_index(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_element_index(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000128-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 664</span>
|
|
664: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_index</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
665: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementIndex'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
666: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000130" class="method-detail">
|
|
<a name="M000130"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000130" class="method-signature">
|
|
<span class="method-name">store_element_position_left</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Retrieves the horizontal position of an element. This method will fail if
|
|
the element is not present.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_element_position_left(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_element_position_left(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_element_position_left(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_element_position_left(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_element_position_left(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_element_position_left(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000130-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 692</span>
|
|
692: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_position_left</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
693: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementPositionLeft'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
694: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000131" class="method-detail">
|
|
<a name="M000131"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000131" class="method-signature">
|
|
<span class="method-name">store_element_position_top</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Retrieves the vertical position of an element. This method will fail if the
|
|
element is not present.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_element_position_top(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_element_position_top(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_element_position_top(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_element_position_top(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_element_position_top(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_element_position_top(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000131-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 706</span>
|
|
706: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_position_top</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
707: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementPositionTop'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
708: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000125" class="method-detail">
|
|
<a name="M000125"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000125" 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('M000125-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000125-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 620</span>
|
|
620: <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>
|
|
621: <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>
|
|
622: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000129" class="method-detail">
|
|
<a name="M000129"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000129" class="method-signature">
|
|
<span class="method-name">store_element_width</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Retrieves the width of an element. This method will fail if the element is
|
|
not present.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_element_width(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_element_width(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_element_width(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_element_width(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_element_width(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_element_width(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000129-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 678</span>
|
|
678: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_width</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
679: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementWidth'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
680: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000086" class="method-detail">
|
|
<a name="M000086"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000086" class="method-signature">
|
|
<span class="method-name">store_error_on_next</span><span class="method-args">(message)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Tell Selenium to expect an error on the next command execution.
|
|
</p>
|
|
<p>
|
|
NOTE: <tt><a
|
|
href="TestBuilderAccessors.html#M000086">store_error_on_next</a></tt> is
|
|
currently not supported by Selenium Core and is only added to here as a
|
|
shortcut for generating the related assertions.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_error_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_error_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_error_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_error_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_error_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_error_on_next(message)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
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_accessors.rb, line 20</span>
|
|
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_error_on_next</span> <span class="ruby-identifier">message</span>
|
|
21: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
22: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000107" class="method-detail">
|
|
<a name="M000107"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000107" 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
|
|
"selenium" 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("foo")</tt> where
|
|
<tt>"foo"</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('M000107-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000107-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 356</span>
|
|
356: <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>
|
|
357: <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>
|
|
358: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000138" class="method-detail">
|
|
<a name="M000138"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000138" 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('M000138-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000138-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 822</span>
|
|
822: <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>
|
|
823: <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>
|
|
824: <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">store_failure_on_next</span><span class="method-args">(message)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Tell Selenium to expect a failure on the next command execution.
|
|
</p>
|
|
<p>
|
|
NOTE: <tt><a
|
|
href="TestBuilderAccessors.html#M000087">store_failure_on_next</a></tt> is
|
|
currently not supported by Selenium Core and is only added to here as a
|
|
shortcut for generating the related assertions.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_failure_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_failure_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_failure_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_failure_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_failure_on_next(message)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_failure_on_next(message)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
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_accessors.rb, line 37</span>
|
|
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_failure_on_next</span> <span class="ruby-identifier">message</span>
|
|
38: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
39: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000137" class="method-detail">
|
|
<a name="M000137"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000137" 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
|
|
"html" 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('M000137-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000137-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 807</span>
|
|
807: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_html_source</span> <span class="ruby-identifier">variable_name</span>
|
|
808: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeHtmlSource'</span>, <span class="ruby-identifier">variable_name</span>
|
|
809: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000101" class="method-detail">
|
|
<a name="M000101"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000101" 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('M000101-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000101-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 260</span>
|
|
260: <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>
|
|
261: <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>
|
|
262: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000132" class="method-detail">
|
|
<a name="M000132"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000132" class="method-signature">
|
|
<span class="method-name">store_log_messages</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Return the contents of the log.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_log_messages(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_log_messages(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_log_messages(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_log_messages(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_log_messages(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_log_messages(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000132-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 719</span>
|
|
719: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_log_messages</span> <span class="ruby-identifier">variable_name</span>
|
|
720: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeLogMessages'</span>, <span class="ruby-identifier">variable_name</span>
|
|
721: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000102" class="method-detail">
|
|
<a name="M000102"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000102" class="method-signature">
|
|
<span class="method-name">store_mouse_speed</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Returns the number of pixels between "mousemove" events during
|
|
drag_and_drop commands (default=10).
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_mouse_speed(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_mouse_speed(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_mouse_speed(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_mouse_speed(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_mouse_speed(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_mouse_speed(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000102-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 274</span>
|
|
274: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_mouse_speed</span> <span class="ruby-identifier">variable_name</span>
|
|
275: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeMouseSpeed'</span>, <span class="ruby-identifier">variable_name</span>
|
|
276: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000123" class="method-detail">
|
|
<a name="M000123"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000123" class="method-signature">
|
|
<span class="method-name">store_ordered</span><span class="method-args">(locator_1, locator_2, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Check if these two elements have same parent and are ordered. Two same
|
|
elements will not be considered ordered.
|
|
</p>
|
|
<p>
|
|
NOTE: <tt><a
|
|
href="TestBuilderAccessors.html#M000123">store_ordered</a></tt> is
|
|
currently not supported by Selenium Core.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_ordered(locator_1, locator_2)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_ordered(locator_1, locator_2)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_ordered(locator_1, locator_2)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_ordered(locator_1, locator_2)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_ordered(locator_1, locator_2)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_ordered(locator_1, locator_2)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000123-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 593</span>
|
|
593: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_ordered</span> <span class="ruby-identifier">locator_1</span>, <span class="ruby-identifier">locator_2</span>, <span class="ruby-identifier">variable_name</span>
|
|
594: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
595: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000099" class="method-detail">
|
|
<a name="M000099"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000099" 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‘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('M000099-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000099-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 233</span>
|
|
233: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_prompt</span> <span class="ruby-identifier">variable_name</span>
|
|
234: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storePrompt'</span>, <span class="ruby-identifier">variable_name</span>
|
|
235: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000093" class="method-detail">
|
|
<a name="M000093"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000093" 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('M000093-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000093-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 115</span>
|
|
115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_prompt_present</span> <span class="ruby-identifier">variable_name</span>
|
|
116: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storePromptPresent'</span>, <span class="ruby-identifier">variable_name</span>
|
|
117: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000121" class="method-detail">
|
|
<a name="M000121"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000121" 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>
|
|
|
|
</li>
|
|
<li><tt>verify_not_select_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_select_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_select_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000121-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 564</span>
|
|
564: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_select_options</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
565: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectOptions'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
566: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000110" class="method-detail">
|
|
<a name="M000110"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000110" class="method-signature">
|
|
<span class="method-name">store_selected</span><span class="method-args">(locator, option_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Verifies that the selected option of a drop-down satisfies the
|
|
<tt>option_locator</tt>.
|
|
</p>
|
|
<p>
|
|
<tt>option_locator</tt> is typically just an option label (e.g. "John
|
|
Smith").
|
|
</p>
|
|
<p>
|
|
See the <tt>select</tt> command for more information about option locators.
|
|
</p>
|
|
<p>
|
|
NOTE: <tt><a
|
|
href="TestBuilderAccessors.html#M000110">store_selected</a></tt> is
|
|
currently not supported by Selenium Core.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected(locator, option_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected(locator, option_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_present(locator, option_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected(locator, option_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected(locator, option_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected(locator, option_locator)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000110-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 403</span>
|
|
403: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
404: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
405: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000111" class="method-detail">
|
|
<a name="M000111"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000111" class="method-signature">
|
|
<span class="method-name">store_selected_id</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets option element ID for selected option in the specified select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_id(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_id(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_id(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_id(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_id(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_id(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000111-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 416</span>
|
|
416: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_id</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
417: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedId'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
418: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000112" class="method-detail">
|
|
<a name="M000112"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000112" class="method-signature">
|
|
<span class="method-name">store_selected_ids</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets all option element IDs for selected options in the specified select or
|
|
multi-select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_ids(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_ids(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_ids(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_ids(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_ids(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_ids(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000112-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 430</span>
|
|
430: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_ids</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
431: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedIds'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
432: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000113" class="method-detail">
|
|
<a name="M000113"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000113" class="method-signature">
|
|
<span class="method-name">store_selected_index</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets option index (option number, starting at 0) for selected option in the
|
|
specified select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_index(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_index(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_index(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_index(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_index(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_index(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000113-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 444</span>
|
|
444: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_index</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
445: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedIndex'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
446: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000114" class="method-detail">
|
|
<a name="M000114"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000114" class="method-signature">
|
|
<span class="method-name">store_selected_indexes</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets all option indexes (option number, starting at 0) for selected options
|
|
in the specified select or multi-select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_indexes(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_indexes(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_indexes(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_indexes(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_indexes(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_indexes(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000114-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 458</span>
|
|
458: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_indexes</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
459: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedIndexes'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
460: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000115" class="method-detail">
|
|
<a name="M000115"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000115" class="method-signature">
|
|
<span class="method-name">store_selected_label</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets option label (visible text) for selected option in the specified
|
|
select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_label(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_label(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_label(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_label(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_label(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_label(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000115-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 472</span>
|
|
472: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_label</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
473: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedLabel'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
474: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000116" class="method-detail">
|
|
<a name="M000116"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000116" class="method-signature">
|
|
<span class="method-name">store_selected_labels</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets all option labels (visible text) for selected options in the specified
|
|
select or multi-select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_labels(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_labels(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_labels(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_labels(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_labels(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_labels(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000116-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 486</span>
|
|
486: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_labels</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
487: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedLabels'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
488: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000120" class="method-detail">
|
|
<a name="M000120"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000120" class="method-signature">
|
|
<span class="method-name">store_selected_options</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets all option labels for selected options in the specified select or
|
|
multi-select element.
|
|
</p>
|
|
<p>
|
|
The <tt>pattern</tt> for the automatically generated assertions can either
|
|
take an array or a pattern.
|
|
</p>
|
|
<pre>
|
|
assert_selected_options 'fruits', ['apple', 'pear']
|
|
assert_selected_options 'fruits', 'a*,p*'
|
|
</pre>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_options_present(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_options(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000120-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 546</span>
|
|
546: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_options</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
547: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedOptions'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
548: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000117" class="method-detail">
|
|
<a name="M000117"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000117" class="method-signature">
|
|
<span class="method-name">store_selected_value</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets option value (value attribute) for selected option in the specified
|
|
select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_value(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_value(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_value(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_value(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_value(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_value(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000117-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 500</span>
|
|
500: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_value</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
501: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedValue'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
502: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000118" class="method-detail">
|
|
<a name="M000118"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000118" class="method-signature">
|
|
<span class="method-name">store_selected_values</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets all option values (value attribute) for selected options in the
|
|
specified select or multi-select element.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_selected_values(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_selected_values(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_selected_values(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_selected_values(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_selected_values(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_selected_values(select_locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000118-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 514</span>
|
|
514: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_values</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
515: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedValues'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
516: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000119" class="method-detail">
|
|
<a name="M000119"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000119" class="method-signature">
|
|
<span class="method-name">store_something_selected</span><span class="method-args">(select_locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Determines whether some option in a drop-down menu is selected.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_something_selected(select_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_something_selected(select_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_something_selected(select_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_something_selected(select_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_something_selected(select_locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_something_selected(select_locator)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000119-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 527</span>
|
|
527: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_something_selected</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
528: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSomethingSelected'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
529: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000109" class="method-detail">
|
|
<a name="M000109"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000109" class="method-signature">
|
|
<span class="method-name">store_table</span><span class="method-args">(locator, row, column, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets the text from a cell of a table.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_table(locator, row, column, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_table(locator, row, column, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_table_present(locator, row, column, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_table(locator, row, column, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_table(locator, row, column, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_table(locator, row, column, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000109-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 383</span>
|
|
383: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_table</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">row</span>, <span class="ruby-identifier">column</span>, <span class="ruby-identifier">variable_name</span>
|
|
384: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeTable'</span>, <span class="ruby-node">"#{locator}.#{row}.#{column}"</span>, <span class="ruby-identifier">variable_name</span>
|
|
385: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000106" class="method-detail">
|
|
<a name="M000106"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000106" class="method-signature">
|
|
<span class="method-name">store_text</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets the text of an element. This works for any element that contains text.
|
|
This command uses either the <tt>textContent</tt> (Mozilla-like browsers)
|
|
or the <tt>innerText</tt> (IE-like browsers) of the element, which is the
|
|
rendered text shown to the user.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_text(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_text(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_text_present(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_text(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_text(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_text(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000106-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 331</span>
|
|
331: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_text</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
332: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeText'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
333: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000124" class="method-detail">
|
|
<a name="M000124"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000124" class="method-signature">
|
|
<span class="method-name">store_text_present</span><span class="method-args">(pattern, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Verifies that the specified text pattern appears somewhere on the rendered
|
|
page shown to the user.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_text_present(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_text_not_present(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_text_present(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_text_not_present(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_text_present(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_text_not_present(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000124-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 607</span>
|
|
607: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_text_present</span> <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">variable_name</span>
|
|
608: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeTextPresent'</span>, <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">variable_name</span>
|
|
609: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000103" class="method-detail">
|
|
<a name="M000103"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000103" class="method-signature">
|
|
<span class="method-name">store_title</span><span class="method-args">(variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets the title of the current page.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_title(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_title(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_title_present(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_title(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_title(pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_title(pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000103-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 287</span>
|
|
287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_title</span> <span class="ruby-identifier">variable_name</span>
|
|
288: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeTitle'</span>, <span class="ruby-identifier">variable_name</span>
|
|
289: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000105" class="method-detail">
|
|
<a name="M000105"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000105" class="method-signature">
|
|
<span class="method-name">store_value</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Gets the (whitespace-trimmed) value of an input field (or anything else
|
|
with a value parameter). For checkbox/radio elements, the value will be
|
|
"on" or "off" depending on whether the element is
|
|
checked or not.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_value(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_value(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_value_present(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_value(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_value(locator, pattern)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_value(locator, pattern)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000105-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 315</span>
|
|
315: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_value</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
316: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeValue'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
317: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000126" class="method-detail">
|
|
<a name="M000126"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000126" class="method-signature">
|
|
<span class="method-name">store_visible</span><span class="method-args">(locator, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Determines if the specified element is visible. An element can be rendered
|
|
invisible by setting the CSS "visibility" property to
|
|
"hidden", or the "display" property to
|
|
"none", either for the element itself or one if its ancestors.
|
|
This method will fail if the element is not present.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_visible(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_visible(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_visible(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_visible(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_visible(locator)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_visible(locator)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000126-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 636</span>
|
|
636: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_visible</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
637: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeVisible'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
638: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000139" class="method-detail">
|
|
<a name="M000139"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000139" class="method-signature">
|
|
<span class="method-name">store_whether_this_frame_match_frame_expression</span><span class="method-args">(current_frame_string, target, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Determine whether current/locator identify the frame containing this
|
|
running code.
|
|
</p>
|
|
<p>
|
|
This is useful in proxy injection mode, where this code runs in every
|
|
browser frame and window, and sometimes the selenium server needs to
|
|
identify the "current" frame. In this case, when the test calls
|
|
select_frame, this routine is called for each frame to figure out which one
|
|
has been selected. The selected frame will return true, while all others
|
|
will return false.
|
|
</p>
|
|
<p>
|
|
NOTE: <tt><a
|
|
href="TestBuilderAccessors.html#M000139">store_whether_this_frame_match_frame_expression</a></tt>
|
|
is currently not supported by Selenium Core.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_whether_this_frame_match_frame_expression(current_frame_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_whether_this_frame_match_frame_expression(current_frame_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_whether_this_frame_match_frame_expression(current_frame_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_whether_this_frame_match_frame_expression(current_frame_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_whether_this_frame_match_frame_expression(current_frame_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_whether_this_frame_match_frame_expression(current_frame_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000139-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 846</span>
|
|
846: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_whether_this_frame_match_frame_expression</span> <span class="ruby-identifier">current_frame_string</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">variable_name</span>
|
|
847: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
848: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000140" class="method-detail">
|
|
<a name="M000140"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="#M000140" class="method-signature">
|
|
<span class="method-name">store_whether_this_window_match_window_expression</span><span class="method-args">(current_window_string, target, variable_name)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
Determine whether current_window_string plus target identify the window
|
|
containing this running code.
|
|
</p>
|
|
<p>
|
|
This is useful in proxy injection mode, where this code runs in every
|
|
browser frame and window, and sometimes the selenium server needs to
|
|
identify the "current" window. In this case, when the test calls
|
|
select_window, this routine is called for each window to figure out which
|
|
one has been selected. The selected window will return true, while all
|
|
others will return false.
|
|
</p>
|
|
<p>
|
|
NOTE: <tt><a
|
|
href="TestBuilderAccessors.html#M000140">store_whether_this_window_match_window_expression</a></tt>
|
|
is currently not supported by Selenium Core.
|
|
</p>
|
|
<p>
|
|
Related Assertions, automatically generated:
|
|
</p>
|
|
<ul>
|
|
<li><tt>assert_whether_this_window_match_window_expression(current_window_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>assert_not_whether_this_window_match_window_expression(current_window_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_whether_this_window_match_window_expression(current_window_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>verify_not_whether_this_window_match_window_expression(current_window_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_whether_this_window_match_window_expression(current_window_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
<li><tt>wait_for_not_whether_this_window_match_window_expression(current_window_string,
|
|
target)</tt>
|
|
|
|
</li>
|
|
</ul>
|
|
<p><a class="source-toggle" href="#"
|
|
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
|
<div class="method-source-code" id="M000140-source">
|
|
<pre>
|
|
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 869</span>
|
|
869: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_whether_this_window_match_window_expression</span> <span class="ruby-identifier">current_window_string</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">variable_name</span>
|
|
870: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
871: <span class="ruby-keyword kw">end</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="validator-badges">
|
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |