caius-celerity 0.0.6.10 → 0.0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +335 -0
- data/benchmark/bm_2000_spans.rb +48 -0
- data/benchmark/bm_digg.rb +26 -0
- data/benchmark/bm_google_images.rb +36 -0
- data/benchmark/bm_input_locator.rb +69 -0
- data/benchmark/bm_text_input.rb +19 -0
- data/benchmark/loader.rb +14 -0
- data/celerity.gemspec +33 -0
- data/config/hoe.rb +78 -0
- data/config/requirements.rb +9 -0
- data/lib/celerity/version.rb +1 -1
- data/spec/area_spec.rb +97 -0
- data/spec/areas_spec.rb +40 -0
- data/spec/browser_authentication_spec.rb +20 -0
- data/spec/browser_spec.rb +537 -0
- data/spec/button_spec.rb +244 -0
- data/spec/buttons_spec.rb +51 -0
- data/spec/checkbox_spec.rb +302 -0
- data/spec/checkboxes_spec.rb +38 -0
- data/spec/clickable_element_spec.rb +43 -0
- data/spec/dd_spec.rb +143 -0
- data/spec/dds_spec.rb +39 -0
- data/spec/default_viewer_spec.rb +24 -0
- data/spec/div_spec.rb +235 -0
- data/spec/divs_spec.rb +39 -0
- data/spec/dl_spec.rb +143 -0
- data/spec/dls_spec.rb +39 -0
- data/spec/dt_spec.rb +143 -0
- data/spec/dts_spec.rb +39 -0
- data/spec/element_spec.rb +150 -0
- data/spec/em_spec.rb +116 -0
- data/spec/ems_spec.rb +39 -0
- data/spec/filefield_spec.rb +133 -0
- data/spec/filefields_spec.rb +40 -0
- data/spec/form_spec.rb +59 -0
- data/spec/forms_spec.rb +41 -0
- data/spec/frame_spec.rb +139 -0
- data/spec/frames_spec.rb +71 -0
- data/spec/hidden_spec.rb +127 -0
- data/spec/hiddens_spec.rb +39 -0
- data/spec/hn_spec.rb +104 -0
- data/spec/hns_spec.rb +45 -0
- data/spec/html/2000_spans.html +2009 -0
- data/spec/html/bug_duplicate_attributes.html +14 -0
- data/spec/html/bug_javascript_001.html +11 -0
- data/spec/html/definition_lists.html +48 -0
- data/spec/html/euc-jp_text.html +17 -0
- data/spec/html/forms_with_input_elements.html +124 -0
- data/spec/html/frame_1.html +18 -0
- data/spec/html/frame_2.html +16 -0
- data/spec/html/frames.html +11 -0
- data/spec/html/iframes.html +12 -0
- data/spec/html/images.html +27 -0
- data/spec/html/images/1.gif +0 -0
- data/spec/html/images/2.gif +0 -0
- data/spec/html/images/3.gif +0 -0
- data/spec/html/images/button.jpg +0 -0
- data/spec/html/images/circle.jpg +0 -0
- data/spec/html/images/map.gif +0 -0
- data/spec/html/images/map2.gif +0 -0
- data/spec/html/images/minus.gif +0 -0
- data/spec/html/images/originaltriangle.jpg +0 -0
- data/spec/html/images/plus.gif +0 -0
- data/spec/html/images/square.jpg +0 -0
- data/spec/html/images/triangle.jpg +0 -0
- data/spec/html/iso-2022-jp_text.html +17 -0
- data/spec/html/jquery.html +29 -0
- data/spec/html/latin1_text.html +17 -0
- data/spec/html/multiple_ids.html +14 -0
- data/spec/html/non_control_elements.html +115 -0
- data/spec/html/right_click.html +16 -0
- data/spec/html/shift_jis_text.html +17 -0
- data/spec/html/tables.html +119 -0
- data/spec/html/timeout.html +16 -0
- data/spec/html/tiny_mce.html +29 -0
- data/spec/html/utf8_text.html +15 -0
- data/spec/htmlunit_spec.rb +47 -0
- data/spec/image_spec.rb +221 -0
- data/spec/images_spec.rb +39 -0
- data/spec/index_offset_spec.rb +26 -0
- data/spec/label_spec.rb +88 -0
- data/spec/labels_spec.rb +40 -0
- data/spec/li_spec.rb +139 -0
- data/spec/link_spec.rb +200 -0
- data/spec/links_spec.rb +47 -0
- data/spec/lis_spec.rb +40 -0
- data/spec/listener_spec.rb +142 -0
- data/spec/map_spec.rb +102 -0
- data/spec/maps_spec.rb +40 -0
- data/spec/meta_spec.rb +29 -0
- data/spec/metas_spec.rb +38 -0
- data/spec/ol_spec.rb +87 -0
- data/spec/ols_spec.rb +40 -0
- data/spec/option_spec.rb +156 -0
- data/spec/p_spec.rb +171 -0
- data/spec/pre_spec.rb +135 -0
- data/spec/pres_spec.rb +40 -0
- data/spec/ps_spec.rb +40 -0
- data/spec/radio_spec.rb +314 -0
- data/spec/radios_spec.rb +42 -0
- data/spec/select_list_spec.rb +320 -0
- data/spec/select_lists_spec.rb +47 -0
- data/spec/span_spec.rb +184 -0
- data/spec/spans_spec.rb +64 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +66 -0
- data/spec/strong_spec.rb +101 -0
- data/spec/strongs_spec.rb +40 -0
- data/spec/table_bodies_spec.rb +57 -0
- data/spec/table_body_spec.rb +109 -0
- data/spec/table_cell_spec.rb +84 -0
- data/spec/table_cells_spec.rb +59 -0
- data/spec/table_footer_spec.rb +96 -0
- data/spec/table_footers_spec.rb +55 -0
- data/spec/table_header_spec.rb +101 -0
- data/spec/table_headers_spec.rb +55 -0
- data/spec/table_row_spec.rb +106 -0
- data/spec/table_rows_spec.rb +58 -0
- data/spec/table_spec.rb +169 -0
- data/spec/tables_spec.rb +42 -0
- data/spec/text_field_spec.rb +331 -0
- data/spec/text_fields_spec.rb +44 -0
- data/spec/ul_spec.rb +88 -0
- data/spec/uls_spec.rb +40 -0
- data/spec/watir_compatibility_spec.rb +268 -0
- data/support/spec_server.rb +122 -0
- data/tasks/benchmark.rake +4 -0
- data/tasks/deployment.rake +43 -0
- data/tasks/environment.rake +7 -0
- data/tasks/fix.rake +25 -0
- data/tasks/rspec.rake +31 -0
- data/tasks/simple_ci.rake +94 -0
- data/tasks/snapshot.rake +22 -0
- data/tasks/specserver.rake +21 -0
- data/tasks/website.rake +17 -0
- data/tasks/yard.rake +9 -0
- data/website/benchmarks.html +237 -0
- data/website/css/color.css +153 -0
- data/website/css/hacks.css +3 -0
- data/website/css/layout.css +179 -0
- data/website/css/screen.css +5 -0
- data/website/css/textmate.css +226 -0
- data/website/css/typography.css +72 -0
- data/website/gfx/body_bg.gif +0 -0
- data/website/gfx/button_bg.jpg +0 -0
- data/website/gfx/header_bg.jpg +0 -0
- data/website/gfx/header_left.jpg +0 -0
- data/website/gfx/header_right.jpg +0 -0
- data/website/gfx/nav_bg.jpg +0 -0
- data/website/index.html +133 -0
- data/website/yard/Celerity.html +50 -0
- data/website/yard/Celerity/Area.html +212 -0
- data/website/yard/Celerity/Areas.html +103 -0
- data/website/yard/Celerity/Browser.html +5594 -0
- data/website/yard/Celerity/Button.html +312 -0
- data/website/yard/Celerity/Buttons.html +103 -0
- data/website/yard/Celerity/CheckBox.html +347 -0
- data/website/yard/Celerity/CheckBoxes.html +103 -0
- data/website/yard/Celerity/ClickableElement.html +448 -0
- data/website/yard/Celerity/Container.html +7676 -0
- data/website/yard/Celerity/Dd.html +198 -0
- data/website/yard/Celerity/Dds.html +103 -0
- data/website/yard/Celerity/DefaultViewer.html +101 -0
- data/website/yard/Celerity/DisabledElement.html +252 -0
- data/website/yard/Celerity/Div.html +198 -0
- data/website/yard/Celerity/Divs.html +103 -0
- data/website/yard/Celerity/Dl.html +198 -0
- data/website/yard/Celerity/Dls.html +103 -0
- data/website/yard/Celerity/Dt.html +198 -0
- data/website/yard/Celerity/Dts.html +103 -0
- data/website/yard/Celerity/Element.html +1703 -0
- data/website/yard/Celerity/ElementCollection.html +725 -0
- data/website/yard/Celerity/ElementLocator.html +589 -0
- data/website/yard/Celerity/Em.html +198 -0
- data/website/yard/Celerity/Ems.html +103 -0
- data/website/yard/Celerity/Exception.html +23 -0
- data/website/yard/Celerity/Exception/CelerityException.html +32 -0
- data/website/yard/Celerity/Exception/MissingWayOfFindingObjectException.html +32 -0
- data/website/yard/Celerity/Exception/NavigationException.html +33 -0
- data/website/yard/Celerity/Exception/NoValueFoundException.html +33 -0
- data/website/yard/Celerity/Exception/ObjectDisabledException.html +33 -0
- data/website/yard/Celerity/Exception/ObjectReadOnlyException.html +33 -0
- data/website/yard/Celerity/Exception/UnexpectedPageException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownCellException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownFormException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownFrameException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownObjectException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownRowException.html +33 -0
- data/website/yard/Celerity/FileField.html +289 -0
- data/website/yard/Celerity/FileFields.html +103 -0
- data/website/yard/Celerity/Form.html +284 -0
- data/website/yard/Celerity/Forms.html +103 -0
- data/website/yard/Celerity/Frame.html +527 -0
- data/website/yard/Celerity/Frames.html +103 -0
- data/website/yard/Celerity/H1.html +198 -0
- data/website/yard/Celerity/H1s.html +103 -0
- data/website/yard/Celerity/H2.html +198 -0
- data/website/yard/Celerity/H2s.html +103 -0
- data/website/yard/Celerity/H3.html +198 -0
- data/website/yard/Celerity/H3s.html +103 -0
- data/website/yard/Celerity/H4.html +198 -0
- data/website/yard/Celerity/H4s.html +103 -0
- data/website/yard/Celerity/H5.html +198 -0
- data/website/yard/Celerity/H5s.html +103 -0
- data/website/yard/Celerity/H6.html +198 -0
- data/website/yard/Celerity/H6s.html +103 -0
- data/website/yard/Celerity/Hidden.html +285 -0
- data/website/yard/Celerity/Hiddens.html +103 -0
- data/website/yard/Celerity/Image.html +645 -0
- data/website/yard/Celerity/Images.html +103 -0
- data/website/yard/Celerity/InputElement.html +271 -0
- data/website/yard/Celerity/Label.html +210 -0
- data/website/yard/Celerity/Labels.html +103 -0
- data/website/yard/Celerity/Li.html +198 -0
- data/website/yard/Celerity/Link.html +295 -0
- data/website/yard/Celerity/Links.html +103 -0
- data/website/yard/Celerity/Lis.html +103 -0
- data/website/yard/Celerity/Listener.html +821 -0
- data/website/yard/Celerity/Map.html +198 -0
- data/website/yard/Celerity/Maps.html +103 -0
- data/website/yard/Celerity/Meta.html +196 -0
- data/website/yard/Celerity/Metas.html +103 -0
- data/website/yard/Celerity/MethodGenerator.html +195 -0
- data/website/yard/Celerity/NonControlElement.html +212 -0
- data/website/yard/Celerity/Ol.html +198 -0
- data/website/yard/Celerity/Ols.html +103 -0
- data/website/yard/Celerity/Option.html +348 -0
- data/website/yard/Celerity/Options.html +103 -0
- data/website/yard/Celerity/P.html +198 -0
- data/website/yard/Celerity/Pre.html +198 -0
- data/website/yard/Celerity/Pres.html +103 -0
- data/website/yard/Celerity/Ps.html +103 -0
- data/website/yard/Celerity/Radio.html +339 -0
- data/website/yard/Celerity/RadioCheckCommon.html +453 -0
- data/website/yard/Celerity/Radios.html +103 -0
- data/website/yard/Celerity/SelectList.html +1122 -0
- data/website/yard/Celerity/SelectLists.html +103 -0
- data/website/yard/Celerity/ShortInspect.html +108 -0
- data/website/yard/Celerity/Span.html +198 -0
- data/website/yard/Celerity/Spans.html +103 -0
- data/website/yard/Celerity/Strong.html +198 -0
- data/website/yard/Celerity/Strongs.html +103 -0
- data/website/yard/Celerity/Table.html +1287 -0
- data/website/yard/Celerity/TableBodies.html +103 -0
- data/website/yard/Celerity/TableBody.html +203 -0
- data/website/yard/Celerity/TableCell.html +279 -0
- data/website/yard/Celerity/TableCells.html +103 -0
- data/website/yard/Celerity/TableElement.html +437 -0
- data/website/yard/Celerity/TableFooter.html +203 -0
- data/website/yard/Celerity/TableFooters.html +103 -0
- data/website/yard/Celerity/TableHeader.html +203 -0
- data/website/yard/Celerity/TableHeaders.html +103 -0
- data/website/yard/Celerity/TableRow.html +478 -0
- data/website/yard/Celerity/TableRows.html +103 -0
- data/website/yard/Celerity/Tables.html +103 -0
- data/website/yard/Celerity/TextField.html +938 -0
- data/website/yard/Celerity/TextFields.html +103 -0
- data/website/yard/Celerity/Th.html +208 -0
- data/website/yard/Celerity/Ul.html +209 -0
- data/website/yard/Celerity/Uls.html +103 -0
- data/website/yard/Celerity/Util.html +264 -0
- data/website/yard/Celerity/VERSION.html +44 -0
- data/website/yard/HtmlUnit.html +23 -0
- data/website/yard/HtmlUnit/Html.html +23 -0
- data/website/yard/HtmlUnit/Util.html +23 -0
- data/website/yard/Java/ComGargoylesoftwareHtmlunitHtml/HtmlPage.html +90 -0
- data/website/yard/Java/JavaLang/Iterable.html +103 -0
- data/website/yard/Java/OrgW3cDom/NamedNodeMap.html +97 -0
- data/website/yard/README.txt.html +116 -0
- data/website/yard/String.html +103 -0
- data/website/yard/all-files.html +22 -0
- data/website/yard/all-methods.html +3276 -0
- data/website/yard/all-namespaces.html +258 -0
- data/website/yard/app.js +18 -0
- data/website/yard/index.html +19 -0
- data/website/yard/jquery.js +11 -0
- data/website/yard/style.css +68 -0
- data/website/yard/syntax_highlight.css +21 -0
- metadata +285 -13
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Dls</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Dls">
|
16
|
+
<h1 class="title">Class: Celerity::Dls</h1>
|
17
|
+
<div class="section inheritance">
|
18
|
+
<ul>
|
19
|
+
<li><a title="Celerity::ElementCollection" href="ElementCollection.html">Celerity::ElementCollection</a></li><ul><li>Celerity::Dls</li>
|
20
|
+
</ul></ul>
|
21
|
+
</div><div class="section constants">
|
22
|
+
|
23
|
+
</div><div class="section constructor">
|
24
|
+
<h1>Constructor Summary</h1>
|
25
|
+
<p class="inherited_msg">
|
26
|
+
This class inherits a constructor from <a title="Celerity::ElementCollection" href="ElementCollection.html#initialize-instance_method">Celerity::ElementCollection</a>.
|
27
|
+
</p>
|
28
|
+
</div> <div class="section visibilitygroup public">
|
29
|
+
<h1>Public Visibility</h1>
|
30
|
+
<div class="section methodsummary instance public">
|
31
|
+
<h1>Public Instance Method Summary</h1>
|
32
|
+
<table class="summary">
|
33
|
+
|
34
|
+
<tr>
|
35
|
+
<th class="signature">
|
36
|
+
<span class='name'><a title="#element_class" href="#element_class-instance_method">#element_class</a></span><span class='args'></span>
|
37
|
+
<span class='block'></span>
|
38
|
+
|
39
|
+
</th>
|
40
|
+
<td class="docstring">
|
41
|
+
|
42
|
+
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
|
46
|
+
</table><div class="inherited">
|
47
|
+
|
48
|
+
<div>
|
49
|
+
<h1>Public Instance Methods Inherited from <a title="Celerity::ElementCollection" href="ElementCollection.html">Celerity::ElementCollection</a></h1>
|
50
|
+
<p><span class='name'><a title="[]" href="ElementCollection.html#%5B%5D-instance_method">[]</a></span>, <span class='name'><a title="each" href="ElementCollection.html#each-instance_method">each</a></span>, <span class='name'><a title="first" href="ElementCollection.html#first-instance_method">first</a></span>, <span class='name'><a title="last" href="ElementCollection.html#last-instance_method">last</a></span>, <span class='name'><a title="length" href="ElementCollection.html#length-instance_method">length</a></span>, <span class='name'><a title="to_s" href="ElementCollection.html#to_s-instance_method">to_s</a></span></p>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
<div class="section methoddetails instance public">
|
57
|
+
<h1>Public Instance Method Details</h1>
|
58
|
+
|
59
|
+
<div class="method">
|
60
|
+
<div class="method_header">
|
61
|
+
<h3>element_class</h3>
|
62
|
+
</div><div id="element_class-instance_method" class="section method">
|
63
|
+
<div class="details_title">
|
64
|
+
<div class='section methodsignature'>
|
65
|
+
<tt class='def'>
|
66
|
+
<span class='visibility'>public</span>
|
67
|
+
<span class='return_types'></span>
|
68
|
+
<span class='name'>element_class</span><span class='args'></span>
|
69
|
+
<span class='block'></span>
|
70
|
+
</tt>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
</div><div class="section source">
|
74
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
75
|
+
<div class="source_code">
|
76
|
+
<table>
|
77
|
+
<tr>
|
78
|
+
<td>
|
79
|
+
<pre class="lines">
|
80
|
+
|
81
|
+
|
82
|
+
48</pre>
|
83
|
+
</td>
|
84
|
+
<td>
|
85
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/collections.rb', line 48</span>
|
86
|
+
|
87
|
+
<span class='def def kw'>def</span> <span class='element_class identifier id'>element_class</span><span class='semicolon token'>;</span> <span class='Dl constant id'>Dl</span><span class='semicolon token'>;</span> <span class='end end kw'>end</span>
|
88
|
+
</pre>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
</table>
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</body>
|
103
|
+
</html>
|
@@ -0,0 +1,198 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Dt</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Dt">
|
16
|
+
<h1 class="title">Class: Celerity::Dt</h1>
|
17
|
+
<div class="section inheritance">
|
18
|
+
<ul>
|
19
|
+
<li><a title="Celerity::Element" href="Element.html">Celerity::Element</a></li><ul><li><a title="Celerity::NonControlElement" href="NonControlElement.html">Celerity::NonControlElement</a></li><ul><li>Celerity::Dt</li>
|
20
|
+
</ul></ul></ul>
|
21
|
+
</div><div class="section constants">
|
22
|
+
<div class="thisclass">
|
23
|
+
<h1>Constants</h1>
|
24
|
+
<dl>
|
25
|
+
|
26
|
+
<dt id="TAGS-constant">TAGS</dt>
|
27
|
+
<dd>[ Identifier.new('dt')]</dd>
|
28
|
+
|
29
|
+
</dl>
|
30
|
+
</div>
|
31
|
+
<div class="inherited">
|
32
|
+
|
33
|
+
<div>
|
34
|
+
<h1>Constants Inherited from <a title="Celerity::NonControlElement" href="NonControlElement.html">Celerity::NonControlElement</a></h1>
|
35
|
+
<p><span class='name'><a title="ATTRIBUTES" href="NonControlElement.html#ATTRIBUTES-constant">ATTRIBUTES</a></span>, <span class='name'><a title="DEFAULT_HOW" href="NonControlElement.html#DEFAULT_HOW-constant">DEFAULT_HOW</a></span></p>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div>
|
39
|
+
<h1>Constants Inherited from <a title="Celerity::Element" href="Element.html">Celerity::Element</a></h1>
|
40
|
+
<p><span class='name'><a title="BASE_ATTRIBUTES" href="Element.html#BASE_ATTRIBUTES-constant">BASE_ATTRIBUTES</a></span>, <span class='name'><a title="CELLHALIGN_ATTRIBUTES" href="Element.html#CELLHALIGN_ATTRIBUTES-constant">CELLHALIGN_ATTRIBUTES</a></span>, <span class='name'><a title="CELLVALIGN_ATTRIBUTES" href="Element.html#CELLVALIGN_ATTRIBUTES-constant">CELLVALIGN_ATTRIBUTES</a></span>, <span class='name'><a title="HTML_401_TRANSITIONAL" href="Element.html#HTML_401_TRANSITIONAL-constant">HTML_401_TRANSITIONAL</a></span>, <span class='name'><a title="TO_S_SIZE" href="Element.html#TO_S_SIZE-constant">TO_S_SIZE</a></span></p>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
<div class="clear"></div>
|
45
|
+
</div><div class="section constructor">
|
46
|
+
<h1>Constructor Summary</h1>
|
47
|
+
<p class="inherited_msg">
|
48
|
+
This class inherits a constructor from <a title="Celerity::Element" href="Element.html#initialize-instance_method">Celerity::Element</a>.
|
49
|
+
</p>
|
50
|
+
</div><div class="section methodmissing">
|
51
|
+
<h1>Dynamic Method Handling</h1>
|
52
|
+
|
53
|
+
<p class="note">
|
54
|
+
This class handles dynamic methods through the <tt>method_missing</tt> method
|
55
|
+
|
56
|
+
in the class <a title="Celerity::Element" href="Element.html">Celerity::Element</a>
|
57
|
+
|
58
|
+
</p>
|
59
|
+
|
60
|
+
<div id="method_missing-instance_method" class="section method">
|
61
|
+
<div class="details_title">
|
62
|
+
<div class='section methodsignature'>
|
63
|
+
<tt class='def'>
|
64
|
+
<span class='visibility'>public</span>
|
65
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
66
|
+
<span class='name'>method_missing</span><span class='args'>(meth, *args, &blk)</span>
|
67
|
+
<span class='block'></span>
|
68
|
+
</tt>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
</div><div class="section docstring">
|
72
|
+
<p>
|
73
|
+
Dynamically get element attributes.
|
74
|
+
</p>
|
75
|
+
|
76
|
+
</div><div class="section tags">
|
77
|
+
<h2>Meta Tags</h2>
|
78
|
+
<div class="param">
|
79
|
+
<h3>Parameters:</h3>
|
80
|
+
<dl>
|
81
|
+
|
82
|
+
</dl>
|
83
|
+
</div><div class="return">
|
84
|
+
<h3>Returns:</h3>
|
85
|
+
<dl>
|
86
|
+
|
87
|
+
<dt>
|
88
|
+
|
89
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
90
|
+
|
91
|
+
|
92
|
+
<span class='name'></span>
|
93
|
+
|
94
|
+
|
95
|
+
</dt>
|
96
|
+
<dd>
|
97
|
+
<span class='desc'><p>
|
98
|
+
The resulting attribute.
|
99
|
+
</p>
|
100
|
+
</span>
|
101
|
+
</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
</div>
|
105
|
+
<div class="raise">
|
106
|
+
<h3>Raises:</h3>
|
107
|
+
<dl>
|
108
|
+
|
109
|
+
<dt>
|
110
|
+
|
111
|
+
<span class='type'>[<tt>NoMethodError</tt>]</span>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
</dt>
|
116
|
+
<dd>
|
117
|
+
<span class='desc'><p>
|
118
|
+
if the element doesn’t support this attribute.
|
119
|
+
</p>
|
120
|
+
</span>
|
121
|
+
</dd>
|
122
|
+
|
123
|
+
</dl>
|
124
|
+
</div>
|
125
|
+
<div class="see">
|
126
|
+
<h3>See Also:</h3>
|
127
|
+
<dl>
|
128
|
+
<dt></dt>
|
129
|
+
<dd>
|
130
|
+
<span class='desc'>
|
131
|
+
<tt>ATTRIBUTES constant for a list of valid methods for a given element.</tt>
|
132
|
+
</span>
|
133
|
+
</dd>
|
134
|
+
</dl>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
</div><div class="section source">
|
138
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
139
|
+
<div class="source_code">
|
140
|
+
<table>
|
141
|
+
<tr>
|
142
|
+
<td>
|
143
|
+
<pre class="lines">
|
144
|
+
|
145
|
+
|
146
|
+
235
|
147
|
+
236
|
148
|
+
237
|
149
|
+
238
|
150
|
+
239
|
151
|
+
240
|
152
|
+
241
|
153
|
+
242
|
154
|
+
243
|
155
|
+
244
|
156
|
+
245</pre>
|
157
|
+
</td>
|
158
|
+
<td>
|
159
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 235</span>
|
160
|
+
|
161
|
+
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='blk identifier id'>blk</span><span class='rparen token'>)</span>
|
162
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
163
|
+
|
164
|
+
<span class='meth identifier id'>meth</span> <span class='assign token'>=</span> <span class='selector_to_attribute identifier id'>selector_to_attribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
|
165
|
+
|
166
|
+
<span class='if if kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='ATTRIBUTES constant id'>ATTRIBUTES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span> <span class='eq op'>==</span> <span class='Element constant id'>Element</span> <span class='andop op'>&&</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='hasAttribute identifier id'>hasAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
167
|
+
<span class='return return kw'>return</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getAttribute identifier id'>getAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span>
|
168
|
+
<span class='end end kw'>end</span>
|
169
|
+
<span class='Log constant id'>Log</span><span class='dot token'>.</span><span class='warn identifier id'>warn</span> <span class='dstring node'>"Element\#method_missing calling super with #{meth.inspect}"</span>
|
170
|
+
<span class='super super kw'>super</span>
|
171
|
+
<span class='end end kw'>end</span>
|
172
|
+
</pre>
|
173
|
+
</td>
|
174
|
+
</tr>
|
175
|
+
</table>
|
176
|
+
</div>
|
177
|
+
</div>
|
178
|
+
</div>
|
179
|
+
</div> <div class="section visibilitygroup public">
|
180
|
+
<h1>Public Visibility</h1>
|
181
|
+
<div class="section methodsummary instance public">
|
182
|
+
<div class="inherited">
|
183
|
+
|
184
|
+
<div>
|
185
|
+
<h1>Public Instance Methods Inherited from <a title="Celerity::Element" href="Element.html">Celerity::Element</a></h1>
|
186
|
+
<p><span class='name'><a title="assert_exists" href="Element.html#assert_exists-instance_method">assert_exists</a></span>, <span class='name'><a title="attribute_string" href="Element.html#attribute_string-instance_method">attribute_string</a></span>, <span class='name'><a title="attribute_value" href="Element.html#attribute_value-instance_method">attribute_value</a></span>, <span class='name'><a title="exists?" href="Element.html#exists%3F-instance_method">exists?</a></span>, <span class='name'><a title="fire_event" href="Element.html#fire_event-instance_method">fire_event</a></span>, <span class='name'><a title="focus" href="Element.html#focus-instance_method">focus</a></span>, <span class='name'><a title="locate" href="Element.html#locate-instance_method">locate</a></span>, <span class='name'><a title="methods" href="Element.html#methods-instance_method">methods</a></span>, <span class='name'><a title="object" href="Element.html#object-instance_method">object</a></span>, <span class='name'><a title="parent" href="Element.html#parent-instance_method">parent</a></span>, <span class='name'><a title="respond_to?" href="Element.html#respond_to%3F-instance_method">respond_to?</a></span>, <span class='name'><a title="text" href="Element.html#text-instance_method">text</a></span>, <span class='name'><a title="to_s" href="Element.html#to_s-instance_method">to_s</a></span>, <span class='name'><a title="to_xml" href="Element.html#to_xml-instance_method">to_xml</a></span>, <span class='name'><a title="visible?" href="Element.html#visible%3F-instance_method">visible?</a></span>, <span class='name'><a title="xpath" href="Element.html#xpath-instance_method">xpath</a></span></p>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
<div class="clear"></div>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
</div>
|
196
|
+
</div>
|
197
|
+
</body>
|
198
|
+
</html>
|
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Dts</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Dts">
|
16
|
+
<h1 class="title">Class: Celerity::Dts</h1>
|
17
|
+
<div class="section inheritance">
|
18
|
+
<ul>
|
19
|
+
<li><a title="Celerity::ElementCollection" href="ElementCollection.html">Celerity::ElementCollection</a></li><ul><li>Celerity::Dts</li>
|
20
|
+
</ul></ul>
|
21
|
+
</div><div class="section constants">
|
22
|
+
|
23
|
+
</div><div class="section constructor">
|
24
|
+
<h1>Constructor Summary</h1>
|
25
|
+
<p class="inherited_msg">
|
26
|
+
This class inherits a constructor from <a title="Celerity::ElementCollection" href="ElementCollection.html#initialize-instance_method">Celerity::ElementCollection</a>.
|
27
|
+
</p>
|
28
|
+
</div> <div class="section visibilitygroup public">
|
29
|
+
<h1>Public Visibility</h1>
|
30
|
+
<div class="section methodsummary instance public">
|
31
|
+
<h1>Public Instance Method Summary</h1>
|
32
|
+
<table class="summary">
|
33
|
+
|
34
|
+
<tr>
|
35
|
+
<th class="signature">
|
36
|
+
<span class='name'><a title="#element_class" href="#element_class-instance_method">#element_class</a></span><span class='args'></span>
|
37
|
+
<span class='block'></span>
|
38
|
+
|
39
|
+
</th>
|
40
|
+
<td class="docstring">
|
41
|
+
|
42
|
+
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
|
46
|
+
</table><div class="inherited">
|
47
|
+
|
48
|
+
<div>
|
49
|
+
<h1>Public Instance Methods Inherited from <a title="Celerity::ElementCollection" href="ElementCollection.html">Celerity::ElementCollection</a></h1>
|
50
|
+
<p><span class='name'><a title="[]" href="ElementCollection.html#%5B%5D-instance_method">[]</a></span>, <span class='name'><a title="each" href="ElementCollection.html#each-instance_method">each</a></span>, <span class='name'><a title="first" href="ElementCollection.html#first-instance_method">first</a></span>, <span class='name'><a title="last" href="ElementCollection.html#last-instance_method">last</a></span>, <span class='name'><a title="length" href="ElementCollection.html#length-instance_method">length</a></span>, <span class='name'><a title="to_s" href="ElementCollection.html#to_s-instance_method">to_s</a></span></p>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
<div class="section methoddetails instance public">
|
57
|
+
<h1>Public Instance Method Details</h1>
|
58
|
+
|
59
|
+
<div class="method">
|
60
|
+
<div class="method_header">
|
61
|
+
<h3>element_class</h3>
|
62
|
+
</div><div id="element_class-instance_method" class="section method">
|
63
|
+
<div class="details_title">
|
64
|
+
<div class='section methodsignature'>
|
65
|
+
<tt class='def'>
|
66
|
+
<span class='visibility'>public</span>
|
67
|
+
<span class='return_types'></span>
|
68
|
+
<span class='name'>element_class</span><span class='args'></span>
|
69
|
+
<span class='block'></span>
|
70
|
+
</tt>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
</div><div class="section source">
|
74
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
75
|
+
<div class="source_code">
|
76
|
+
<table>
|
77
|
+
<tr>
|
78
|
+
<td>
|
79
|
+
<pre class="lines">
|
80
|
+
|
81
|
+
|
82
|
+
52</pre>
|
83
|
+
</td>
|
84
|
+
<td>
|
85
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/collections.rb', line 52</span>
|
86
|
+
|
87
|
+
<span class='def def kw'>def</span> <span class='element_class identifier id'>element_class</span><span class='semicolon token'>;</span> <span class='Dt constant id'>Dt</span><span class='semicolon token'>;</span> <span class='end end kw'>end</span>
|
88
|
+
</pre>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
</table>
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</body>
|
103
|
+
</html>
|
@@ -0,0 +1,1703 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Element</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Element">
|
16
|
+
<h1 class="title">Class: Celerity::Element</h1>
|
17
|
+
<div class="section mixins">
|
18
|
+
<h1>Included Modules</h1>
|
19
|
+
<p><a title="Celerity::Exception" href="Element/Exception.html">Celerity::Exception</a>, <a title="Celerity::Container" href="Element/Container.html">Celerity::Container</a></p>
|
20
|
+
</div><div class="section docstring">
|
21
|
+
<p>
|
22
|
+
Superclass for all HTML elements.
|
23
|
+
</p>
|
24
|
+
|
25
|
+
</div><div class="section attributes">
|
26
|
+
<h1>Attributes</h1>
|
27
|
+
|
28
|
+
|
29
|
+
<div class="instance">
|
30
|
+
<h2>Instance Attributes</h2>
|
31
|
+
<table>
|
32
|
+
|
33
|
+
<tr>
|
34
|
+
<th class="name">container</td>
|
35
|
+
<td class="readwrite">
|
36
|
+
[<span id='container-instance_method'>R</span>W]
|
37
|
+
</td>
|
38
|
+
<td class="visibility">
|
39
|
+
public
|
40
|
+
</td>
|
41
|
+
<td class="docstring">
|
42
|
+
<p>
|
43
|
+
Returns the value of attribute <tt>container</tt>.
|
44
|
+
</p>
|
45
|
+
|
46
|
+
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
|
50
|
+
</table>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div><div class="section constants">
|
54
|
+
<div class="thisclass">
|
55
|
+
<h1>Constants</h1>
|
56
|
+
<dl>
|
57
|
+
|
58
|
+
<dt id="ATTRIBUTES-constant">ATTRIBUTES</dt>
|
59
|
+
<dd>BASE_ATTRIBUTES</dd>
|
60
|
+
|
61
|
+
<dt id="BASE_ATTRIBUTES-constant">BASE_ATTRIBUTES</dt>
|
62
|
+
<dd>HTML_401_TRANSITIONAL.values_at(:core, :i18n, :event, :sloppy).flatten</dd>
|
63
|
+
|
64
|
+
<dt id="CELLHALIGN_ATTRIBUTES-constant">CELLHALIGN_ATTRIBUTES</dt>
|
65
|
+
<dd>HTML_401_TRANSITIONAL[:cell_halign]</dd>
|
66
|
+
|
67
|
+
<dt id="CELLVALIGN_ATTRIBUTES-constant">CELLVALIGN_ATTRIBUTES</dt>
|
68
|
+
<dd>HTML_401_TRANSITIONAL[:cell_valign]</dd>
|
69
|
+
|
70
|
+
<dt id="DEFAULT_HOW-constant">DEFAULT_HOW</dt>
|
71
|
+
<dd>nil</dd>
|
72
|
+
|
73
|
+
<dt id="HTML_401_TRANSITIONAL-constant">HTML_401_TRANSITIONAL</dt>
|
74
|
+
<dd>{
|
75
|
+
:core => [:class, :id, :style, :title],
|
76
|
+
:cell_halign => [:align, :char, :charoff],
|
77
|
+
:cell_valign => [:valign],
|
78
|
+
:i18n => [:dir, :lang],
|
79
|
+
:event => [:onclick, :ondblclick, :onmousedown, :onmouseup, :onmouseover,
|
80
|
+
:onmousemove, :onmouseout, :onkeypress, :onkeydown, :onkeyup],
|
81
|
+
:sloppy => [:name, :value]
|
82
|
+
}</dd>
|
83
|
+
|
84
|
+
<dt id="TAGS-constant">TAGS</dt>
|
85
|
+
<dd>[]</dd>
|
86
|
+
|
87
|
+
<dt id="TO_S_SIZE-constant">TO_S_SIZE</dt>
|
88
|
+
<dd>14</dd>
|
89
|
+
|
90
|
+
</dl>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div><div class="section constructor">
|
94
|
+
<h1>Constructor Summary</h1>
|
95
|
+
<div id="initialize-instance_method" class="section method">
|
96
|
+
<div class="details_title">
|
97
|
+
<div class='section methodsignature'>
|
98
|
+
<tt class='def'>
|
99
|
+
<span class='visibility'>public</span>
|
100
|
+
<span class='return_types'></span>
|
101
|
+
<span class='name'>initialize</span><span class='args'>(container, *args)</span>
|
102
|
+
<span class='block'></span>
|
103
|
+
</tt>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
</div><div class="section tags">
|
107
|
+
<h2>Meta Tags</h2>
|
108
|
+
<div class="param">
|
109
|
+
<h3>Parameters:</h3>
|
110
|
+
<dl>
|
111
|
+
|
112
|
+
</dl>
|
113
|
+
</div>
|
114
|
+
</div><div class="section source">
|
115
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
116
|
+
<div class="source_code">
|
117
|
+
<table>
|
118
|
+
<tr>
|
119
|
+
<td>
|
120
|
+
<pre class="lines">
|
121
|
+
|
122
|
+
|
123
|
+
36
|
124
|
+
37
|
125
|
+
38
|
126
|
+
39
|
127
|
+
40
|
128
|
+
41
|
129
|
+
42
|
130
|
+
43
|
131
|
+
44
|
132
|
+
45
|
133
|
+
46
|
134
|
+
47
|
135
|
+
48
|
136
|
+
49
|
137
|
+
50
|
138
|
+
51
|
139
|
+
52
|
140
|
+
53
|
141
|
+
54
|
142
|
+
55</pre>
|
143
|
+
</td>
|
144
|
+
<td>
|
145
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 36</span>
|
146
|
+
|
147
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='container identifier id'>container</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
|
148
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='container identifier id'>container</span> <span class='assign token'>=</span> <span class='container identifier id'>container</span>
|
149
|
+
|
150
|
+
<span class='case case kw'>case</span> <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='size identifier id'>size</span>
|
151
|
+
<span class='when when kw'>when</span> <span class='integer val'>2</span>
|
152
|
+
<span class='@conditions ivar id'>@conditions</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='rbrace token'>}</span>
|
153
|
+
<span class='when when kw'>when</span> <span class='integer val'>1</span>
|
154
|
+
<span class='if if kw'>if</span> <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='first identifier id'>first</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span> <span class='Hash constant id'>Hash</span>
|
155
|
+
<span class='@conditions ivar id'>@conditions</span> <span class='assign token'>=</span> <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='first identifier id'>first</span>
|
156
|
+
<span class='elsif elsif kw'>elsif</span> <span class='lparen token'>(</span><span class='how identifier id'>how</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='DEFAULT_HOW constant id'>DEFAULT_HOW</span><span class='rparen token'>)</span>
|
157
|
+
<span class='@conditions ivar id'>@conditions</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='how identifier id'>how</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='first identifier id'>first</span> <span class='rbrace token'>}</span>
|
158
|
+
<span class='else else kw'>else</span>
|
159
|
+
<span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>"wrong number of arguments (1 for 2)"</span>
|
160
|
+
<span class='end end kw'>end</span>
|
161
|
+
<span class='else else kw'>else</span>
|
162
|
+
<span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='dstring node'>"wrong number of arguments (#{args.size} for 2)"</span>
|
163
|
+
<span class='end end kw'>end</span>
|
164
|
+
|
165
|
+
<span class='@conditions ivar id'>@conditions</span><span class='dot token'>.</span><span class='freeze identifier id'>freeze</span>
|
166
|
+
<span class='end end kw'>end</span>
|
167
|
+
</pre>
|
168
|
+
</td>
|
169
|
+
</tr>
|
170
|
+
</table>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
</div><div class="section methodmissing">
|
175
|
+
<h1>Dynamic Method Handling</h1>
|
176
|
+
|
177
|
+
<p class="note">
|
178
|
+
This class handles dynamic methods through the <tt>method_missing</tt> method
|
179
|
+
|
180
|
+
</p>
|
181
|
+
|
182
|
+
<div id="method_missing-instance_method" class="section method">
|
183
|
+
<div class="details_title">
|
184
|
+
<div class='section methodsignature'>
|
185
|
+
<tt class='def'>
|
186
|
+
<span class='visibility'>public</span>
|
187
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
188
|
+
<span class='name'>method_missing</span><span class='args'>(meth, *args, &blk)</span>
|
189
|
+
<span class='block'></span>
|
190
|
+
</tt>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</div><div class="section docstring">
|
194
|
+
<p>
|
195
|
+
Dynamically get element attributes.
|
196
|
+
</p>
|
197
|
+
|
198
|
+
</div><div class="section tags">
|
199
|
+
<h2>Meta Tags</h2>
|
200
|
+
<div class="param">
|
201
|
+
<h3>Parameters:</h3>
|
202
|
+
<dl>
|
203
|
+
|
204
|
+
</dl>
|
205
|
+
</div><div class="return">
|
206
|
+
<h3>Returns:</h3>
|
207
|
+
<dl>
|
208
|
+
|
209
|
+
<dt>
|
210
|
+
|
211
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
212
|
+
|
213
|
+
|
214
|
+
<span class='name'></span>
|
215
|
+
|
216
|
+
|
217
|
+
</dt>
|
218
|
+
<dd>
|
219
|
+
<span class='desc'><p>
|
220
|
+
The resulting attribute.
|
221
|
+
</p>
|
222
|
+
</span>
|
223
|
+
</dd>
|
224
|
+
|
225
|
+
</dl>
|
226
|
+
</div>
|
227
|
+
<div class="raise">
|
228
|
+
<h3>Raises:</h3>
|
229
|
+
<dl>
|
230
|
+
|
231
|
+
<dt>
|
232
|
+
|
233
|
+
<span class='type'>[<tt>NoMethodError</tt>]</span>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</dt>
|
238
|
+
<dd>
|
239
|
+
<span class='desc'><p>
|
240
|
+
if the element doesn’t support this attribute.
|
241
|
+
</p>
|
242
|
+
</span>
|
243
|
+
</dd>
|
244
|
+
|
245
|
+
</dl>
|
246
|
+
</div>
|
247
|
+
<div class="see">
|
248
|
+
<h3>See Also:</h3>
|
249
|
+
<dl>
|
250
|
+
<dt></dt>
|
251
|
+
<dd>
|
252
|
+
<span class='desc'>
|
253
|
+
<tt>ATTRIBUTES constant for a list of valid methods for a given element.</tt>
|
254
|
+
</span>
|
255
|
+
</dd>
|
256
|
+
</dl>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
</div><div class="section source">
|
260
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
261
|
+
<div class="source_code">
|
262
|
+
<table>
|
263
|
+
<tr>
|
264
|
+
<td>
|
265
|
+
<pre class="lines">
|
266
|
+
|
267
|
+
|
268
|
+
235
|
269
|
+
236
|
270
|
+
237
|
271
|
+
238
|
272
|
+
239
|
273
|
+
240
|
274
|
+
241
|
275
|
+
242
|
276
|
+
243
|
277
|
+
244
|
278
|
+
245</pre>
|
279
|
+
</td>
|
280
|
+
<td>
|
281
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 235</span>
|
282
|
+
|
283
|
+
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='blk identifier id'>blk</span><span class='rparen token'>)</span>
|
284
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
285
|
+
|
286
|
+
<span class='meth identifier id'>meth</span> <span class='assign token'>=</span> <span class='selector_to_attribute identifier id'>selector_to_attribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
|
287
|
+
|
288
|
+
<span class='if if kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='ATTRIBUTES constant id'>ATTRIBUTES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span> <span class='eq op'>==</span> <span class='Element constant id'>Element</span> <span class='andop op'>&&</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='hasAttribute identifier id'>hasAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
289
|
+
<span class='return return kw'>return</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getAttribute identifier id'>getAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span>
|
290
|
+
<span class='end end kw'>end</span>
|
291
|
+
<span class='Log constant id'>Log</span><span class='dot token'>.</span><span class='warn identifier id'>warn</span> <span class='dstring node'>"Element\#method_missing calling super with #{meth.inspect}"</span>
|
292
|
+
<span class='super super kw'>super</span>
|
293
|
+
<span class='end end kw'>end</span>
|
294
|
+
</pre>
|
295
|
+
</td>
|
296
|
+
</tr>
|
297
|
+
</table>
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
</div>
|
301
|
+
</div> <div class="section visibilitygroup public">
|
302
|
+
<h1>Public Visibility</h1>
|
303
|
+
<div class="section methodsummary instance public">
|
304
|
+
<h1>Public Instance Method Summary</h1>
|
305
|
+
<table class="summary">
|
306
|
+
|
307
|
+
<tr>
|
308
|
+
<th class="signature">
|
309
|
+
<span class='name'><a title="#assert_exists" href="#assert_exists-instance_method">#assert_exists</a></span><span class='args'></span>
|
310
|
+
<span class='block'></span>
|
311
|
+
|
312
|
+
</th>
|
313
|
+
<td class="docstring">
|
314
|
+
<p>
|
315
|
+
Used internally to ensure the element actually exists.
|
316
|
+
</p>
|
317
|
+
|
318
|
+
|
319
|
+
</td>
|
320
|
+
</tr>
|
321
|
+
|
322
|
+
<tr>
|
323
|
+
<th class="signature">
|
324
|
+
<span class='name'><a title="#attribute_string" href="#attribute_string-instance_method">#attribute_string</a></span><span class='args'></span>
|
325
|
+
<span class='block'></span>
|
326
|
+
|
327
|
+
</th>
|
328
|
+
<td class="docstring">
|
329
|
+
|
330
|
+
|
331
|
+
<p class='returns'>
|
332
|
+
Returns:
|
333
|
+
<span class='return_types'>
|
334
|
+
<tt><a title="String" href="../String.html">String</a></tt>
|
335
|
+
</span>
|
336
|
+
</p>
|
337
|
+
|
338
|
+
</td>
|
339
|
+
</tr>
|
340
|
+
|
341
|
+
<tr>
|
342
|
+
<th class="signature">
|
343
|
+
<span class='name'><a title="#attribute_value" href="#attribute_value-instance_method">#attribute_value</a></span><span class='args'>(attribute)</span>
|
344
|
+
<span class='block'></span>
|
345
|
+
|
346
|
+
</th>
|
347
|
+
<td class="docstring">
|
348
|
+
|
349
|
+
|
350
|
+
<p class='returns'>
|
351
|
+
Returns:
|
352
|
+
<span class='return_types'>
|
353
|
+
<tt><a title="String" href="../String.html">String</a></tt>
|
354
|
+
</span>
|
355
|
+
</p>
|
356
|
+
|
357
|
+
</td>
|
358
|
+
</tr>
|
359
|
+
|
360
|
+
<tr>
|
361
|
+
<th class="signature">
|
362
|
+
<span class='name'><a title="#exists?" href="#exists%3F-instance_method">#exists?</a></span><span class='args'></span>
|
363
|
+
<span class='block'></span>
|
364
|
+
|
365
|
+
<span class='alias'>#exists</span>
|
366
|
+
|
367
|
+
<span class='alias'>#exist?</span>
|
368
|
+
|
369
|
+
</th>
|
370
|
+
<td class="docstring">
|
371
|
+
<p>
|
372
|
+
Checks if the element exists.
|
373
|
+
</p>
|
374
|
+
|
375
|
+
|
376
|
+
<p class='returns'>
|
377
|
+
Returns:
|
378
|
+
<span class='return_types'>
|
379
|
+
<tt>true</tt>
|
380
|
+
</span>
|
381
|
+
</p>
|
382
|
+
|
383
|
+
</td>
|
384
|
+
</tr>
|
385
|
+
|
386
|
+
<tr>
|
387
|
+
<th class="signature">
|
388
|
+
<span class='name'><a title="#fire_event" href="#fire_event-instance_method">#fire_event</a></span><span class='args'>(event_name)</span>
|
389
|
+
<span class='block'></span>
|
390
|
+
|
391
|
+
</th>
|
392
|
+
<td class="docstring">
|
393
|
+
<p>
|
394
|
+
Fires the given event for this element.
|
395
|
+
</p>
|
396
|
+
|
397
|
+
|
398
|
+
</td>
|
399
|
+
</tr>
|
400
|
+
|
401
|
+
<tr>
|
402
|
+
<th class="signature">
|
403
|
+
<span class='name'><a title="#focus" href="#focus-instance_method">#focus</a></span><span class='args'></span>
|
404
|
+
<span class='block'></span>
|
405
|
+
|
406
|
+
</th>
|
407
|
+
<td class="docstring">
|
408
|
+
<p>
|
409
|
+
Sets the focus to this element.
|
410
|
+
</p>
|
411
|
+
|
412
|
+
|
413
|
+
</td>
|
414
|
+
</tr>
|
415
|
+
|
416
|
+
<tr>
|
417
|
+
<th class="signature">
|
418
|
+
<span class='name'><a title="#locate" href="#locate-instance_method">#locate</a></span><span class='args'></span>
|
419
|
+
<span class='block'></span>
|
420
|
+
|
421
|
+
</th>
|
422
|
+
<td class="docstring">
|
423
|
+
<p>
|
424
|
+
Used internally.
|
425
|
+
</p>
|
426
|
+
|
427
|
+
|
428
|
+
</td>
|
429
|
+
</tr>
|
430
|
+
|
431
|
+
<tr>
|
432
|
+
<th class="signature">
|
433
|
+
<span class='name'><a title="#methods" href="#methods-instance_method">#methods</a></span><span class='args'>(*args)</span>
|
434
|
+
<span class='block'></span>
|
435
|
+
|
436
|
+
</th>
|
437
|
+
<td class="docstring">
|
438
|
+
|
439
|
+
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
|
443
|
+
<tr>
|
444
|
+
<th class="signature">
|
445
|
+
<span class='name'><a title="#object" href="#object-instance_method">#object</a></span><span class='args'></span>
|
446
|
+
<span class='block'></span>
|
447
|
+
|
448
|
+
</th>
|
449
|
+
<td class="docstring">
|
450
|
+
|
451
|
+
|
452
|
+
</td>
|
453
|
+
</tr>
|
454
|
+
|
455
|
+
<tr>
|
456
|
+
<th class="signature">
|
457
|
+
<span class='name'><a title="#parent" href="#parent-instance_method">#parent</a></span><span class='args'></span>
|
458
|
+
<span class='block'></span>
|
459
|
+
|
460
|
+
</th>
|
461
|
+
<td class="docstring">
|
462
|
+
<p>
|
463
|
+
Get the parent element.
|
464
|
+
</p>
|
465
|
+
|
466
|
+
|
467
|
+
<p class='returns'>
|
468
|
+
Returns:
|
469
|
+
<span class='return_types'>
|
470
|
+
<tt><a title="Celerity::Element" href="">Celerity::Element</a></tt>
|
471
|
+
</span>
|
472
|
+
</p>
|
473
|
+
|
474
|
+
</td>
|
475
|
+
</tr>
|
476
|
+
|
477
|
+
<tr>
|
478
|
+
<th class="signature">
|
479
|
+
<span class='name'><a title="#respond_to?" href="#respond_to%3F-instance_method">#respond_to?</a></span><span class='args'>(meth, include_private = false)</span>
|
480
|
+
<span class='block'></span>
|
481
|
+
|
482
|
+
</th>
|
483
|
+
<td class="docstring">
|
484
|
+
|
485
|
+
|
486
|
+
</td>
|
487
|
+
</tr>
|
488
|
+
|
489
|
+
<tr>
|
490
|
+
<th class="signature">
|
491
|
+
<span class='name'><a title="#text" href="#text-instance_method">#text</a></span><span class='args'></span>
|
492
|
+
<span class='block'></span>
|
493
|
+
|
494
|
+
<span class='alias'>#innerText</span>
|
495
|
+
|
496
|
+
<span class='alias'>#inner_text</span>
|
497
|
+
|
498
|
+
</th>
|
499
|
+
<td class="docstring">
|
500
|
+
<p>
|
501
|
+
Return a text representation of the element as it would appear in a
|
502
|
+
browser.
|
503
|
+
</p>
|
504
|
+
|
505
|
+
|
506
|
+
<p class='returns'>
|
507
|
+
Returns:
|
508
|
+
<span class='return_types'>
|
509
|
+
<tt><a title="String" href="../String.html">String</a></tt>
|
510
|
+
</span>
|
511
|
+
</p>
|
512
|
+
|
513
|
+
</td>
|
514
|
+
</tr>
|
515
|
+
|
516
|
+
<tr>
|
517
|
+
<th class="signature">
|
518
|
+
<span class='name'><a title="#to_s" href="#to_s-instance_method">#to_s</a></span><span class='args'></span>
|
519
|
+
<span class='block'></span>
|
520
|
+
|
521
|
+
</th>
|
522
|
+
<td class="docstring">
|
523
|
+
|
524
|
+
|
525
|
+
<p class='returns'>
|
526
|
+
Returns:
|
527
|
+
<span class='return_types'>
|
528
|
+
<tt><a title="String" href="../String.html">String</a></tt>
|
529
|
+
</span>
|
530
|
+
</p>
|
531
|
+
|
532
|
+
</td>
|
533
|
+
</tr>
|
534
|
+
|
535
|
+
<tr>
|
536
|
+
<th class="signature">
|
537
|
+
<span class='name'><a title="#to_xml" href="#to_xml-instance_method">#to_xml</a></span><span class='args'></span>
|
538
|
+
<span class='block'></span>
|
539
|
+
|
540
|
+
<span class='alias'>#html</span>
|
541
|
+
|
542
|
+
<span class='alias'>#asXml</span>
|
543
|
+
|
544
|
+
<span class='alias'>#as_xml</span>
|
545
|
+
|
546
|
+
</th>
|
547
|
+
<td class="docstring">
|
548
|
+
|
549
|
+
|
550
|
+
<p class='returns'>
|
551
|
+
Returns:
|
552
|
+
<span class='return_types'>
|
553
|
+
<tt><a title="String" href="../String.html">String</a></tt>
|
554
|
+
</span>
|
555
|
+
</p>
|
556
|
+
|
557
|
+
</td>
|
558
|
+
</tr>
|
559
|
+
|
560
|
+
<tr>
|
561
|
+
<th class="signature">
|
562
|
+
<span class='name'><a title="#visible?" href="#visible%3F-instance_method">#visible?</a></span><span class='args'></span>
|
563
|
+
<span class='block'></span>
|
564
|
+
|
565
|
+
</th>
|
566
|
+
<td class="docstring">
|
567
|
+
<p>
|
568
|
+
Check if the element is visible to the user or not.
|
569
|
+
</p>
|
570
|
+
|
571
|
+
|
572
|
+
<p class='returns'>
|
573
|
+
Returns:
|
574
|
+
<span class='return_types'>
|
575
|
+
<tt>boolean</tt>
|
576
|
+
</span>
|
577
|
+
</p>
|
578
|
+
|
579
|
+
</td>
|
580
|
+
</tr>
|
581
|
+
|
582
|
+
<tr>
|
583
|
+
<th class="signature">
|
584
|
+
<span class='name'><a title="#xpath" href="#xpath-instance_method">#xpath</a></span><span class='args'></span>
|
585
|
+
<span class='block'></span>
|
586
|
+
|
587
|
+
</th>
|
588
|
+
<td class="docstring">
|
589
|
+
<p>
|
590
|
+
return the canonical xpath for this element (Celerity-specific).
|
591
|
+
</p>
|
592
|
+
|
593
|
+
|
594
|
+
</td>
|
595
|
+
</tr>
|
596
|
+
|
597
|
+
</table><div class="included">
|
598
|
+
|
599
|
+
<div>
|
600
|
+
<h1>Public Instance Methods Included from <a title="Celerity::Container" href="Element/Container.html">Celerity::Container</a></h1>
|
601
|
+
<p><span class='name'><a title="area" href="Container.html#area-instance_method">area</a></span>, <span class='name'><a title="areas" href="Container.html#areas-instance_method">areas</a></span>, <span class='name'><a title="button" href="Container.html#button-instance_method">button</a></span>, <span class='name'><a title="buttons" href="Container.html#buttons-instance_method">buttons</a></span>, <span class='name'><a title="cell" href="Container.html#cell-instance_method">cell</a></span>, <span class='name'><a title="cells" href="Container.html#cells-instance_method">cells</a></span>, <span class='name'><a title="check_box" href="Container.html#check_box-instance_method">check_box</a></span>, <span class='name'><a title="checkboxes" href="Container.html#checkboxes-instance_method">checkboxes</a></span>, <span class='name'><a title="contains_text" href="Container.html#contains_text-instance_method">contains_text</a></span>, <span class='name'><a title="dd" href="Container.html#dd-instance_method">dd</a></span>, <span class='name'><a title="dds" href="Container.html#dds-instance_method">dds</a></span>, <span class='name'><a title="div" href="Container.html#div-instance_method">div</a></span>, <span class='name'><a title="divs" href="Container.html#divs-instance_method">divs</a></span>, <span class='name'><a title="dl" href="Container.html#dl-instance_method">dl</a></span>, <span class='name'><a title="dls" href="Container.html#dls-instance_method">dls</a></span>, <span class='name'><a title="dt" href="Container.html#dt-instance_method">dt</a></span>, <span class='name'><a title="dts" href="Container.html#dts-instance_method">dts</a></span>, <span class='name'><a title="em" href="Container.html#em-instance_method">em</a></span>, <span class='name'><a title="ems" href="Container.html#ems-instance_method">ems</a></span>, <span class='name'><a title="file_field" href="Container.html#file_field-instance_method">file_field</a></span>, <span class='name'><a title="file_fields" href="Container.html#file_fields-instance_method">file_fields</a></span>, <span class='name'><a title="form" href="Container.html#form-instance_method">form</a></span>, <span class='name'><a title="forms" href="Container.html#forms-instance_method">forms</a></span>, <span class='name'><a title="frame" href="Container.html#frame-instance_method">frame</a></span>, <span class='name'><a title="frames" href="Container.html#frames-instance_method">frames</a></span>, <span class='name'><a title="h1" href="Container.html#h1-instance_method">h1</a></span>, <span class='name'><a title="h1s" href="Container.html#h1s-instance_method">h1s</a></span>, <span class='name'><a title="h2" href="Container.html#h2-instance_method">h2</a></span>, <span class='name'><a title="h2s" href="Container.html#h2s-instance_method">h2s</a></span>, <span class='name'><a title="h3" href="Container.html#h3-instance_method">h3</a></span>, <span class='name'><a title="h3s" href="Container.html#h3s-instance_method">h3s</a></span>, <span class='name'><a title="h4" href="Container.html#h4-instance_method">h4</a></span>, <span class='name'><a title="h4s" href="Container.html#h4s-instance_method">h4s</a></span>, <span class='name'><a title="h5" href="Container.html#h5-instance_method">h5</a></span>, <span class='name'><a title="h5s" href="Container.html#h5s-instance_method">h5s</a></span>, <span class='name'><a title="h6" href="Container.html#h6-instance_method">h6</a></span>, <span class='name'><a title="h6s" href="Container.html#h6s-instance_method">h6s</a></span>, <span class='name'><a title="hidden" href="Container.html#hidden-instance_method">hidden</a></span>, <span class='name'><a title="hiddens" href="Container.html#hiddens-instance_method">hiddens</a></span>, <span class='name'><a title="image" href="Container.html#image-instance_method">image</a></span>, <span class='name'><a title="images" href="Container.html#images-instance_method">images</a></span>, <span class='name'><a title="inspect" href="Container.html#inspect-instance_method">inspect</a></span>, <span class='name'><a title="label" href="Container.html#label-instance_method">label</a></span>, <span class='name'><a title="labels" href="Container.html#labels-instance_method">labels</a></span>, <span class='name'><a title="li" href="Container.html#li-instance_method">li</a></span>, <span class='name'><a title="link" href="Container.html#link-instance_method">link</a></span>, <span class='name'><a title="links" href="Container.html#links-instance_method">links</a></span>, <span class='name'><a title="lis" href="Container.html#lis-instance_method">lis</a></span>, <span class='name'><a title="map" href="Container.html#map-instance_method">map</a></span>, <span class='name'><a title="maps" href="Container.html#maps-instance_method">maps</a></span>, <span class='name'><a title="meta" href="Container.html#meta-instance_method">meta</a></span>, <span class='name'><a title="metas" href="Container.html#metas-instance_method">metas</a></span>, <span class='name'><a title="ol" href="Container.html#ol-instance_method">ol</a></span>, <span class='name'><a title="ols" href="Container.html#ols-instance_method">ols</a></span>, <span class='name'><a title="option" href="Container.html#option-instance_method">option</a></span>, <span class='name'><a title="p" href="Container.html#p-instance_method">p</a></span>, <span class='name'><a title="pre" href="Container.html#pre-instance_method">pre</a></span>, <span class='name'><a title="pres" href="Container.html#pres-instance_method">pres</a></span>, <span class='name'><a title="ps" href="Container.html#ps-instance_method">ps</a></span>, <span class='name'><a title="radio" href="Container.html#radio-instance_method">radio</a></span>, <span class='name'><a title="radios" href="Container.html#radios-instance_method">radios</a></span>, <span class='name'><a title="row" href="Container.html#row-instance_method">row</a></span>, <span class='name'><a title="rows" href="Container.html#rows-instance_method">rows</a></span>, <span class='name'><a title="select_list" href="Container.html#select_list-instance_method">select_list</a></span>, <span class='name'><a title="select_lists" href="Container.html#select_lists-instance_method">select_lists</a></span>, <span class='name'><a title="span" href="Container.html#span-instance_method">span</a></span>, <span class='name'><a title="spans" href="Container.html#spans-instance_method">spans</a></span>, <span class='name'><a title="strong" href="Container.html#strong-instance_method">strong</a></span>, <span class='name'><a title="strongs" href="Container.html#strongs-instance_method">strongs</a></span>, <span class='name'><a title="table" href="Container.html#table-instance_method">table</a></span>, <span class='name'><a title="tables" href="Container.html#tables-instance_method">tables</a></span>, <span class='name'><a title="tbodies" href="Container.html#tbodies-instance_method">tbodies</a></span>, <span class='name'><a title="tbody" href="Container.html#tbody-instance_method">tbody</a></span>, <span class='name'><a title="text_field" href="Container.html#text_field-instance_method">text_field</a></span>, <span class='name'><a title="text_fields" href="Container.html#text_fields-instance_method">text_fields</a></span>, <span class='name'><a title="tfoot" href="Container.html#tfoot-instance_method">tfoot</a></span>, <span class='name'><a title="tfoots" href="Container.html#tfoots-instance_method">tfoots</a></span>, <span class='name'><a title="th" href="Container.html#th-instance_method">th</a></span>, <span class='name'><a title="thead" href="Container.html#thead-instance_method">thead</a></span>, <span class='name'><a title="theads" href="Container.html#theads-instance_method">theads</a></span>, <span class='name'><a title="ths" href="Container.html#ths-instance_method">ths</a></span>, <span class='name'><a title="ul" href="Container.html#ul-instance_method">ul</a></span>, <span class='name'><a title="uls" href="Container.html#uls-instance_method">uls</a></span>, <span class='name'><a title="update_page" href="Container.html#update_page-instance_method">update_page</a></span></p>
|
602
|
+
</div>
|
603
|
+
|
604
|
+
</div>
|
605
|
+
<div class="clear"></div>
|
606
|
+
</div>
|
607
|
+
<div class="section methoddetails instance public">
|
608
|
+
<h1>Public Instance Method Details</h1>
|
609
|
+
|
610
|
+
<div class="method">
|
611
|
+
<div class="method_header">
|
612
|
+
<h3>assert_exists</h3>
|
613
|
+
</div><div id="assert_exists-instance_method" class="section method">
|
614
|
+
<div class="details_title">
|
615
|
+
<div class='section methodsignature'>
|
616
|
+
<tt class='def'>
|
617
|
+
<span class='visibility'>public</span>
|
618
|
+
<span class='return_types'></span>
|
619
|
+
<span class='name'>assert_exists</span><span class='args'></span>
|
620
|
+
<span class='block'></span>
|
621
|
+
</tt>
|
622
|
+
</div>
|
623
|
+
|
624
|
+
</div><div class="section docstring">
|
625
|
+
<p>
|
626
|
+
Used internally to ensure the element actually exists.
|
627
|
+
</p>
|
628
|
+
|
629
|
+
</div><div class="section tags">
|
630
|
+
<h2>Meta Tags</h2>
|
631
|
+
<div class="param">
|
632
|
+
<h3>Parameters:</h3>
|
633
|
+
<dl>
|
634
|
+
|
635
|
+
</dl>
|
636
|
+
</div><div class="raise">
|
637
|
+
<h3>Raises:</h3>
|
638
|
+
<dl>
|
639
|
+
|
640
|
+
<dt>
|
641
|
+
|
642
|
+
<span class='type'>[<tt><a title="Celerity::Exception::UnknownObjectException" href="Exception/UnknownObjectException.html">Celerity::Exception::UnknownObjectException</a></tt>]</span>
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
</dt>
|
647
|
+
<dd>
|
648
|
+
<span class='desc'><p>
|
649
|
+
if the element can’t be found.
|
650
|
+
</p>
|
651
|
+
</span>
|
652
|
+
</dd>
|
653
|
+
|
654
|
+
</dl>
|
655
|
+
</div>
|
656
|
+
|
657
|
+
</div><div class="section source">
|
658
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
659
|
+
<div class="source_code">
|
660
|
+
<table>
|
661
|
+
<tr>
|
662
|
+
<td>
|
663
|
+
<pre class="lines">
|
664
|
+
|
665
|
+
|
666
|
+
144
|
667
|
+
145
|
668
|
+
146
|
669
|
+
147
|
670
|
+
148
|
671
|
+
149</pre>
|
672
|
+
</td>
|
673
|
+
<td>
|
674
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 144</span>
|
675
|
+
|
676
|
+
<span class='def def kw'>def</span> <span class='assert_exists identifier id'>assert_exists</span>
|
677
|
+
<span class='locate identifier id'>locate</span>
|
678
|
+
<span class='unless unless kw'>unless</span> <span class='@object ivar id'>@object</span>
|
679
|
+
<span class='raise identifier id'>raise</span> <span class='UnknownObjectException constant id'>UnknownObjectException</span><span class='comma token'>,</span> <span class='dstring node'>"Unable to locate #{self.class.name[/::(.*)$/, 1]}, using #{identifier_string}"</span>
|
680
|
+
<span class='end end kw'>end</span>
|
681
|
+
<span class='end end kw'>end</span>
|
682
|
+
</pre>
|
683
|
+
</td>
|
684
|
+
</tr>
|
685
|
+
</table>
|
686
|
+
</div>
|
687
|
+
</div>
|
688
|
+
</div>
|
689
|
+
</div>
|
690
|
+
|
691
|
+
<div class="method">
|
692
|
+
<div class="method_header">
|
693
|
+
<h3>attribute_string</h3>
|
694
|
+
</div><div id="attribute_string-instance_method" class="section method">
|
695
|
+
<div class="details_title">
|
696
|
+
<div class='section methodsignature'>
|
697
|
+
<tt class='def'>
|
698
|
+
<span class='visibility'>public</span>
|
699
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
700
|
+
<span class='name'>attribute_string</span><span class='args'></span>
|
701
|
+
<span class='block'></span>
|
702
|
+
</tt>
|
703
|
+
</div>
|
704
|
+
|
705
|
+
</div><div class="section tags">
|
706
|
+
<h2>Meta Tags</h2>
|
707
|
+
<div class="param">
|
708
|
+
<h3>Parameters:</h3>
|
709
|
+
<dl>
|
710
|
+
|
711
|
+
</dl>
|
712
|
+
</div><div class="return">
|
713
|
+
<h3>Returns:</h3>
|
714
|
+
<dl>
|
715
|
+
|
716
|
+
<dt>
|
717
|
+
|
718
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
719
|
+
|
720
|
+
|
721
|
+
<span class='name'></span>
|
722
|
+
|
723
|
+
|
724
|
+
</dt>
|
725
|
+
<dd>
|
726
|
+
<span class='desc'><p>
|
727
|
+
A string representation of the element’s attributes.
|
728
|
+
</p>
|
729
|
+
</span>
|
730
|
+
</dd>
|
731
|
+
|
732
|
+
</dl>
|
733
|
+
</div>
|
734
|
+
|
735
|
+
</div><div class="section source">
|
736
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
737
|
+
<div class="source_code">
|
738
|
+
<table>
|
739
|
+
<tr>
|
740
|
+
<td>
|
741
|
+
<pre class="lines">
|
742
|
+
|
743
|
+
|
744
|
+
206
|
745
|
+
207
|
746
|
+
208
|
747
|
+
209
|
748
|
+
210
|
749
|
+
211
|
750
|
+
212
|
751
|
+
213
|
752
|
+
214
|
753
|
+
215</pre>
|
754
|
+
</td>
|
755
|
+
<td>
|
756
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 206</span>
|
757
|
+
|
758
|
+
<span class='def def kw'>def</span> <span class='attribute_string identifier id'>attribute_string</span>
|
759
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
760
|
+
|
761
|
+
<span class='result identifier id'>result</span> <span class='assign token'>=</span> <span class='string val'>''</span>
|
762
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getAttributes identifier id'>getAttributes</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='attribute identifier id'>attribute</span><span class='bitor op'>|</span>
|
763
|
+
<span class='result identifier id'>result</span> <span class='lshft op'><<</span> <span class='dstring node'>%Q{#{attribute.getName}="#{attribute.getValue}"}</span>
|
764
|
+
<span class='end end kw'>end</span>
|
765
|
+
|
766
|
+
<span class='result identifier id'>result</span>
|
767
|
+
<span class='end end kw'>end</span>
|
768
|
+
</pre>
|
769
|
+
</td>
|
770
|
+
</tr>
|
771
|
+
</table>
|
772
|
+
</div>
|
773
|
+
</div>
|
774
|
+
</div>
|
775
|
+
</div>
|
776
|
+
|
777
|
+
<div class="method">
|
778
|
+
<div class="method_header">
|
779
|
+
<h3>attribute_value</h3>
|
780
|
+
</div><div id="attribute_value-instance_method" class="section method">
|
781
|
+
<div class="details_title">
|
782
|
+
<div class='section methodsignature'>
|
783
|
+
<tt class='def'>
|
784
|
+
<span class='visibility'>public</span>
|
785
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
786
|
+
<span class='name'>attribute_value</span><span class='args'>(attribute)</span>
|
787
|
+
<span class='block'></span>
|
788
|
+
</tt>
|
789
|
+
</div>
|
790
|
+
|
791
|
+
</div><div class="section tags">
|
792
|
+
<h2>Meta Tags</h2>
|
793
|
+
<div class="param">
|
794
|
+
<h3>Parameters:</h3>
|
795
|
+
<dl>
|
796
|
+
|
797
|
+
</dl>
|
798
|
+
</div><div class="return">
|
799
|
+
<h3>Returns:</h3>
|
800
|
+
<dl>
|
801
|
+
|
802
|
+
<dt>
|
803
|
+
|
804
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
805
|
+
|
806
|
+
|
807
|
+
<span class='name'></span>
|
808
|
+
|
809
|
+
|
810
|
+
</dt>
|
811
|
+
<dd>
|
812
|
+
<span class='desc'><p>
|
813
|
+
The value of the given attribute.
|
814
|
+
</p>
|
815
|
+
</span>
|
816
|
+
</dd>
|
817
|
+
|
818
|
+
</dl>
|
819
|
+
</div>
|
820
|
+
|
821
|
+
</div><div class="section source">
|
822
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
823
|
+
<div class="source_code">
|
824
|
+
<table>
|
825
|
+
<tr>
|
826
|
+
<td>
|
827
|
+
<pre class="lines">
|
828
|
+
|
829
|
+
|
830
|
+
119
|
831
|
+
120
|
832
|
+
121
|
833
|
+
122</pre>
|
834
|
+
</td>
|
835
|
+
<td>
|
836
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 119</span>
|
837
|
+
|
838
|
+
<span class='def def kw'>def</span> <span class='attribute_value identifier id'>attribute_value</span><span class='lparen token'>(</span><span class='attribute identifier id'>attribute</span><span class='rparen token'>)</span>
|
839
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
840
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getAttribute identifier id'>getAttribute</span><span class='lparen token'>(</span><span class='attribute identifier id'>attribute</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span>
|
841
|
+
<span class='end end kw'>end</span>
|
842
|
+
</pre>
|
843
|
+
</td>
|
844
|
+
</tr>
|
845
|
+
</table>
|
846
|
+
</div>
|
847
|
+
</div>
|
848
|
+
</div>
|
849
|
+
</div>
|
850
|
+
|
851
|
+
<div class="method">
|
852
|
+
<div class="method_header">
|
853
|
+
<h3>exists?</h3>
|
854
|
+
</div><div id="exists%3F-instance_method" class="section method">
|
855
|
+
<div class="details_title">
|
856
|
+
<div class='section methodsignature'>
|
857
|
+
<tt class='def'>
|
858
|
+
<span class='visibility'>public</span>
|
859
|
+
<span class='return_types'><tt>true</tt></span>
|
860
|
+
<span class='name'>exists?</span><span class='args'></span>
|
861
|
+
<span class='block'></span>
|
862
|
+
</tt>
|
863
|
+
</div>
|
864
|
+
<p class="aliases">
|
865
|
+
<span class="aka">Also known as:</span>
|
866
|
+
|
867
|
+
<tt id="exists-instance_method">exists</tt>
|
868
|
+
|
869
|
+
<tt id="exist%3F-instance_method">exist?</tt>
|
870
|
+
|
871
|
+
</p>
|
872
|
+
</div><div class="section docstring">
|
873
|
+
<p>
|
874
|
+
Checks if the element exists.
|
875
|
+
</p>
|
876
|
+
|
877
|
+
</div><div class="section tags">
|
878
|
+
<h2>Meta Tags</h2>
|
879
|
+
<div class="param">
|
880
|
+
<h3>Parameters:</h3>
|
881
|
+
<dl>
|
882
|
+
|
883
|
+
</dl>
|
884
|
+
</div><div class="return">
|
885
|
+
<h3>Returns:</h3>
|
886
|
+
<dl>
|
887
|
+
|
888
|
+
<dt>
|
889
|
+
|
890
|
+
<span class='type'>[<tt>true</tt>, <tt>false</tt>]</span>
|
891
|
+
|
892
|
+
|
893
|
+
<span class='name'></span>
|
894
|
+
|
895
|
+
|
896
|
+
</dt>
|
897
|
+
<dd>
|
898
|
+
<span class='desc'></span>
|
899
|
+
</dd>
|
900
|
+
|
901
|
+
</dl>
|
902
|
+
</div>
|
903
|
+
|
904
|
+
</div><div class="section source">
|
905
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
906
|
+
<div class="source_code">
|
907
|
+
<table>
|
908
|
+
<tr>
|
909
|
+
<td>
|
910
|
+
<pre class="lines">
|
911
|
+
|
912
|
+
|
913
|
+
156
|
914
|
+
157
|
915
|
+
158
|
916
|
+
159
|
917
|
+
160
|
918
|
+
161</pre>
|
919
|
+
</td>
|
920
|
+
<td>
|
921
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 156</span>
|
922
|
+
|
923
|
+
<span class='def def kw'>def</span> <span class='exists? fid id'>exists?</span>
|
924
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
925
|
+
<span class='true true kw'>true</span>
|
926
|
+
<span class='rescue rescue kw'>rescue</span> <span class='UnknownObjectException constant id'>UnknownObjectException</span><span class='comma token'>,</span> <span class='UnknownFrameException constant id'>UnknownFrameException</span>
|
927
|
+
<span class='false false kw'>false</span>
|
928
|
+
<span class='end end kw'>end</span>
|
929
|
+
</pre>
|
930
|
+
</td>
|
931
|
+
</tr>
|
932
|
+
</table>
|
933
|
+
</div>
|
934
|
+
</div>
|
935
|
+
</div>
|
936
|
+
</div>
|
937
|
+
|
938
|
+
<div class="method">
|
939
|
+
<div class="method_header">
|
940
|
+
<h3>fire_event</h3>
|
941
|
+
</div><div id="fire_event-instance_method" class="section method">
|
942
|
+
<div class="details_title">
|
943
|
+
<div class='section methodsignature'>
|
944
|
+
<tt class='def'>
|
945
|
+
<span class='visibility'>public</span>
|
946
|
+
<span class='return_types'></span>
|
947
|
+
<span class='name'>fire_event</span><span class='args'>(event_name)</span>
|
948
|
+
<span class='block'></span>
|
949
|
+
</tt>
|
950
|
+
</div>
|
951
|
+
|
952
|
+
</div><div class="section docstring">
|
953
|
+
<p>
|
954
|
+
Fires the given event for this element
|
955
|
+
</p>
|
956
|
+
|
957
|
+
</div><div class="section source">
|
958
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
959
|
+
<div class="source_code">
|
960
|
+
<table>
|
961
|
+
<tr>
|
962
|
+
<td>
|
963
|
+
<pre class="lines">
|
964
|
+
|
965
|
+
|
966
|
+
87
|
967
|
+
88
|
968
|
+
89
|
969
|
+
90</pre>
|
970
|
+
</td>
|
971
|
+
<td>
|
972
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 87</span>
|
973
|
+
|
974
|
+
<span class='def def kw'>def</span> <span class='fire_event identifier id'>fire_event</span><span class='lparen token'>(</span><span class='event_name identifier id'>event_name</span><span class='rparen token'>)</span>
|
975
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
976
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='fireEvent identifier id'>fireEvent</span><span class='lparen token'>(</span><span class='event_name identifier id'>event_name</span><span class='dot token'>.</span><span class='sub identifier id'>sub</span><span class='lparen token'>(</span><span class='regexp val'>/^on/</span><span class='comma token'>,</span> <span class='string val'>''</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
977
|
+
<span class='end end kw'>end</span>
|
978
|
+
</pre>
|
979
|
+
</td>
|
980
|
+
</tr>
|
981
|
+
</table>
|
982
|
+
</div>
|
983
|
+
</div>
|
984
|
+
</div>
|
985
|
+
</div>
|
986
|
+
|
987
|
+
<div class="method">
|
988
|
+
<div class="method_header">
|
989
|
+
<h3>focus</h3>
|
990
|
+
</div><div id="focus-instance_method" class="section method">
|
991
|
+
<div class="details_title">
|
992
|
+
<div class='section methodsignature'>
|
993
|
+
<tt class='def'>
|
994
|
+
<span class='visibility'>public</span>
|
995
|
+
<span class='return_types'></span>
|
996
|
+
<span class='name'>focus</span><span class='args'></span>
|
997
|
+
<span class='block'></span>
|
998
|
+
</tt>
|
999
|
+
</div>
|
1000
|
+
|
1001
|
+
</div><div class="section docstring">
|
1002
|
+
<p>
|
1003
|
+
Sets the focus to this element.
|
1004
|
+
</p>
|
1005
|
+
|
1006
|
+
</div><div class="section source">
|
1007
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1008
|
+
<div class="source_code">
|
1009
|
+
<table>
|
1010
|
+
<tr>
|
1011
|
+
<td>
|
1012
|
+
<pre class="lines">
|
1013
|
+
|
1014
|
+
|
1015
|
+
78
|
1016
|
+
79
|
1017
|
+
80
|
1018
|
+
81</pre>
|
1019
|
+
</td>
|
1020
|
+
<td>
|
1021
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 78</span>
|
1022
|
+
|
1023
|
+
<span class='def def kw'>def</span> <span class='focus identifier id'>focus</span>
|
1024
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1025
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='focus identifier id'>focus</span>
|
1026
|
+
<span class='end end kw'>end</span>
|
1027
|
+
</pre>
|
1028
|
+
</td>
|
1029
|
+
</tr>
|
1030
|
+
</table>
|
1031
|
+
</div>
|
1032
|
+
</div>
|
1033
|
+
</div>
|
1034
|
+
</div>
|
1035
|
+
|
1036
|
+
<div class="method">
|
1037
|
+
<div class="method_header">
|
1038
|
+
<h3>locate</h3>
|
1039
|
+
</div><div id="locate-instance_method" class="section method">
|
1040
|
+
<div class="details_title">
|
1041
|
+
<div class='section methodsignature'>
|
1042
|
+
<tt class='def'>
|
1043
|
+
<span class='visibility'>public</span>
|
1044
|
+
<span class='return_types'></span>
|
1045
|
+
<span class='name'>locate</span><span class='args'></span>
|
1046
|
+
<span class='block'></span>
|
1047
|
+
</tt>
|
1048
|
+
</div>
|
1049
|
+
|
1050
|
+
</div><div class="section docstring">
|
1051
|
+
<p>
|
1052
|
+
Used internally. Find the element on the page.
|
1053
|
+
</p>
|
1054
|
+
|
1055
|
+
</div><div class="section tags">
|
1056
|
+
<h2>Meta Tags</h2>
|
1057
|
+
<div class="param">
|
1058
|
+
<h3>Parameters:</h3>
|
1059
|
+
<dl>
|
1060
|
+
|
1061
|
+
</dl>
|
1062
|
+
</div>
|
1063
|
+
</div><div class="section source">
|
1064
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1065
|
+
<div class="source_code">
|
1066
|
+
<table>
|
1067
|
+
<tr>
|
1068
|
+
<td>
|
1069
|
+
<pre class="lines">
|
1070
|
+
|
1071
|
+
|
1072
|
+
97
|
1073
|
+
98
|
1074
|
+
99</pre>
|
1075
|
+
</td>
|
1076
|
+
<td>
|
1077
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 97</span>
|
1078
|
+
|
1079
|
+
<span class='def def kw'>def</span> <span class='locate identifier id'>locate</span>
|
1080
|
+
<span class='@object ivar id'>@object</span> <span class='assign token'>=</span> <span class='ElementLocator constant id'>ElementLocator</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='@container ivar id'>@container</span><span class='comma token'>,</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='find_by_conditions identifier id'>find_by_conditions</span><span class='lparen token'>(</span><span class='@conditions ivar id'>@conditions</span><span class='rparen token'>)</span>
|
1081
|
+
<span class='end end kw'>end</span>
|
1082
|
+
</pre>
|
1083
|
+
</td>
|
1084
|
+
</tr>
|
1085
|
+
</table>
|
1086
|
+
</div>
|
1087
|
+
</div>
|
1088
|
+
</div>
|
1089
|
+
</div>
|
1090
|
+
|
1091
|
+
<div class="method">
|
1092
|
+
<div class="method_header">
|
1093
|
+
<h3>methods</h3>
|
1094
|
+
</div><div id="methods-instance_method" class="section method">
|
1095
|
+
<div class="details_title">
|
1096
|
+
<div class='section methodsignature'>
|
1097
|
+
<tt class='def'>
|
1098
|
+
<span class='visibility'>public</span>
|
1099
|
+
<span class='return_types'></span>
|
1100
|
+
<span class='name'>methods</span><span class='args'>(*args)</span>
|
1101
|
+
<span class='block'></span>
|
1102
|
+
</tt>
|
1103
|
+
</div>
|
1104
|
+
|
1105
|
+
</div><div class="section source">
|
1106
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1107
|
+
<div class="source_code">
|
1108
|
+
<table>
|
1109
|
+
<tr>
|
1110
|
+
<td>
|
1111
|
+
<pre class="lines">
|
1112
|
+
|
1113
|
+
|
1114
|
+
247
|
1115
|
+
248
|
1116
|
+
249
|
1117
|
+
250
|
1118
|
+
251</pre>
|
1119
|
+
</td>
|
1120
|
+
<td>
|
1121
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 247</span>
|
1122
|
+
|
1123
|
+
<span class='def def kw'>def</span> <span class='methods identifier id'>methods</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
|
1124
|
+
<span class='ms identifier id'>ms</span> <span class='assign token'>=</span> <span class='super super kw'>super</span>
|
1125
|
+
<span class='ms identifier id'>ms</span> <span class='opasgn op'>+=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='ATTRIBUTES constant id'>ATTRIBUTES</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='e identifier id'>e</span><span class='bitor op'>|</span> <span class='e identifier id'>e</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span> <span class='rbrace token'>}</span>
|
1126
|
+
<span class='ms identifier id'>ms</span><span class='dot token'>.</span><span class='sort identifier id'>sort</span>
|
1127
|
+
<span class='end end kw'>end</span>
|
1128
|
+
</pre>
|
1129
|
+
</td>
|
1130
|
+
</tr>
|
1131
|
+
</table>
|
1132
|
+
</div>
|
1133
|
+
</div>
|
1134
|
+
</div>
|
1135
|
+
</div>
|
1136
|
+
|
1137
|
+
<div class="method">
|
1138
|
+
<div class="method_header">
|
1139
|
+
<h3>object</h3>
|
1140
|
+
</div><div id="object-instance_method" class="section method">
|
1141
|
+
<div class="details_title">
|
1142
|
+
<div class='section methodsignature'>
|
1143
|
+
<tt class='def'>
|
1144
|
+
<span class='visibility'>public</span>
|
1145
|
+
<span class='return_types'></span>
|
1146
|
+
<span class='name'>object</span><span class='args'></span>
|
1147
|
+
<span class='block'></span>
|
1148
|
+
</tt>
|
1149
|
+
</div>
|
1150
|
+
|
1151
|
+
</div><div class="section source">
|
1152
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1153
|
+
<div class="source_code">
|
1154
|
+
<table>
|
1155
|
+
<tr>
|
1156
|
+
<td>
|
1157
|
+
<pre class="lines">
|
1158
|
+
|
1159
|
+
|
1160
|
+
101
|
1161
|
+
102
|
1162
|
+
103</pre>
|
1163
|
+
</td>
|
1164
|
+
<td>
|
1165
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 101</span>
|
1166
|
+
|
1167
|
+
<span class='def def kw'>def</span> <span class='object identifier id'>object</span>
|
1168
|
+
<span class='@object ivar id'>@object</span> <span class='orop op'>||</span> <span class='locate identifier id'>locate</span>
|
1169
|
+
<span class='end end kw'>end</span>
|
1170
|
+
</pre>
|
1171
|
+
</td>
|
1172
|
+
</tr>
|
1173
|
+
</table>
|
1174
|
+
</div>
|
1175
|
+
</div>
|
1176
|
+
</div>
|
1177
|
+
</div>
|
1178
|
+
|
1179
|
+
<div class="method">
|
1180
|
+
<div class="method_header">
|
1181
|
+
<h3>parent</h3>
|
1182
|
+
</div><div id="parent-instance_method" class="section method">
|
1183
|
+
<div class="details_title">
|
1184
|
+
<div class='section methodsignature'>
|
1185
|
+
<tt class='def'>
|
1186
|
+
<span class='visibility'>public</span>
|
1187
|
+
<span class='return_types'><tt><a title="Celerity::Element" href="">Celerity::Element</a></tt></span>
|
1188
|
+
<span class='name'>parent</span><span class='args'></span>
|
1189
|
+
<span class='block'></span>
|
1190
|
+
</tt>
|
1191
|
+
</div>
|
1192
|
+
|
1193
|
+
</div><div class="section docstring">
|
1194
|
+
<p>
|
1195
|
+
Get the parent element
|
1196
|
+
</p>
|
1197
|
+
|
1198
|
+
</div><div class="section tags">
|
1199
|
+
<h2>Meta Tags</h2>
|
1200
|
+
<div class="param">
|
1201
|
+
<h3>Parameters:</h3>
|
1202
|
+
<dl>
|
1203
|
+
|
1204
|
+
</dl>
|
1205
|
+
</div><div class="return">
|
1206
|
+
<h3>Returns:</h3>
|
1207
|
+
<dl>
|
1208
|
+
|
1209
|
+
<dt>
|
1210
|
+
|
1211
|
+
<span class='type'>[<tt><a title="Celerity::Element" href="">Celerity::Element</a></tt>, <tt>nil</tt>]</span>
|
1212
|
+
|
1213
|
+
|
1214
|
+
<span class='name'></span>
|
1215
|
+
|
1216
|
+
|
1217
|
+
</dt>
|
1218
|
+
<dd>
|
1219
|
+
<span class='desc'><p>
|
1220
|
+
subclass of Celerity::Element, or nil if no parent was found
|
1221
|
+
</p>
|
1222
|
+
</span>
|
1223
|
+
</dd>
|
1224
|
+
|
1225
|
+
</dl>
|
1226
|
+
</div>
|
1227
|
+
|
1228
|
+
</div><div class="section source">
|
1229
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1230
|
+
<div class="source_code">
|
1231
|
+
<table>
|
1232
|
+
<tr>
|
1233
|
+
<td>
|
1234
|
+
<pre class="lines">
|
1235
|
+
|
1236
|
+
|
1237
|
+
62
|
1238
|
+
63
|
1239
|
+
64
|
1240
|
+
65
|
1241
|
+
66
|
1242
|
+
67
|
1243
|
+
68
|
1244
|
+
69
|
1245
|
+
70
|
1246
|
+
71
|
1247
|
+
72</pre>
|
1248
|
+
</td>
|
1249
|
+
<td>
|
1250
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 62</span>
|
1251
|
+
|
1252
|
+
<span class='def def kw'>def</span> <span class='parent identifier id'>parent</span>
|
1253
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1254
|
+
|
1255
|
+
<span class='obj identifier id'>obj</span> <span class='assign token'>=</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='parentNode identifier id'>parentNode</span>
|
1256
|
+
<span class='until until kw'>until</span> <span class='element_class identifier id'>element_class</span> <span class='assign token'>=</span> <span class='Celerity constant id'>Celerity</span><span class='colon2 op'>::</span><span class='Util constant id'>Util</span><span class='dot token'>.</span><span class='htmlunit2celerity identifier id'>htmlunit2celerity</span><span class='lparen token'>(</span><span class='obj identifier id'>obj</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='rparen token'>)</span>
|
1257
|
+
<span class='return return kw'>return</span> <span class='nil nil kw'>nil</span> <span class='if if_mod kw'>if</span> <span class='obj identifier id'>obj</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
1258
|
+
<span class='obj identifier id'>obj</span> <span class='assign token'>=</span> <span class='obj identifier id'>obj</span><span class='dot token'>.</span><span class='parentNode identifier id'>parentNode</span>
|
1259
|
+
<span class='end end kw'>end</span>
|
1260
|
+
|
1261
|
+
<span class='element_class identifier id'>element_class</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='@container ivar id'>@container</span><span class='comma token'>,</span> <span class='symbol val'>:object</span><span class='comma token'>,</span> <span class='obj identifier id'>obj</span><span class='rparen token'>)</span>
|
1262
|
+
<span class='end end kw'>end</span>
|
1263
|
+
</pre>
|
1264
|
+
</td>
|
1265
|
+
</tr>
|
1266
|
+
</table>
|
1267
|
+
</div>
|
1268
|
+
</div>
|
1269
|
+
</div>
|
1270
|
+
</div>
|
1271
|
+
|
1272
|
+
<div class="method">
|
1273
|
+
<div class="method_header">
|
1274
|
+
<h3>respond_to?</h3>
|
1275
|
+
</div><div id="respond_to%3F-instance_method" class="section method">
|
1276
|
+
<div class="details_title">
|
1277
|
+
<div class='section methodsignature'>
|
1278
|
+
<tt class='def'>
|
1279
|
+
<span class='visibility'>public</span>
|
1280
|
+
<span class='return_types'></span>
|
1281
|
+
<span class='name'>respond_to?</span><span class='args'>(meth, include_private = false)</span>
|
1282
|
+
<span class='block'></span>
|
1283
|
+
</tt>
|
1284
|
+
</div>
|
1285
|
+
|
1286
|
+
</div><div class="section source">
|
1287
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1288
|
+
<div class="source_code">
|
1289
|
+
<table>
|
1290
|
+
<tr>
|
1291
|
+
<td>
|
1292
|
+
<pre class="lines">
|
1293
|
+
|
1294
|
+
|
1295
|
+
253
|
1296
|
+
254
|
1297
|
+
255
|
1298
|
+
256
|
1299
|
+
257</pre>
|
1300
|
+
</td>
|
1301
|
+
<td>
|
1302
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 253</span>
|
1303
|
+
|
1304
|
+
<span class='def def kw'>def</span> <span class='respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='include_private identifier id'>include_private</span> <span class='assign token'>=</span> <span class='false false kw'>false</span><span class='rparen token'>)</span>
|
1305
|
+
<span class='meth identifier id'>meth</span> <span class='assign token'>=</span> <span class='selector_to_attribute identifier id'>selector_to_attribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
|
1306
|
+
<span class='return return kw'>return</span> <span class='true true kw'>true</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='ATTRIBUTES constant id'>ATTRIBUTES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
|
1307
|
+
<span class='super super kw'>super</span>
|
1308
|
+
<span class='end end kw'>end</span>
|
1309
|
+
</pre>
|
1310
|
+
</td>
|
1311
|
+
</tr>
|
1312
|
+
</table>
|
1313
|
+
</div>
|
1314
|
+
</div>
|
1315
|
+
</div>
|
1316
|
+
</div>
|
1317
|
+
|
1318
|
+
<div class="method">
|
1319
|
+
<div class="method_header">
|
1320
|
+
<h3>text</h3>
|
1321
|
+
</div><div id="text-instance_method" class="section method">
|
1322
|
+
<div class="details_title">
|
1323
|
+
<div class='section methodsignature'>
|
1324
|
+
<tt class='def'>
|
1325
|
+
<span class='visibility'>public</span>
|
1326
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
1327
|
+
<span class='name'>text</span><span class='args'></span>
|
1328
|
+
<span class='block'></span>
|
1329
|
+
</tt>
|
1330
|
+
</div>
|
1331
|
+
<p class="aliases">
|
1332
|
+
<span class="aka">Also known as:</span>
|
1333
|
+
|
1334
|
+
<tt id="innerText-instance_method">innerText</tt>
|
1335
|
+
|
1336
|
+
<tt id="inner_text-instance_method">inner_text</tt>
|
1337
|
+
|
1338
|
+
</p>
|
1339
|
+
</div><div class="section docstring">
|
1340
|
+
<p>
|
1341
|
+
Return a text representation of the element as it would appear in a
|
1342
|
+
browser.
|
1343
|
+
</p>
|
1344
|
+
|
1345
|
+
</div><div class="section tags">
|
1346
|
+
<h2>Meta Tags</h2>
|
1347
|
+
<div class="param">
|
1348
|
+
<h3>Parameters:</h3>
|
1349
|
+
<dl>
|
1350
|
+
|
1351
|
+
</dl>
|
1352
|
+
</div><div class="return">
|
1353
|
+
<h3>Returns:</h3>
|
1354
|
+
<dl>
|
1355
|
+
|
1356
|
+
<dt>
|
1357
|
+
|
1358
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
1359
|
+
|
1360
|
+
|
1361
|
+
<span class='name'></span>
|
1362
|
+
|
1363
|
+
|
1364
|
+
</dt>
|
1365
|
+
<dd>
|
1366
|
+
<span class='desc'></span>
|
1367
|
+
</dd>
|
1368
|
+
|
1369
|
+
</dl>
|
1370
|
+
</div>
|
1371
|
+
<div class="see">
|
1372
|
+
<h3>See Also:</h3>
|
1373
|
+
<dl>
|
1374
|
+
<dt></dt>
|
1375
|
+
<dd>
|
1376
|
+
<span class='desc'>
|
1377
|
+
<tt><a title="inner_text" href="#inner_text-instance_method">inner_text</a></tt>
|
1378
|
+
</span>
|
1379
|
+
</dd>
|
1380
|
+
</dl>
|
1381
|
+
</div>
|
1382
|
+
|
1383
|
+
</div><div class="section source">
|
1384
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1385
|
+
<div class="source_code">
|
1386
|
+
<table>
|
1387
|
+
<tr>
|
1388
|
+
<td>
|
1389
|
+
<pre class="lines">
|
1390
|
+
|
1391
|
+
|
1392
|
+
171
|
1393
|
+
172
|
1394
|
+
173
|
1395
|
+
174</pre>
|
1396
|
+
</td>
|
1397
|
+
<td>
|
1398
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 171</span>
|
1399
|
+
|
1400
|
+
<span class='def def kw'>def</span> <span class='text identifier id'>text</span>
|
1401
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1402
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='asText identifier id'>asText</span><span class='dot token'>.</span><span class='strip identifier id'>strip</span> <span class='comment val'># this must behave like ElementLocator</span>
|
1403
|
+
<span class='end end kw'>end</span>
|
1404
|
+
</pre>
|
1405
|
+
</td>
|
1406
|
+
</tr>
|
1407
|
+
</table>
|
1408
|
+
</div>
|
1409
|
+
</div>
|
1410
|
+
</div>
|
1411
|
+
</div>
|
1412
|
+
|
1413
|
+
<div class="method">
|
1414
|
+
<div class="method_header">
|
1415
|
+
<h3>to_s</h3>
|
1416
|
+
</div><div id="to_s-instance_method" class="section method">
|
1417
|
+
<div class="details_title">
|
1418
|
+
<div class='section methodsignature'>
|
1419
|
+
<tt class='def'>
|
1420
|
+
<span class='visibility'>public</span>
|
1421
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
1422
|
+
<span class='name'>to_s</span><span class='args'></span>
|
1423
|
+
<span class='block'></span>
|
1424
|
+
</tt>
|
1425
|
+
</div>
|
1426
|
+
|
1427
|
+
</div><div class="section tags">
|
1428
|
+
<h2>Meta Tags</h2>
|
1429
|
+
<div class="param">
|
1430
|
+
<h3>Parameters:</h3>
|
1431
|
+
<dl>
|
1432
|
+
|
1433
|
+
</dl>
|
1434
|
+
</div><div class="return">
|
1435
|
+
<h3>Returns:</h3>
|
1436
|
+
<dl>
|
1437
|
+
|
1438
|
+
<dt>
|
1439
|
+
|
1440
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
1441
|
+
|
1442
|
+
|
1443
|
+
<span class='name'></span>
|
1444
|
+
|
1445
|
+
|
1446
|
+
</dt>
|
1447
|
+
<dd>
|
1448
|
+
<span class='desc'><p>
|
1449
|
+
A string representation of the element.
|
1450
|
+
</p>
|
1451
|
+
</span>
|
1452
|
+
</dd>
|
1453
|
+
|
1454
|
+
</dl>
|
1455
|
+
</div>
|
1456
|
+
|
1457
|
+
</div><div class="section source">
|
1458
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1459
|
+
<div class="source_code">
|
1460
|
+
<table>
|
1461
|
+
<tr>
|
1462
|
+
<td>
|
1463
|
+
<pre class="lines">
|
1464
|
+
|
1465
|
+
|
1466
|
+
109
|
1467
|
+
110
|
1468
|
+
111
|
1469
|
+
112</pre>
|
1470
|
+
</td>
|
1471
|
+
<td>
|
1472
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 109</span>
|
1473
|
+
|
1474
|
+
<span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
|
1475
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1476
|
+
<span class='create_string identifier id'>create_string</span><span class='lparen token'>(</span><span class='@object ivar id'>@object</span><span class='rparen token'>)</span>
|
1477
|
+
<span class='end end kw'>end</span>
|
1478
|
+
</pre>
|
1479
|
+
</td>
|
1480
|
+
</tr>
|
1481
|
+
</table>
|
1482
|
+
</div>
|
1483
|
+
</div>
|
1484
|
+
</div>
|
1485
|
+
</div>
|
1486
|
+
|
1487
|
+
<div class="method">
|
1488
|
+
<div class="method_header">
|
1489
|
+
<h3>to_xml</h3>
|
1490
|
+
</div><div id="to_xml-instance_method" class="section method">
|
1491
|
+
<div class="details_title">
|
1492
|
+
<div class='section methodsignature'>
|
1493
|
+
<tt class='def'>
|
1494
|
+
<span class='visibility'>public</span>
|
1495
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
1496
|
+
<span class='name'>to_xml</span><span class='args'></span>
|
1497
|
+
<span class='block'></span>
|
1498
|
+
</tt>
|
1499
|
+
</div>
|
1500
|
+
<p class="aliases">
|
1501
|
+
<span class="aka">Also known as:</span>
|
1502
|
+
|
1503
|
+
<tt id="html-instance_method">html</tt>
|
1504
|
+
|
1505
|
+
<tt id="asXml-instance_method">asXml</tt>
|
1506
|
+
|
1507
|
+
<tt id="as_xml-instance_method">as_xml</tt>
|
1508
|
+
|
1509
|
+
</p>
|
1510
|
+
</div><div class="section tags">
|
1511
|
+
<h2>Meta Tags</h2>
|
1512
|
+
<div class="param">
|
1513
|
+
<h3>Parameters:</h3>
|
1514
|
+
<dl>
|
1515
|
+
|
1516
|
+
</dl>
|
1517
|
+
</div><div class="return">
|
1518
|
+
<h3>Returns:</h3>
|
1519
|
+
<dl>
|
1520
|
+
|
1521
|
+
<dt>
|
1522
|
+
|
1523
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
1524
|
+
|
1525
|
+
|
1526
|
+
<span class='name'></span>
|
1527
|
+
|
1528
|
+
|
1529
|
+
</dt>
|
1530
|
+
<dd>
|
1531
|
+
<span class='desc'><p>
|
1532
|
+
The normative XML representation of the element (including children).
|
1533
|
+
</p>
|
1534
|
+
</span>
|
1535
|
+
</dd>
|
1536
|
+
|
1537
|
+
</dl>
|
1538
|
+
</div>
|
1539
|
+
|
1540
|
+
</div><div class="section source">
|
1541
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1542
|
+
<div class="source_code">
|
1543
|
+
<table>
|
1544
|
+
<tr>
|
1545
|
+
<td>
|
1546
|
+
<pre class="lines">
|
1547
|
+
|
1548
|
+
|
1549
|
+
194
|
1550
|
+
195
|
1551
|
+
196
|
1552
|
+
197</pre>
|
1553
|
+
</td>
|
1554
|
+
<td>
|
1555
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 194</span>
|
1556
|
+
|
1557
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span>
|
1558
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1559
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='asXml identifier id'>asXml</span>
|
1560
|
+
<span class='end end kw'>end</span>
|
1561
|
+
</pre>
|
1562
|
+
</td>
|
1563
|
+
</tr>
|
1564
|
+
</table>
|
1565
|
+
</div>
|
1566
|
+
</div>
|
1567
|
+
</div>
|
1568
|
+
</div>
|
1569
|
+
|
1570
|
+
<div class="method">
|
1571
|
+
<div class="method_header">
|
1572
|
+
<h3>visible?</h3>
|
1573
|
+
</div><div id="visible%3F-instance_method" class="section method">
|
1574
|
+
<div class="details_title">
|
1575
|
+
<div class='section methodsignature'>
|
1576
|
+
<tt class='def'>
|
1577
|
+
<span class='visibility'>public</span>
|
1578
|
+
<span class='return_types'><tt>boolean</tt></span>
|
1579
|
+
<span class='name'>visible?</span><span class='args'></span>
|
1580
|
+
<span class='block'></span>
|
1581
|
+
</tt>
|
1582
|
+
</div>
|
1583
|
+
|
1584
|
+
</div><div class="section docstring">
|
1585
|
+
<p>
|
1586
|
+
Check if the element is visible to the user or not. Note that this only
|
1587
|
+
takes the _style attribute_ of the element (and its parents) into account -
|
1588
|
+
styles from applied CSS is not considered.
|
1589
|
+
</p>
|
1590
|
+
|
1591
|
+
</div><div class="section tags">
|
1592
|
+
<h2>Meta Tags</h2>
|
1593
|
+
<div class="param">
|
1594
|
+
<h3>Parameters:</h3>
|
1595
|
+
<dl>
|
1596
|
+
|
1597
|
+
</dl>
|
1598
|
+
</div><div class="return">
|
1599
|
+
<h3>Returns:</h3>
|
1600
|
+
<dl>
|
1601
|
+
|
1602
|
+
<dt>
|
1603
|
+
|
1604
|
+
<span class='type'>[<tt>boolean</tt>]</span>
|
1605
|
+
|
1606
|
+
|
1607
|
+
<span class='name'></span>
|
1608
|
+
|
1609
|
+
|
1610
|
+
</dt>
|
1611
|
+
<dd>
|
1612
|
+
<span class='desc'></span>
|
1613
|
+
</dd>
|
1614
|
+
|
1615
|
+
</dl>
|
1616
|
+
</div>
|
1617
|
+
|
1618
|
+
</div><div class="section source">
|
1619
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1620
|
+
<div class="source_code">
|
1621
|
+
<table>
|
1622
|
+
<tr>
|
1623
|
+
<td>
|
1624
|
+
<pre class="lines">
|
1625
|
+
|
1626
|
+
|
1627
|
+
132
|
1628
|
+
133
|
1629
|
+
134
|
1630
|
+
135</pre>
|
1631
|
+
</td>
|
1632
|
+
<td>
|
1633
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 132</span>
|
1634
|
+
|
1635
|
+
<span class='def def kw'>def</span> <span class='visible? fid id'>visible?</span>
|
1636
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1637
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='isDisplayed identifier id'>isDisplayed</span>
|
1638
|
+
<span class='end end kw'>end</span>
|
1639
|
+
</pre>
|
1640
|
+
</td>
|
1641
|
+
</tr>
|
1642
|
+
</table>
|
1643
|
+
</div>
|
1644
|
+
</div>
|
1645
|
+
</div>
|
1646
|
+
</div>
|
1647
|
+
|
1648
|
+
<div class="method">
|
1649
|
+
<div class="method_header">
|
1650
|
+
<h3>xpath</h3>
|
1651
|
+
</div><div id="xpath-instance_method" class="section method">
|
1652
|
+
<div class="details_title">
|
1653
|
+
<div class='section methodsignature'>
|
1654
|
+
<tt class='def'>
|
1655
|
+
<span class='visibility'>public</span>
|
1656
|
+
<span class='return_types'></span>
|
1657
|
+
<span class='name'>xpath</span><span class='args'></span>
|
1658
|
+
<span class='block'></span>
|
1659
|
+
</tt>
|
1660
|
+
</div>
|
1661
|
+
|
1662
|
+
</div><div class="section docstring">
|
1663
|
+
<p>
|
1664
|
+
return the canonical xpath for this element (Celerity-specific)
|
1665
|
+
</p>
|
1666
|
+
|
1667
|
+
</div><div class="section source">
|
1668
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1669
|
+
<div class="source_code">
|
1670
|
+
<table>
|
1671
|
+
<tr>
|
1672
|
+
<td>
|
1673
|
+
<pre class="lines">
|
1674
|
+
|
1675
|
+
|
1676
|
+
221
|
1677
|
+
222
|
1678
|
+
223
|
1679
|
+
224</pre>
|
1680
|
+
</td>
|
1681
|
+
<td>
|
1682
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 221</span>
|
1683
|
+
|
1684
|
+
<span class='def def kw'>def</span> <span class='xpath identifier id'>xpath</span>
|
1685
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1686
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getCanonicalXPath identifier id'>getCanonicalXPath</span>
|
1687
|
+
<span class='end end kw'>end</span>
|
1688
|
+
</pre>
|
1689
|
+
</td>
|
1690
|
+
</tr>
|
1691
|
+
</table>
|
1692
|
+
</div>
|
1693
|
+
</div>
|
1694
|
+
</div>
|
1695
|
+
</div>
|
1696
|
+
|
1697
|
+
</div>
|
1698
|
+
</div>
|
1699
|
+
|
1700
|
+
</div>
|
1701
|
+
</div>
|
1702
|
+
</body>
|
1703
|
+
</html>
|