fluent 0.4.0 → 0.5.0
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.
- checksums.yaml +4 -4
- data/HISTORY.md +11 -0
- data/lib/fluent.rb +4 -0
- data/lib/fluent/factory.rb +20 -1
- data/lib/fluent/version.rb +1 -1
- metadata +62 -129
- data/.gitignore +0 -19
- data/.travis.yml +0 -14
- data/Gemfile +0 -5
- data/Rakefile +0 -13
- data/fluent.gemspec +0 -33
- data/spec/enclosers_spec.rb +0 -38
- data/spec/evaluators_spec.rb +0 -88
- data/spec/factory_spec.rb +0 -49
- data/spec/fluent_spec.rb +0 -40
- data/spec/generators/button_generators_spec.rb +0 -77
- data/spec/generators/cell_generators_spec.rb +0 -50
- data/spec/generators/checkbox_generators_spec.rb +0 -88
- data/spec/generators/div_generators_spec.rb +0 -49
- data/spec/generators/form_generators_spec.rb +0 -42
- data/spec/generators/heading_generators_spec.rb +0 -87
- data/spec/generators/hidden_generators_spec.rb +0 -49
- data/spec/generators/image_generators_spec.rb +0 -42
- data/spec/generators/label_generators_spec.rb +0 -49
- data/spec/generators/link_generators_spec.rb +0 -64
- data/spec/generators/list_item_generators_spec.rb +0 -53
- data/spec/generators/ordered_list_generators_spec.rb +0 -53
- data/spec/generators/paragraph_generators_spec.rb +0 -65
- data/spec/generators/radio_generators_spec.rb +0 -85
- data/spec/generators/select_list_generators_spec.rb +0 -120
- data/spec/generators/span_generators_spec.rb +0 -49
- data/spec/generators/table_generators_spec.rb +0 -49
- data/spec/generators/text_area_generators_spec.rb +0 -55
- data/spec/generators/text_field_generators_spec.rb +0 -81
- data/spec/generators/unordered_list_generators_spec.rb +0 -53
- data/spec/generators_spec.rb +0 -87
- data/spec/mock_app.rb +0 -31
- data/spec/platform_object_spec.rb +0 -32
- data/spec/spec_helper.rb +0 -19
- data/spec/web_element_spec.rb +0 -38
- data/spec/web_element_watir_spec.rb +0 -156
- data/spec/web_elements/button_spec.rb +0 -21
- data/spec/web_elements/cell_spec.rb +0 -13
- data/spec/web_elements/checkbox_spec.rb +0 -25
- data/spec/web_elements/div_spec.rb +0 -9
- data/spec/web_elements/form_spec.rb +0 -9
- data/spec/web_elements/heading_spec.rb +0 -28
- data/spec/web_elements/hidden_spec.rb +0 -9
- data/spec/web_elements/image_spec.rb +0 -9
- data/spec/web_elements/label_spec.rb +0 -9
- data/spec/web_elements/link_spec.rb +0 -9
- data/spec/web_elements/list_item_spec.rb +0 -9
- data/spec/web_elements/option_spec.rb +0 -9
- data/spec/web_elements/ordered_list_spec.rb +0 -42
- data/spec/web_elements/paragraph_spec.rb +0 -9
- data/spec/web_elements/radio_spec.rb +0 -25
- data/spec/web_elements/select_list_spec.rb +0 -45
- data/spec/web_elements/span_spec.rb +0 -9
- data/spec/web_elements/table_row_spec.rb +0 -47
- data/spec/web_elements/table_spec.rb +0 -54
- data/spec/web_elements/text_area_spec.rb +0 -27
- data/spec/web_elements/text_field_spec.rb +0 -29
- data/spec/web_elements/unordered_list_spec.rb +0 -42
@@ -1,42 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class FormGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
form :group, id: 'group'
|
7
|
-
end
|
8
|
-
|
9
|
-
describe Fluent::Generators do
|
10
|
-
let(:watir_browser) { mock_browser_for_watir }
|
11
|
-
let(:watir_definition) { FormGenerators.new(watir_browser) }
|
12
|
-
|
13
|
-
describe 'form generators' do
|
14
|
-
context 'when declared on a page definition' do
|
15
|
-
it 'should generate methods for referencing the form' do
|
16
|
-
watir_definition.should respond_to(:group_object)
|
17
|
-
watir_definition.should respond_to(:group_element)
|
18
|
-
watir_definition.should respond_to(:group_form)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should generate methods for interacting with the form' do
|
22
|
-
watir_definition.should respond_to(:group_exists?)
|
23
|
-
watir_definition.should respond_to(:group_visible?)
|
24
|
-
watir_definition.should respond_to(:group?)
|
25
|
-
watir_definition.should respond_to(:group_?)
|
26
|
-
watir_definition.should respond_to(:group_form_exists?)
|
27
|
-
watir_definition.should respond_to(:group_form_visible?)
|
28
|
-
watir_definition.should respond_to(:group_form?)
|
29
|
-
watir_definition.should respond_to(:group_form_?)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
context 'when used by the watir platform' do
|
34
|
-
it 'should locate the form' do
|
35
|
-
watir_browser.should_receive(:form).and_return(watir_browser)
|
36
|
-
web_element = watir_definition.group_object
|
37
|
-
web_element.should_not be_nil
|
38
|
-
web_element.should be_instance_of Fluent::WebElements::Form
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,87 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class HeadingGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
h1 :headingOne, id: 'headingOne'
|
7
|
-
h2 :headingTwo, id: 'headingTwo'
|
8
|
-
h3 :headingThree, id: 'headingThree'
|
9
|
-
h4 :headingFour, id: 'headingFour'
|
10
|
-
h5 :headingFive, id: 'headingFive'
|
11
|
-
h6 :headingSix, id: 'headingSix'
|
12
|
-
end
|
13
|
-
|
14
|
-
describe Fluent::Generators do
|
15
|
-
let(:watir_browser) { mock_browser_for_watir }
|
16
|
-
let(:watir_definition) { HeadingGenerators.new(watir_browser) }
|
17
|
-
|
18
|
-
describe 'heading generators' do
|
19
|
-
context 'when declared on a page definition' do
|
20
|
-
it 'should generate methods for referencing the heading' do
|
21
|
-
watir_definition.should respond_to(:headingOne_object)
|
22
|
-
watir_definition.should respond_to(:headingTwo_object)
|
23
|
-
end
|
24
|
-
|
25
|
-
it 'should generate methods for interacting with the heading' do
|
26
|
-
watir_definition.should respond_to(:headingOne)
|
27
|
-
watir_definition.should respond_to(:headingTwo)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'when used by the watir platform' do
|
32
|
-
it 'should locate the heading' do
|
33
|
-
watir_browser.should_receive(:h1).and_return(watir_browser)
|
34
|
-
web_element = watir_definition.headingOne_h1
|
35
|
-
web_element.should_not be_nil
|
36
|
-
web_element.should be_instance_of Fluent::WebElements::Heading
|
37
|
-
|
38
|
-
watir_browser.should_receive(:h2).and_return(watir_browser)
|
39
|
-
web_element = watir_definition.headingTwo_h2
|
40
|
-
web_element.should be_instance_of Fluent::WebElements::Heading
|
41
|
-
|
42
|
-
watir_browser.should_receive(:h3).and_return(watir_browser)
|
43
|
-
web_element = watir_definition.headingThree_h3
|
44
|
-
web_element.should be_instance_of Fluent::WebElements::Heading
|
45
|
-
|
46
|
-
watir_browser.should_receive(:h4).and_return(watir_browser)
|
47
|
-
web_element = watir_definition.headingFour_h4
|
48
|
-
web_element.should be_instance_of Fluent::WebElements::Heading
|
49
|
-
|
50
|
-
watir_browser.should_receive(:h5).and_return(watir_browser)
|
51
|
-
web_element = watir_definition.headingFive_h5
|
52
|
-
web_element.should be_instance_of Fluent::WebElements::Heading
|
53
|
-
|
54
|
-
watir_browser.should_receive(:h6).and_return(watir_browser)
|
55
|
-
web_element = watir_definition.headingSix_h6
|
56
|
-
web_element.should be_instance_of Fluent::WebElements::Heading
|
57
|
-
end
|
58
|
-
|
59
|
-
it 'should return the text of a heading' do
|
60
|
-
watir_browser.should_receive(:h1).and_return(watir_browser)
|
61
|
-
watir_browser.should_receive(:text).and_return('testing')
|
62
|
-
watir_definition.headingOne.should == 'testing'
|
63
|
-
|
64
|
-
watir_browser.should_receive(:h2).and_return(watir_browser)
|
65
|
-
watir_browser.should_receive(:text).and_return('testing')
|
66
|
-
watir_definition.headingTwo.should == 'testing'
|
67
|
-
|
68
|
-
watir_browser.should_receive(:h3).and_return(watir_browser)
|
69
|
-
watir_browser.should_receive(:text).and_return('testing')
|
70
|
-
watir_definition.headingThree.should == 'testing'
|
71
|
-
|
72
|
-
watir_browser.should_receive(:h4).and_return(watir_browser)
|
73
|
-
watir_browser.should_receive(:text).and_return('testing')
|
74
|
-
watir_definition.headingFour.should == 'testing'
|
75
|
-
|
76
|
-
watir_browser.should_receive(:h5).and_return(watir_browser)
|
77
|
-
watir_browser.should_receive(:text).and_return('testing')
|
78
|
-
watir_definition.headingFive.should == 'testing'
|
79
|
-
|
80
|
-
watir_browser.should_receive(:h6).and_return(watir_browser)
|
81
|
-
watir_browser.should_receive(:text).and_return('testing')
|
82
|
-
watir_definition.headingSix.should == 'testing'
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class HiddenGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
hidden :ssn, id: 'ssn'
|
7
|
-
end
|
8
|
-
|
9
|
-
describe Fluent::Generators do
|
10
|
-
let(:watir_browser) { mock_browser_for_watir }
|
11
|
-
let(:watir_definition) { HiddenGenerators.new(watir_browser) }
|
12
|
-
|
13
|
-
describe 'hidden generators' do
|
14
|
-
context 'when declared on a page definition' do
|
15
|
-
it 'should generate methods for referencing the hidden' do
|
16
|
-
watir_definition.should respond_to(:ssn_object)
|
17
|
-
watir_definition.should respond_to(:ssn_element)
|
18
|
-
watir_definition.should respond_to(:ssn_hidden)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should generate methods for interacting with the text area' do
|
22
|
-
watir_definition.should respond_to(:ssn)
|
23
|
-
watir_definition.should respond_to(:ssn_exists?)
|
24
|
-
watir_definition.should respond_to(:ssn_visible?)
|
25
|
-
watir_definition.should respond_to(:ssn?)
|
26
|
-
watir_definition.should respond_to(:ssn_?)
|
27
|
-
watir_definition.should respond_to(:ssn_hidden_exists?)
|
28
|
-
watir_definition.should respond_to(:ssn_hidden_visible?)
|
29
|
-
watir_definition.should respond_to(:ssn_hidden?)
|
30
|
-
watir_definition.should respond_to(:ssn_hidden_?)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
context 'when used by the watir platform' do
|
35
|
-
it 'should locate the hidden' do
|
36
|
-
watir_browser.should_receive(:hidden).and_return(watir_browser)
|
37
|
-
web_element = watir_definition.ssn_object
|
38
|
-
web_element.should_not be_nil
|
39
|
-
web_element.should be_instance_of Fluent::WebElements::Hidden
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'should retrieve text from the hidden' do
|
43
|
-
watir_browser.should_receive(:hidden).and_return(watir_browser)
|
44
|
-
watir_browser.should_receive(:value).and_return('testing')
|
45
|
-
watir_definition.ssn.should == 'testing'
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class ImageGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
image :logo, id: 'logo'
|
7
|
-
end
|
8
|
-
|
9
|
-
describe Fluent::Generators do
|
10
|
-
let(:watir_browser) { mock_browser_for_watir }
|
11
|
-
let(:watir_definition) { ImageGenerators.new(watir_browser) }
|
12
|
-
|
13
|
-
describe 'image generators' do
|
14
|
-
context 'when declared on a page definition' do
|
15
|
-
it 'should generate methods for referencing the image' do
|
16
|
-
watir_definition.should respond_to(:logo_object)
|
17
|
-
watir_definition.should respond_to(:logo_element)
|
18
|
-
watir_definition.should respond_to(:logo_image)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should generate methods for interacting with the image' do
|
22
|
-
watir_definition.should respond_to(:logo_exists?)
|
23
|
-
watir_definition.should respond_to(:logo_visible?)
|
24
|
-
watir_definition.should respond_to(:logo?)
|
25
|
-
watir_definition.should respond_to(:logo_?)
|
26
|
-
watir_definition.should respond_to(:logo_image_exists?)
|
27
|
-
watir_definition.should respond_to(:logo_image_visible?)
|
28
|
-
watir_definition.should respond_to(:logo_image?)
|
29
|
-
watir_definition.should respond_to(:logo_image_?)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
context 'when used by the watir platform' do
|
34
|
-
it 'should locate the image' do
|
35
|
-
watir_browser.should_receive(:image).and_return(watir_browser)
|
36
|
-
web_element = watir_definition.logo_object
|
37
|
-
web_element.should_not be_nil
|
38
|
-
web_element.should be_instance_of Fluent::WebElements::Image
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class LabelGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
label :topic, id: 'topic'
|
7
|
-
end
|
8
|
-
|
9
|
-
describe Fluent::Generators do
|
10
|
-
let(:watir_browser) { mock_browser_for_watir }
|
11
|
-
let(:watir_definition) { LabelGenerators.new(watir_browser) }
|
12
|
-
|
13
|
-
describe 'label generators' do
|
14
|
-
context 'when declared on a page definition' do
|
15
|
-
it 'should generate methods for referencing the label' do
|
16
|
-
watir_definition.should respond_to(:topic_object)
|
17
|
-
watir_definition.should respond_to(:topic_element)
|
18
|
-
watir_definition.should respond_to(:topic_label)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should generate methods for interacting with the label' do
|
22
|
-
watir_definition.should respond_to(:topic)
|
23
|
-
watir_definition.should respond_to(:topic_exists?)
|
24
|
-
watir_definition.should respond_to(:topic_visible?)
|
25
|
-
watir_definition.should respond_to(:topic?)
|
26
|
-
watir_definition.should respond_to(:topic_?)
|
27
|
-
watir_definition.should respond_to(:topic_label_exists?)
|
28
|
-
watir_definition.should respond_to(:topic_label_visible?)
|
29
|
-
watir_definition.should respond_to(:topic_label?)
|
30
|
-
watir_definition.should respond_to(:topic_label_?)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
context 'when used by the watir platform' do
|
35
|
-
it 'should locate the label' do
|
36
|
-
watir_browser.should_receive(:label).and_return(watir_browser)
|
37
|
-
web_element = watir_definition.topic_object
|
38
|
-
web_element.should_not be_nil
|
39
|
-
web_element.should be_instance_of Fluent::WebElements::Label
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'should retrieve text from the label' do
|
43
|
-
watir_browser.should_receive(:label).and_return(watir_browser)
|
44
|
-
watir_browser.should_receive(:text).and_return('testing')
|
45
|
-
watir_definition.topic.should == 'testing'
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class LinkGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
link :contact, id: 'contact'
|
7
|
-
end
|
8
|
-
|
9
|
-
describe Fluent::Generators do
|
10
|
-
let(:watir_browser) { mock_browser_for_watir }
|
11
|
-
let(:watir_definition) { LinkGenerators.new(watir_browser) }
|
12
|
-
|
13
|
-
describe 'link generators' do
|
14
|
-
context 'when declared on a page definition' do
|
15
|
-
it 'should generate methods for referencing the link' do
|
16
|
-
watir_definition.should respond_to(:contact_object)
|
17
|
-
watir_definition.should respond_to(:contact_element)
|
18
|
-
watir_definition.should respond_to(:contact_link)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should generate methods for interacting with the link' do
|
22
|
-
watir_definition.should respond_to(:contact)
|
23
|
-
watir_definition.should respond_to(:contact_exists?)
|
24
|
-
watir_definition.should respond_to(:contact_visible?)
|
25
|
-
watir_definition.should respond_to(:contact?)
|
26
|
-
watir_definition.should respond_to(:contact_?)
|
27
|
-
watir_definition.should respond_to(:contact_link_exists?)
|
28
|
-
watir_definition.should respond_to(:contact_link_visible?)
|
29
|
-
watir_definition.should respond_to(:contact_link?)
|
30
|
-
watir_definition.should respond_to(:contact_link_?)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
context 'when used by the watir platform' do
|
35
|
-
it 'should locate the link' do
|
36
|
-
watir_browser.should_receive(:link).and_return(watir_browser)
|
37
|
-
web_element = watir_definition.contact_object
|
38
|
-
web_element.should_not be_nil
|
39
|
-
web_element.should be_instance_of Fluent::WebElements::Link
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'should click the link' do
|
43
|
-
watir_browser.stub_chain(:link, :click)
|
44
|
-
watir_definition.contact
|
45
|
-
end
|
46
|
-
|
47
|
-
it 'should determine if a link exists' do
|
48
|
-
watir_browser.should_receive(:link).exactly(3).times.and_return(watir_browser)
|
49
|
-
watir_browser.should_receive(:exists?).exactly(3).times.and_return(watir_browser)
|
50
|
-
watir_definition.contact_link_exists?.should be_true
|
51
|
-
watir_definition.contact_exists?.should be_true
|
52
|
-
watir_definition.contact?.should be_true
|
53
|
-
end
|
54
|
-
|
55
|
-
it 'should determine if a link is visible' do
|
56
|
-
watir_browser.should_receive(:link).exactly(3).times.and_return(watir_browser)
|
57
|
-
watir_browser.should_receive(:present?).exactly(3).times.and_return(watir_browser)
|
58
|
-
watir_definition.contact_link_visible?.should be_true
|
59
|
-
watir_definition.contact_visible?.should be_true
|
60
|
-
watir_definition.contact_?.should be_true
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class ListItemGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
li :list_short, id: 'list1'
|
7
|
-
list_item :list, id: 'list2'
|
8
|
-
end
|
9
|
-
|
10
|
-
describe Fluent::Generators do
|
11
|
-
let(:watir_browser) { mock_browser_for_watir }
|
12
|
-
let(:watir_definition) { ListItemGenerators.new(watir_browser) }
|
13
|
-
|
14
|
-
describe 'list item generators' do
|
15
|
-
context 'when declared on a page definition' do
|
16
|
-
it 'should generate methods for referencing the list item' do
|
17
|
-
watir_definition.should respond_to(:list_object)
|
18
|
-
watir_definition.should respond_to(:list_element)
|
19
|
-
watir_definition.should respond_to(:list_list_item)
|
20
|
-
watir_definition.should respond_to(:list_short_li)
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'should generate methods for interacting with the list item' do
|
24
|
-
watir_definition.should respond_to(:list)
|
25
|
-
watir_definition.should respond_to(:list_exists?)
|
26
|
-
watir_definition.should respond_to(:list_visible?)
|
27
|
-
watir_definition.should respond_to(:list?)
|
28
|
-
watir_definition.should respond_to(:list_?)
|
29
|
-
watir_definition.should respond_to(:list_li_exists?)
|
30
|
-
watir_definition.should respond_to(:list_li_visible?)
|
31
|
-
watir_definition.should respond_to(:list_li?)
|
32
|
-
watir_definition.should respond_to(:list_li_?)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'when used by the watir platform' do
|
37
|
-
it 'should locate the list item' do
|
38
|
-
watir_browser.should_receive(:li).and_return(watir_browser)
|
39
|
-
web_element = watir_definition.list_list_item
|
40
|
-
web_element.should_not be_nil
|
41
|
-
web_element.should be_instance_of Fluent::WebElements::ListItem
|
42
|
-
end
|
43
|
-
|
44
|
-
it 'should return the text of a list item' do
|
45
|
-
watir_browser.should_receive(:li).twice.and_return(watir_browser)
|
46
|
-
watir_browser.should_receive(:text).twice.and_return('testing')
|
47
|
-
watir_definition.list.should == 'testing'
|
48
|
-
watir_definition.list_short.should == 'testing'
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require_relative '../spec_helper'
|
2
|
-
|
3
|
-
class OrderedListGenerators
|
4
|
-
include Fluent
|
5
|
-
|
6
|
-
ol :list_short, id: 'list1'
|
7
|
-
ordered_list :list, id: 'list2'
|
8
|
-
end
|
9
|
-
|
10
|
-
describe Fluent::Generators do
|
11
|
-
let(:watir_browser) { mock_browser_for_watir }
|
12
|
-
let(:watir_definition) { OrderedListGenerators.new(watir_browser) }
|
13
|
-
|
14
|
-
describe 'ordered list generators' do
|
15
|
-
context 'when declared on a page definition' do
|
16
|
-
it 'should generate methods for referencing the ordered list' do
|
17
|
-
watir_definition.should respond_to(:list_object)
|
18
|
-
watir_definition.should respond_to(:list_element)
|
19
|
-
watir_definition.should respond_to(:list_ordered_list)
|
20
|
-
watir_definition.should respond_to(:list_short_ol)
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'should generate methods for interacting with the ordered list' do
|
24
|
-
watir_definition.should respond_to(:list)
|
25
|
-
watir_definition.should respond_to(:list_exists?)
|
26
|
-
watir_definition.should respond_to(:list_visible?)
|
27
|
-
watir_definition.should respond_to(:list?)
|
28
|
-
watir_definition.should respond_to(:list_?)
|
29
|
-
watir_definition.should respond_to(:list_ol_exists?)
|
30
|
-
watir_definition.should respond_to(:list_ol_visible?)
|
31
|
-
watir_definition.should respond_to(:list_ol?)
|
32
|
-
watir_definition.should respond_to(:list_ol_?)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'when used by the watir platform' do
|
37
|
-
it 'should locate the ordered list' do
|
38
|
-
watir_browser.should_receive(:ol).and_return(watir_browser)
|
39
|
-
web_element = watir_definition.list_ordered_list
|
40
|
-
web_element.should_not be_nil
|
41
|
-
web_element.should be_instance_of Fluent::WebElements::OrderedList
|
42
|
-
end
|
43
|
-
|
44
|
-
it 'should return the text of a ordered list' do
|
45
|
-
watir_browser.should_receive(:ol).twice.and_return(watir_browser)
|
46
|
-
watir_browser.should_receive(:text).twice.and_return('testing')
|
47
|
-
watir_definition.list.should == 'testing'
|
48
|
-
watir_definition.list_short.should == 'testing'
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|