watirloo 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Rakefile +43 -18
- data/VERSION +1 -1
- data/_irbrc +37 -0
- data/lib/watirloo.rb +1 -2
- data/lib/watirloo/browsers.rb +9 -5
- data/lib/watirloo/extension/firewatir_ducktape.rb +66 -75
- data/lib/watirloo/extension/watir_ducktape.rb +0 -1
- data/lib/watirloo/locker.rb +15 -0
- data/lib/watirloo/screenshot.rb +50 -0
- data/spec/checkbox_group_spec.rb +9 -9
- data/spec/checkbox_groups_spec.rb +15 -16
- data/spec/ff.opts +14 -0
- data/spec/results/ff-failed.txt +0 -0
- data/spec/results/ff.html +409 -0
- data/spec/results/ff.txt +107 -0
- data/spec/{spec_results_failed.txt → results/ie-failed.txt} +0 -0
- data/spec/{spec_results.html → results/ie.html} +209 -229
- data/spec/{spec_results.txt → results/ie.txt} +64 -73
- data/spec/spec_helper.rb +4 -0
- data/watirloo.gemspec +11 -12
- metadata +11 -12
- data/spec/firewatir/attach_instance_test.rb +0 -38
- data/spec/firewatir/spec_results.html +0 -263
- data/spec/firewatir/spec_results.txt +0 -23
- data/spec/firewatir/spec_results_failed.txt +0 -3
- data/spec/label_spec.rb +0 -65
@@ -1,28 +1,31 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/spec_helper'
|
2
2
|
|
3
|
-
describe 'checkbox_groups
|
3
|
+
describe 'browser checkbox_groups method' do
|
4
4
|
|
5
5
|
before :each do
|
6
6
|
@browser = Watirloo::browser
|
7
7
|
@browser.goto testfile('checkbox_group1.html')
|
8
8
|
end
|
9
9
|
|
10
|
-
it 'browser responds to
|
10
|
+
it 'browser responds to checkbox_groups method' do
|
11
11
|
@browser.should respond_to(:checkbox_groups)
|
12
12
|
end
|
13
13
|
|
14
|
-
it 'returns
|
15
|
-
@browser.checkbox_groups.should
|
14
|
+
it 'returns CheckboxGroups object' do
|
15
|
+
@browser.checkbox_groups.class.to_s.should match(/CheckboxGroups/)
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'lenght returns integer count of groups' do
|
19
19
|
@browser.checkbox_groups.length.should == 4
|
20
20
|
end
|
21
21
|
|
22
|
-
it 'each iterator returns CheckboxGroup' do
|
22
|
+
it 'each iterator returns CheckboxGroup object 4 times' do
|
23
|
+
obj = []
|
23
24
|
@browser.checkbox_groups.each do |cbg|
|
24
|
-
|
25
|
+
obj << cbg
|
25
26
|
end
|
27
|
+
obj.length.should == 4
|
28
|
+
obj.each {|x| x.class.to_s.should match(/CheckboxGroup/)}
|
26
29
|
end
|
27
30
|
|
28
31
|
it 'each accesses the group and returns name' do
|
@@ -32,21 +35,17 @@ describe 'checkbox_groups access for browser' do
|
|
32
35
|
end
|
33
36
|
names.should == ['pets', 'singleIndicator', 'petsa', 'singleIndicatora']
|
34
37
|
end
|
35
|
-
|
38
|
+
|
36
39
|
it 'bracket access[] returns 1-based indexed group' do
|
40
|
+
@browser.checkbox_groups[1].class.to_s.should match(/CheckboxGroup/)
|
37
41
|
@browser.checkbox_groups[1].values.should == %w[cat dog zook zebra wumpa]
|
38
42
|
@browser.checkbox_groups[3].name.should == 'petsa'
|
39
43
|
end
|
40
|
-
|
41
|
-
it '
|
42
|
-
@browser.checkbox_groups
|
43
|
-
@browser.checkbox_groups[6].name.should == nil #suggestions?
|
44
|
-
end
|
45
|
-
|
46
|
-
it 'return checkbox groups contained by the form element' do
|
47
|
-
@browser.forms[2].checkbox_groups.length.should == 2
|
44
|
+
|
45
|
+
it 'page should have 2 checkbox groups in form 2' do
|
46
|
+
@browser.form(:index, 2).checkbox_groups.length.should == 2
|
48
47
|
names =[]
|
49
|
-
@browser.
|
48
|
+
@browser.form(:index, 2).checkbox_groups.each do |cbg|
|
50
49
|
names << cbg.name
|
51
50
|
end
|
52
51
|
names.should == ['petsa', 'singleIndicatora']
|
data/spec/ff.opts
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
spec/checkboxes_value_spec.rb
|
2
|
+
spec/checkbox_group_spec.rb
|
3
|
+
spec/face_mixing_spec.rb
|
4
|
+
spec/person_def_wrappers_spec.rb
|
5
|
+
spec/radio_group_spec.rb
|
6
|
+
spec/select_lists_spec.rb
|
7
|
+
spec/select_list_options_spec.rb
|
8
|
+
spec/text_fields_spec.rb
|
9
|
+
--color
|
10
|
+
--require spec/spec_helper_ff.rb
|
11
|
+
--format specdoc
|
12
|
+
--format specdoc:spec/results/ff.txt
|
13
|
+
--format failing_examples:spec/results/ff-failed.txt
|
14
|
+
--format html:spec/results/ff.html
|
File without changes
|
@@ -0,0 +1,409 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<title>RSpec results</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
|
+
<meta http-equiv="Expires" content="-1" />
|
10
|
+
<meta http-equiv="Pragma" content="no-cache" />
|
11
|
+
<style type="text/css">
|
12
|
+
body {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
background: #fff;
|
16
|
+
font-size: 80%;
|
17
|
+
}
|
18
|
+
</style>
|
19
|
+
<script type="text/javascript">
|
20
|
+
// <![CDATA[
|
21
|
+
function moveProgressBar(percentDone) {
|
22
|
+
document.getElementById("rspec-header").style.width = percentDone +"%";
|
23
|
+
}
|
24
|
+
function makeRed(element_id) {
|
25
|
+
document.getElementById(element_id).style.background = '#C40D0D';
|
26
|
+
document.getElementById(element_id).style.color = '#FFFFFF';
|
27
|
+
}
|
28
|
+
|
29
|
+
function makeYellow(element_id) {
|
30
|
+
if (element_id == "rspec-header" && document.getElementById(element_id).style.background != '#C40D0D')
|
31
|
+
{
|
32
|
+
document.getElementById(element_id).style.background = '#FAF834';
|
33
|
+
document.getElementById(element_id).style.color = '#000000';
|
34
|
+
}
|
35
|
+
else
|
36
|
+
{
|
37
|
+
document.getElementById(element_id).style.background = '#FAF834';
|
38
|
+
document.getElementById(element_id).style.color = '#000000';
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// ]]>
|
43
|
+
</script>
|
44
|
+
<style type="text/css">
|
45
|
+
#rspec-header {
|
46
|
+
background: #65C400; color: #fff; height: 4em;
|
47
|
+
}
|
48
|
+
|
49
|
+
.rspec-report h1 {
|
50
|
+
margin: 0px 10px 0px 10px;
|
51
|
+
padding: 10px;
|
52
|
+
font-family: "Lucida Grande", Helvetica, sans-serif;
|
53
|
+
font-size: 1.8em;
|
54
|
+
position: absolute;
|
55
|
+
}
|
56
|
+
|
57
|
+
#summary {
|
58
|
+
margin: 0; padding: 5px 10px;
|
59
|
+
font-family: "Lucida Grande", Helvetica, sans-serif;
|
60
|
+
text-align: right;
|
61
|
+
top: 0px;
|
62
|
+
right: 0px;
|
63
|
+
float:right;
|
64
|
+
}
|
65
|
+
|
66
|
+
#summary p {
|
67
|
+
margin: 0 0 0 2px;
|
68
|
+
}
|
69
|
+
|
70
|
+
#summary #totals {
|
71
|
+
font-size: 1.2em;
|
72
|
+
}
|
73
|
+
|
74
|
+
.example_group {
|
75
|
+
margin: 0 10px 5px;
|
76
|
+
background: #fff;
|
77
|
+
}
|
78
|
+
|
79
|
+
dl {
|
80
|
+
margin: 0; padding: 0 0 5px;
|
81
|
+
font: normal 11px "Lucida Grande", Helvetica, sans-serif;
|
82
|
+
}
|
83
|
+
|
84
|
+
dt {
|
85
|
+
padding: 3px;
|
86
|
+
background: #65C400;
|
87
|
+
color: #fff;
|
88
|
+
font-weight: bold;
|
89
|
+
}
|
90
|
+
|
91
|
+
dd {
|
92
|
+
margin: 5px 0 5px 5px;
|
93
|
+
padding: 3px 3px 3px 18px;
|
94
|
+
}
|
95
|
+
|
96
|
+
dd.spec.passed {
|
97
|
+
border-left: 5px solid #65C400;
|
98
|
+
border-bottom: 1px solid #65C400;
|
99
|
+
background: #DBFFB4; color: #3D7700;
|
100
|
+
}
|
101
|
+
|
102
|
+
dd.spec.failed {
|
103
|
+
border-left: 5px solid #C20000;
|
104
|
+
border-bottom: 1px solid #C20000;
|
105
|
+
color: #C20000; background: #FFFBD3;
|
106
|
+
}
|
107
|
+
|
108
|
+
dd.spec.not_implemented {
|
109
|
+
border-left: 5px solid #FAF834;
|
110
|
+
border-bottom: 1px solid #FAF834;
|
111
|
+
background: #FCFB98; color: #131313;
|
112
|
+
}
|
113
|
+
|
114
|
+
dd.spec.pending_fixed {
|
115
|
+
border-left: 5px solid #0000C2;
|
116
|
+
border-bottom: 1px solid #0000C2;
|
117
|
+
color: #0000C2; background: #D3FBFF;
|
118
|
+
}
|
119
|
+
|
120
|
+
.backtrace {
|
121
|
+
color: #000;
|
122
|
+
font-size: 12px;
|
123
|
+
}
|
124
|
+
|
125
|
+
a {
|
126
|
+
color: #BE5C00;
|
127
|
+
}
|
128
|
+
|
129
|
+
/* Ruby code, style similar to vibrant ink */
|
130
|
+
.ruby {
|
131
|
+
font-size: 12px;
|
132
|
+
font-family: monospace;
|
133
|
+
color: white;
|
134
|
+
background-color: black;
|
135
|
+
padding: 0.1em 0 0.2em 0;
|
136
|
+
}
|
137
|
+
|
138
|
+
.ruby .keyword { color: #FF6600; }
|
139
|
+
.ruby .constant { color: #339999; }
|
140
|
+
.ruby .attribute { color: white; }
|
141
|
+
.ruby .global { color: white; }
|
142
|
+
.ruby .module { color: white; }
|
143
|
+
.ruby .class { color: white; }
|
144
|
+
.ruby .string { color: #66FF00; }
|
145
|
+
.ruby .ident { color: white; }
|
146
|
+
.ruby .method { color: #FFCC00; }
|
147
|
+
.ruby .number { color: white; }
|
148
|
+
.ruby .char { color: white; }
|
149
|
+
.ruby .comment { color: #9933CC; }
|
150
|
+
.ruby .symbol { color: white; }
|
151
|
+
.ruby .regex { color: #44B4CC; }
|
152
|
+
.ruby .punct { color: white; }
|
153
|
+
.ruby .escape { color: white; }
|
154
|
+
.ruby .interp { color: white; }
|
155
|
+
.ruby .expr { color: white; }
|
156
|
+
|
157
|
+
.ruby .offending { background-color: gray; }
|
158
|
+
.ruby .linenum {
|
159
|
+
width: 75px;
|
160
|
+
padding: 0.1em 1em 0.2em 0;
|
161
|
+
color: #000000;
|
162
|
+
background-color: #FFFBD3;
|
163
|
+
}
|
164
|
+
|
165
|
+
</style>
|
166
|
+
</head>
|
167
|
+
<body>
|
168
|
+
<div class="rspec-report">
|
169
|
+
|
170
|
+
<div id="rspec-header">
|
171
|
+
<div id="label">
|
172
|
+
<h1>RSpec Code Examples</h1>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="summary">
|
176
|
+
<p id="totals"> </p>
|
177
|
+
<p id="duration"> </p>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div class="results">
|
182
|
+
<div class="example_group">
|
183
|
+
<dl>
|
184
|
+
<dt id="example_group_1">Page class with face definitions</dt>
|
185
|
+
<script type="text/javascript">moveProgressBar('1.4');</script>
|
186
|
+
<dd class="spec passed"><span class="passed_spec_name">has face method as singleton</span></dd>
|
187
|
+
<script type="text/javascript">moveProgressBar('2.8');</script>
|
188
|
+
<dd class="spec passed"><span class="passed_spec_name">face class method defines method</span></dd>
|
189
|
+
<script type="text/javascript">moveProgressBar('4.2');</script>
|
190
|
+
<dd class="spec passed"><span class="passed_spec_name">face accepts args used by method body</span></dd>
|
191
|
+
<script type="text/javascript">moveProgressBar('5.6');</script>
|
192
|
+
<dd class="spec passed"><span class="passed_spec_name">when optional args not supplied provide default arg in method</span></dd>
|
193
|
+
</dl>
|
194
|
+
</div>
|
195
|
+
<div class="example_group">
|
196
|
+
<dl>
|
197
|
+
<dt id="example_group_2">Page faces included in rspec</dt>
|
198
|
+
<script type="text/javascript">moveProgressBar('7.0');</script>
|
199
|
+
<dd class="spec passed"><span class="passed_spec_name">face defines a watir element access</span></dd>
|
200
|
+
<script type="text/javascript">moveProgressBar('8.4');</script>
|
201
|
+
<dd class="spec passed"><span class="passed_spec_name">faces with arguments</span></dd>
|
202
|
+
</dl>
|
203
|
+
</div>
|
204
|
+
<div class="example_group">
|
205
|
+
<dl>
|
206
|
+
<dt id="example_group_3">Page doc provides access to frame in frameset browser</dt>
|
207
|
+
<script type="text/javascript">moveProgressBar('9.8');</script>
|
208
|
+
<dd class="spec passed"><span class="passed_spec_name">face defines a watir element access</span></dd>
|
209
|
+
<script type="text/javascript">moveProgressBar('11.2');</script>
|
210
|
+
<dd class="spec passed"><span class="passed_spec_name">faces with arguments</span></dd>
|
211
|
+
</dl>
|
212
|
+
</div>
|
213
|
+
<div class="example_group">
|
214
|
+
<dl>
|
215
|
+
<dt id="example_group_4">setting and getting values for individual checkboxes with value attributes in face definitions</dt>
|
216
|
+
<script type="text/javascript">moveProgressBar('12.6');</script>
|
217
|
+
<dd class="spec passed"><span class="passed_spec_name">semantic name accesses individual CheckBox</span></dd>
|
218
|
+
<script type="text/javascript">moveProgressBar('14.0');</script>
|
219
|
+
<dd class="spec passed"><span class="passed_spec_name">set individual checkbox does not set other checkboxes sharing the same name</span></dd>
|
220
|
+
</dl>
|
221
|
+
</div>
|
222
|
+
<div class="example_group">
|
223
|
+
<dl>
|
224
|
+
<dt id="example_group_5">browser checkbox_group accesses a group of checkboxes sharing the same name on a page</dt>
|
225
|
+
<script type="text/javascript">moveProgressBar('15.4');</script>
|
226
|
+
<dd class="spec passed"><span class="passed_spec_name">browser responds to checkbox_group</span></dd>
|
227
|
+
<script type="text/javascript">moveProgressBar('16.9');</script>
|
228
|
+
<dd class="spec passed"><span class="passed_spec_name">access by name as default returns CheckboxGroup</span></dd>
|
229
|
+
<script type="text/javascript">moveProgressBar('18.3');</script>
|
230
|
+
<dd class="spec passed"><span class="passed_spec_name">size retuns checkboxes as items count in a group</span></dd>
|
231
|
+
<script type="text/javascript">moveProgressBar('19.7');</script>
|
232
|
+
<dd class="spec passed"><span class="passed_spec_name">values returns array of value attributes for each checkbox in a group</span></dd>
|
233
|
+
</dl>
|
234
|
+
</div>
|
235
|
+
<div class="example_group">
|
236
|
+
<dl>
|
237
|
+
<dt id="example_group_6">checkbox_group values when no checkbox is checked in a group</dt>
|
238
|
+
<script type="text/javascript">moveProgressBar('21.1');</script>
|
239
|
+
<dd class="spec passed"><span class="passed_spec_name">selected should return nil</span></dd>
|
240
|
+
<script type="text/javascript">moveProgressBar('22.5');</script>
|
241
|
+
<dd class="spec passed"><span class="passed_spec_name">selected_value should return nil</span></dd>
|
242
|
+
<script type="text/javascript">moveProgressBar('23.9');</script>
|
243
|
+
<dd class="spec passed"><span class="passed_spec_name">selected_values should return empty array</span></dd>
|
244
|
+
<script type="text/javascript">moveProgressBar('25.3');</script>
|
245
|
+
<dd class="spec passed"><span class="passed_spec_name">set? should return false when no checkbox is checked in a group</span></dd>
|
246
|
+
</dl>
|
247
|
+
</div>
|
248
|
+
<div class="example_group">
|
249
|
+
<dl>
|
250
|
+
<dt id="example_group_7">checkbox_group values when set string selecs one item only</dt>
|
251
|
+
<script type="text/javascript">moveProgressBar('26.7');</script>
|
252
|
+
<dd class="spec passed"><span class="passed_spec_name">selected should return the string used to select it</span></dd>
|
253
|
+
<script type="text/javascript">moveProgressBar('28.1');</script>
|
254
|
+
<dd class="spec passed"><span class="passed_spec_name">selected_value should return the string when one item is selected</span></dd>
|
255
|
+
<script type="text/javascript">moveProgressBar('29.5');</script>
|
256
|
+
<dd class="spec passed"><span class="passed_spec_name">selected values returns array with one element</span></dd>
|
257
|
+
<script type="text/javascript">moveProgressBar('30.9');</script>
|
258
|
+
<dd class="spec passed"><span class="passed_spec_name">set? should return truee when 1 checkbox is checked in a group</span></dd>
|
259
|
+
</dl>
|
260
|
+
</div>
|
261
|
+
<div class="example_group">
|
262
|
+
<dl>
|
263
|
+
<dt id="example_group_8">checkbox_group set array of strings selects multiple values in a group</dt>
|
264
|
+
<script type="text/javascript">moveProgressBar('32.3');</script>
|
265
|
+
<dd class="spec passed"><span class="passed_spec_name">selected returns array of strings when multiple values are selected</span></dd>
|
266
|
+
<script type="text/javascript">moveProgressBar('33.8');</script>
|
267
|
+
<dd class="spec passed"><span class="passed_spec_name">selected_value returns the same array of strings by position in a group</span></dd>
|
268
|
+
<script type="text/javascript">moveProgressBar('35.2');</script>
|
269
|
+
<dd class="spec passed"><span class="passed_spec_name">selected_values returns the same array of strings by position in a group</span></dd>
|
270
|
+
<script type="text/javascript">moveProgressBar('36.6');</script>
|
271
|
+
<dd class="spec passed"><span class="passed_spec_name">set? should return truee when more than 1 checkbox is checked in a group</span></dd>
|
272
|
+
</dl>
|
273
|
+
</div>
|
274
|
+
<div class="example_group">
|
275
|
+
<dl>
|
276
|
+
<dt id="example_group_9">checkbox_group set by numberical position</dt>
|
277
|
+
<script type="text/javascript">moveProgressBar('38.0');</script>
|
278
|
+
<dd class="spec passed"><span class="passed_spec_name">set Fixnum checks checkbox by position in a group. Position is 1 based.</span></dd>
|
279
|
+
<script type="text/javascript">moveProgressBar('39.4');</script>
|
280
|
+
<dd class="spec passed"><span class="passed_spec_name">set array of Fixnums checks each checkbox by position</span></dd>
|
281
|
+
</dl>
|
282
|
+
</div>
|
283
|
+
<div class="example_group">
|
284
|
+
<dl>
|
285
|
+
<dt id="example_group_10">Class client mixing interfaces from other modules</dt>
|
286
|
+
<script type="text/javascript">moveProgressBar('40.8');</script>
|
287
|
+
<dd class="spec passed"><span class="passed_spec_name">spray and scrape example</span></dd>
|
288
|
+
</dl>
|
289
|
+
</div>
|
290
|
+
<div class="example_group">
|
291
|
+
<dl>
|
292
|
+
<dt id="example_group_11">Person Page interfaces defined by def wrappers and class definitions</dt>
|
293
|
+
<script type="text/javascript">moveProgressBar('42.2');</script>
|
294
|
+
<dd class="spec passed"><span class="passed_spec_name">calling face when there is wrapper method</span></dd>
|
295
|
+
<script type="text/javascript">moveProgressBar('43.6');</script>
|
296
|
+
<dd class="spec passed"><span class="passed_spec_name">calling interface when there is definition and no method</span></dd>
|
297
|
+
<script type="text/javascript">moveProgressBar('45.0');</script>
|
298
|
+
<dd class="spec passed"><span class="passed_spec_name">spray method by convetion has keys correspondig to interface names for watir elements</span></dd>
|
299
|
+
</dl>
|
300
|
+
</div>
|
301
|
+
<div class="example_group">
|
302
|
+
<dl>
|
303
|
+
<dt id="example_group_12">RadioGroup class access in watir browser</dt>
|
304
|
+
<script type="text/javascript">moveProgressBar('46.4');</script>
|
305
|
+
<dd class="spec passed"><span class="passed_spec_name">browser responds to radio_group</span></dd>
|
306
|
+
<script type="text/javascript">moveProgressBar('47.8');</script>
|
307
|
+
<dd class="spec passed"><span class="passed_spec_name">radio group needs :what value with implicit :how=name</span></dd>
|
308
|
+
</dl>
|
309
|
+
</div>
|
310
|
+
<div class="example_group">
|
311
|
+
<dl>
|
312
|
+
<dt id="example_group_13">RadioGroup class interface in watirloo</dt>
|
313
|
+
<script type="text/javascript">moveProgressBar('49.2');</script>
|
314
|
+
<dd class="spec passed"><span class="passed_spec_name">container radio_group method returns RadioGroup class</span></dd>
|
315
|
+
<script type="text/javascript">moveProgressBar('50.7');</script>
|
316
|
+
<dd class="spec passed"><span class="passed_spec_name">size or count returns how many radios in a group</span></dd>
|
317
|
+
<script type="text/javascript">moveProgressBar('52.1');</script>
|
318
|
+
<dd class="spec passed"><span class="passed_spec_name">values returns value attributes text items as an array</span></dd>
|
319
|
+
<script type="text/javascript">moveProgressBar('53.5');</script>
|
320
|
+
<dd class="spec passed"><span class="passed_spec_name">selected_value returns internal option value for selected radio item in a group</span></dd>
|
321
|
+
<script type="text/javascript">moveProgressBar('54.9');</script>
|
322
|
+
<dd class="spec passed"><span class="passed_spec_name">set selects radio by position in a group</span></dd>
|
323
|
+
<script type="text/javascript">moveProgressBar('56.3');</script>
|
324
|
+
<dd class="spec passed"><span class="passed_spec_name">set selects radio by value in a group. selected returns value</span></dd>
|
325
|
+
<script type="text/javascript">moveProgressBar('57.7');</script>
|
326
|
+
<dd class="spec passed"><span class="passed_spec_name">set position throws exception if number not within the range of group size</span></dd>
|
327
|
+
<script type="text/javascript">moveProgressBar('59.1');</script>
|
328
|
+
<dd class="spec passed"><span class="passed_spec_name">set value throws exception if value not found in options</span></dd>
|
329
|
+
<script type="text/javascript">moveProgressBar('60.5');</script>
|
330
|
+
<dd class="spec passed"><span class="passed_spec_name">set throws exception if sybmol is used. it should accept Fixnum or String element only</span></dd>
|
331
|
+
</dl>
|
332
|
+
</div>
|
333
|
+
<div class="example_group">
|
334
|
+
<dl>
|
335
|
+
<dt id="example_group_14">SelectList selections</dt>
|
336
|
+
<script type="text/javascript">moveProgressBar('61.9');</script>
|
337
|
+
<dd class="spec passed"><span class="passed_spec_name">selected returns preselected item in single select</span></dd>
|
338
|
+
<script type="text/javascript">moveProgressBar('63.3');</script>
|
339
|
+
<dd class="spec passed"><span class="passed_spec_name">selected returns preselected value in single select</span></dd>
|
340
|
+
<script type="text/javascript">moveProgressBar('64.7');</script>
|
341
|
+
<dd class="spec passed"><span class="passed_spec_name">selected returns nil for none selected items in multi select</span></dd>
|
342
|
+
<script type="text/javascript">moveProgressBar('66.1');</script>
|
343
|
+
<dd class="spec passed"><span class="passed_spec_name">selected returns nil for none selected values in multi select</span></dd>
|
344
|
+
<script type="text/javascript">moveProgressBar('67.6');</script>
|
345
|
+
<dd class="spec passed"><span class="passed_spec_name">set item text and find selected item and text for multiselect</span></dd>
|
346
|
+
<script type="text/javascript">moveProgressBar('69.0');</script>
|
347
|
+
<dd class="spec passed"><span class="passed_spec_name">set value and find selected item and value for multiselect</span></dd>
|
348
|
+
<script type="text/javascript">moveProgressBar('70.4');</script>
|
349
|
+
<dd class="spec passed"><span class="passed_spec_name">set and query option by text for single select</span></dd>
|
350
|
+
<script type="text/javascript">moveProgressBar('71.8');</script>
|
351
|
+
<dd class="spec passed"><span class="passed_spec_name">set and query option by value for single select</span></dd>
|
352
|
+
<script type="text/javascript">moveProgressBar('73.2');</script>
|
353
|
+
<dd class="spec passed"><span class="passed_spec_name">set by text multple items for multiselect selects each item</span></dd>
|
354
|
+
<script type="text/javascript">moveProgressBar('74.6');</script>
|
355
|
+
<dd class="spec passed"><span class="passed_spec_name">set by value multple items for multiselect selects each item</span></dd>
|
356
|
+
<script type="text/javascript">moveProgressBar('76.0');</script>
|
357
|
+
<dd class="spec passed"><span class="passed_spec_name">set items array for single select selects each in turn. selected is the last item in array</span></dd>
|
358
|
+
<script type="text/javascript">moveProgressBar('77.4');</script>
|
359
|
+
<dd class="spec passed"><span class="passed_spec_name">set item after multiple items were set returns all values selected for multiselect</span></dd>
|
360
|
+
<script type="text/javascript">moveProgressBar('78.8');</script>
|
361
|
+
<dd class="spec passed"><span class="passed_spec_name">set using position for multiselect</span></dd>
|
362
|
+
<script type="text/javascript">moveProgressBar('80.2');</script>
|
363
|
+
<dd class="spec passed"><span class="passed_spec_name">set using position and item for multiselect</span></dd>
|
364
|
+
<script type="text/javascript">moveProgressBar('81.6');</script>
|
365
|
+
<dd class="spec passed"><span class="passed_spec_name">set using position for single select</span></dd>
|
366
|
+
<script type="text/javascript">moveProgressBar('83.0');</script>
|
367
|
+
<dd class="spec passed"><span class="passed_spec_name">clear removes selected attribute for all selected items in multiselect</span></dd>
|
368
|
+
<script type="text/javascript">moveProgressBar('84.5');</script>
|
369
|
+
<dd class="spec passed"><span class="passed_spec_name">clear removes selected attribute for item in single select list</span></dd>
|
370
|
+
<script type="text/javascript">moveProgressBar('85.9');</script>
|
371
|
+
<dd class="spec passed"><span class="passed_spec_name">set_value selects value atribute text</span></dd>
|
372
|
+
<script type="text/javascript">moveProgressBar('87.3');</script>
|
373
|
+
<dd class="spec passed"><span class="passed_spec_name">set_value for multiselect returns selected and selected_values</span></dd>
|
374
|
+
</dl>
|
375
|
+
</div>
|
376
|
+
<div class="example_group">
|
377
|
+
<dl>
|
378
|
+
<dt id="example_group_15">SelectList options as visible items and values as hidden to the user attributes</dt>
|
379
|
+
<script type="text/javascript">moveProgressBar('88.7');</script>
|
380
|
+
<dd class="spec passed"><span class="passed_spec_name">values of options by facename method</span></dd>
|
381
|
+
<script type="text/javascript">moveProgressBar('90.1');</script>
|
382
|
+
<dd class="spec passed"><span class="passed_spec_name">options with no value attribute</span></dd>
|
383
|
+
<script type="text/javascript">moveProgressBar('91.5');</script>
|
384
|
+
<dd class="spec passed"><span class="passed_spec_name">items method returns visible contents as array of text items</span></dd>
|
385
|
+
<script type="text/javascript">moveProgressBar('92.9');</script>
|
386
|
+
<dd class="spec passed"><span class="passed_spec_name">items returns visible text items as array</span></dd>
|
387
|
+
</dl>
|
388
|
+
</div>
|
389
|
+
<div class="example_group">
|
390
|
+
<dl>
|
391
|
+
<dt id="example_group_16">add faces text fields page objects</dt>
|
392
|
+
<script type="text/javascript">moveProgressBar('94.3');</script>
|
393
|
+
<dd class="spec passed"><span class="passed_spec_name">face returns a watir element text_field</span></dd>
|
394
|
+
<script type="text/javascript">moveProgressBar('95.7');</script>
|
395
|
+
<dd class="spec passed"><span class="passed_spec_name">face name method and value returns current text</span></dd>
|
396
|
+
<script type="text/javascript">moveProgressBar('97.1');</script>
|
397
|
+
<dd class="spec passed"><span class="passed_spec_name">face name method and set enters value into field</span></dd>
|
398
|
+
<script type="text/javascript">moveProgressBar('98.5');</script>
|
399
|
+
<dd class="spec passed"><span class="passed_spec_name">spray method matches keys as facenames and sets values to fields</span></dd>
|
400
|
+
<script type="text/javascript">moveProgressBar('100.0');</script>
|
401
|
+
<dd class="spec passed"><span class="passed_spec_name">scrape keys updates keys with values and returns datamap</span></dd>
|
402
|
+
</dl>
|
403
|
+
</div>
|
404
|
+
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>12.219 seconds</strong>";</script>
|
405
|
+
<script type="text/javascript">document.getElementById('totals').innerHTML = "71 examples, 0 failures";</script>
|
406
|
+
</div>
|
407
|
+
</div>
|
408
|
+
</body>
|
409
|
+
</html>
|