selenium_fury 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 71bbb0033e7a5217b2ff30149441d125c778262c
4
- data.tar.gz: fba6daa554baa20fd1ca1b6f9f532eb25f6ac08a
5
- SHA512:
6
- metadata.gz: 5c9e76b9f50b49aa0a4b305981229921176d9120251879efe81956b5e00ef68af8bac22be597d977d7a585d8362383ea3166977f9773526f60ad2a0742e5e0fe
7
- data.tar.gz: b4aa5b73f72fe7f878ba9f7e7b8f94e91e6d5b447d96276732357e490fe77cd573bf99eced15fb517f96574a336d6a2b96d319b0c8a08a0f282f4392b010d942
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDY3ZThmNzVkMTM5OGRmMjljMmZiZjJiMjQ2YzU1ZjA1MTRiNDMwNA==
5
+ data.tar.gz: !binary |-
6
+ OWVlZTZjZGRlZTNhNGM5NTA1Njc5ZWM5MDZjZWQ0ZDlhYTkzYjM2Nw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ODE2ZjBkZTkzNTZiNDU1ZTk2ZmVmN2JkY2Q3Mjc4OTBlNjNiODFkODE1NzE0
10
+ NTcwYTIwMDE2NGRkYWI4NDczYmYzNmY1YWM3MGI4YzVlYTAzZWRmNWJkNjRj
11
+ ODFiZDBiYmQ1Y2EyYzc5YTMwNWE5MjdhYTNhMjU1NTVhYjI3Nzg=
12
+ data.tar.gz: !binary |-
13
+ ZTAwYTUyN2E1Nzk0MzczNWY3ODk4MzI1ZTUwOTgxOTRiZWM1ZDBlOGNlYTY5
14
+ MDU3ZjY1ODBjYWU4NWI2ODVkZWRiZjFhYzIxNDk4MWJiOWVlODM5ODYwNTFk
15
+ ZTQ0Y2Y2N2ZlZDcyMDYyNzdkMTczMzQ4YmJhMDlkZTdhYmY3NDY=
@@ -5,14 +5,14 @@ module GenericElementHelpers
5
5
  end
6
6
 
7
7
  def list
8
- (1..number_matching).map { |i| self.class.new({css: location[:css]+":nth-of-type(#{i})"}, @driver) }
8
+ @driver.find_elements(location)
9
9
  end
10
10
 
11
11
  def present?
12
12
  # Set implicit wait to zero so it doesn't wait that time each method call
13
13
  implicit_wait = driver.manage.timeouts.implicit_wait
14
14
  driver.manage.timeouts.implicit_wait = 0
15
- present = number_matching > 0
15
+ present = list.size > 0
16
16
  driver.manage.timeouts.implicit_wait = implicit_wait
17
17
  present
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module SeleniumFury
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -80,14 +80,9 @@ describe PageObject do
80
80
  end
81
81
  end
82
82
 
83
- it 'When there is more than one element with the provided locator, it should return an array of GenericElements' do
83
+ it 'When there is more than one element with the provided locator, it should return an array of WebDriver Elements' do
84
84
  test_page.listings_element.list.should be_an Array
85
- test_page.listings_element.list[0].should be_a SeleniumFury::SeleniumWebDriver::PageObjectComponents::GenericElement
86
- end
87
-
88
- it 'List element should provide correct information' do
89
- test_page.listings_element.list[0].location.should == {css: 'li.listing:nth-of-type(1)'}
90
- test_page.listings_element.list[0].text.should == 'Herpa'
85
+ test_page.listings_element.list[0].should be_an Selenium::WebDriver::Element
91
86
  end
92
87
 
93
88
  describe Selenium::WebDriver::Element
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_fury
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sims
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-19 00:00:00.000000000 Z
11
+ date: 2013-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -56,42 +56,42 @@ dependencies:
56
56
  name: cucumber
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: redcarpet
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
@@ -112,14 +112,14 @@ dependencies:
112
112
  name: parallel_tests
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Generate and validate page objects with this page object factory for
@@ -178,12 +178,12 @@ require_paths:
178
178
  - lib
179
179
  required_ruby_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - '>='
181
+ - - ! '>='
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - '>='
186
+ - - ! '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []