calabash-page-objects 0.5.2 → 0.5.3

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
2
  SHA1:
3
- metadata.gz: 53ca9ca6d996a039a9b1e1d04675267a889a3f2a
4
- data.tar.gz: 9ef0111bb7e576a8bd1331d3da57cc4a58bdb7e2
3
+ metadata.gz: f94282ee9aef5d804242ab716cf082b04d408f6d
4
+ data.tar.gz: 730e0896a0f874e753e0965b0001169df79abe2f
5
5
  SHA512:
6
- metadata.gz: 4fea84b0b3c128459cdbbf9bff64a27d92a50f546ea17c080dc3a23da79bd168e66718715c3478636fb4e4a943888c97c602fa5277b4a13857b7b72b5e639ba7
7
- data.tar.gz: 95aa7fa23b22f133189adf2c19b48e8b41bc2c7e64ade82e9110787674ac845d03c4a5622560a7572e09d7c01e229c2812659015550c7165503d7982d8beda4a
6
+ metadata.gz: a817650035b628993e2d6ba444e6a0eaea3280fade6f9375c902520a9dcb9775bf1ac0b489de25d1e4a3a993ce6966432eeded9765cda841907615eaffa860d0
7
+ data.tar.gz: 79da1760f7b9bb2c9bdbac804045882068117cfc981b9d119de9d1faae07f11163f32a21341af482e80682f152c3eeb883fa3831a1aec18a1c0057e6f6624ea0
data/README.md CHANGED
@@ -1,6 +1,15 @@
1
1
  #CalabashPageObjects
2
- =====================
3
2
 
3
+ ##Automatic waiting for element presence:
4
+ No more lines of code waiting for an element to be present before clicking it.
5
+
6
+ ##Automatic scrolling:
7
+ The size of the phone no longer matters! If your element isn't immediately present, CPO will scroll to find it for you, and stop when it reaches the bottom of the view.
8
+
9
+ ##Easy declaration of hierarchical parent views:
10
+ Specify the correct list view or webview container that the element lives in as a simple parameter, so CPO knows which one to scroll to find your element.
11
+
12
+ =====================
4
13
  The Calabash Page Object ruby gem provides a way to define on-screen elements in your application. These elements then have methods defined to make interacting with them in a Calabash test framework easier and more consistent across iOS and Android.
5
14
 
6
15
  The methods can be used whether the application is on iOS or Android.
@@ -11,15 +20,15 @@ Defining an element in Android `AElement.new` (or `IElement.new` for iOS) will p
11
20
 
12
21
  ##Installing the gem
13
22
  ```
14
- gem install 'CalabashPageObjects'
23
+ gem install 'calabash-page-objects'
15
24
  ```
16
25
  or add the following to your Gemfile if you use Bundler:
17
26
  ```
18
- gem 'CalabashPageObjects'
27
+ gem 'calabash-page-objects'
19
28
  ```
20
29
  Then require it in your page object class:
21
30
  ```
22
- require 'CalabashPageObjects'
31
+ require 'calabash-page-objects'
23
32
  ```
24
33
 
25
34
  ##Defining Elements
@@ -115,7 +115,7 @@ class ElementBase
115
115
 
116
116
  find(opts[:timeout], opts[:parent], opts[:webview])
117
117
  puts "Checking status of checkbox element with locator #{@locator}." if CPO_LOGGING
118
- query("#{@locator}", :isChecked)
118
+ query("#{@locator}", :isChecked)[0]
119
119
  end
120
120
 
121
121
  # Retrieve the text attribute of an element.
@@ -1,4 +1,4 @@
1
1
  # Version information.
2
2
  module CalabashPageObjects
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-page-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Nichols and Andrew Barnett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler