page-object 2.2.5 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8e154a0c17c3a91e1bd0b15a404dd3605254fe6e
4
- data.tar.gz: 0e9916491fc6a8db99fef697d289e69045a5d2fe
2
+ SHA256:
3
+ metadata.gz: 35592c7727d49ef5cfcbf8dc7fa4ed7368a188d8b9bd9e22a93b1273a6a6c4ac
4
+ data.tar.gz: 13816c0ad197f4c76066147ab6ba6bdfe4eb103329792f917ddfee9ea49296ed
5
5
  SHA512:
6
- metadata.gz: 92a3431f085ef1e3692d64272ebadeed5a9cd07ab6af10750eca2df72c2091b82a3840d8560ee65fbc6d907214d8111083fd519e5a95d136c7ee117ecde198fa
7
- data.tar.gz: 0af16e5f35e7235db98d8c0a5b8447e2d47e86e656255ff1c15efc391424b2e65035efd3ea788bfda017b8b82a3944e29faec175812e8e180b0886e8c1ec1b27
6
+ metadata.gz: 4dd24f07238ea0f28f691528c3c9c0cf9e1650ab4e5e217c83af65b935daca0f401fb6436bc401903c31f4abdd0993318700fd60f7dc55b4e0f619ee99719665
7
+ data.tar.gz: 509b96bdabdbfc23e392aa83d231dc340eff0eb8cb0ef1898d57db013f0789e0c226ddd9c44b020ee361e1403f77d52a6f20fb25506f1429af00afb4942e90bb
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Version 2.2.6 / 2019/03/18
2
+ * Fixes
3
+ * Fixed deprecation warning in populate_page_with (#467)
4
+ * Fixed passing PageObject::Elements::Element to drag_and_drop_on (#422)
5
+
1
6
  Version 2.2.5 / 2018/11/21
2
7
  * Enhancements
3
8
  * populate_page_with will work with anything that can be converted to a Hash (Thanks Titus Fortner)
@@ -31,6 +31,11 @@ module PageObject
31
31
  element.present?
32
32
  end
33
33
 
34
+ def drag_and_drop_on(droppable)
35
+ droppable_native = droppable.kind_of?(PageObject::Elements::Element) ? droppable.element : droppable
36
+ element.drag_and_drop_on(droppable_native)
37
+ end
38
+
34
39
  #
35
40
  # specify plural form of element
36
41
  #
@@ -49,7 +54,7 @@ module PageObject
49
54
  #
50
55
  def check_visible(timeout=::PageObject.default_element_wait)
51
56
  timed_loop(timeout) do |element|
52
- element.visible?
57
+ element.present?
53
58
  end
54
59
  end
55
60
 
@@ -99,7 +99,7 @@ module PageObject
99
99
  return false if is_radiobuttongroup?(receiver, key)
100
100
  return true if (receiver.send "#{key}_element").tag_name == "textarea"
101
101
  element = receiver.send("#{key}_element")
102
- element.enabled? and element.visible?
102
+ element.enabled? and element.present?
103
103
  end
104
104
  end
105
105
  end
@@ -1,4 +1,4 @@
1
1
  module PageObject
2
2
  # @private
3
- VERSION = "2.2.5"
3
+ VERSION = "2.2.6"
4
4
  end
@@ -27,6 +27,6 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency 'rack', '~> 1.0'
28
28
  s.add_development_dependency 'coveralls', '~> 0.8.1'
29
29
  s.add_development_dependency 'net-http-persistent'
30
- s.add_development_dependency 'webdrivers', '~> 3.1'
30
+ s.add_development_dependency 'webdrivers'
31
31
 
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page-object
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-22 00:00:00.000000000 Z
12
+ date: 2019-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir
@@ -141,16 +141,16 @@ dependencies:
141
141
  name: webdrivers
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - "~>"
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
- version: '3.1'
146
+ version: '0'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - "~>"
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
- version: '3.1'
153
+ version: '0'
154
154
  description: Page Object DSL that works with both Watir and Selenium
155
155
  email:
156
156
  - jeff.morgan@leandog.com
@@ -243,8 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubyforge_project:
247
- rubygems_version: 2.6.14
246
+ rubygems_version: 3.0.1
248
247
  signing_key:
249
248
  specification_version: 4
250
249
  summary: Page Object DSL for browser testing