calabash-page-objects 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/CalabashPageObjects/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445e4bd6a9b3a161421a6201a853ee5f0946e93b
|
4
|
+
data.tar.gz: ff736a1ccaf5adf12b73caed096d1572db032f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b22592d6b80c69de2cbe62664e4d1fa553d27617ab85efc013f847a6d72df38eb7e8ec168c28047fedea3ba55a4b49a6c81e6981087e3335a29614763be6b443
|
7
|
+
data.tar.gz: 04d459960c352b797ea162c6f108b26e9bb4642c378e5e79fe65e853c701cecbda3daf60667fc5096fef12c4db916a8a19506641c773ea4f6207c452b51b52f3
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
#calabash-page-objects
|
2
2
|
|
3
3
|
##Automatic waiting for element presence:
|
4
4
|
No more lines of code waiting for an element to be present before clicking it.
|
@@ -9,7 +9,7 @@ The size of the phone no longer matters! If your element isn't immediately prese
|
|
9
9
|
##Easy declaration of hierarchical parent views:
|
10
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
11
|
|
12
|
-
|
12
|
+
#Overview
|
13
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.
|
14
14
|
|
15
15
|
The methods can be used whether the application is on iOS or Android.
|
@@ -40,7 +40,7 @@ The constructors of both classes take a Calabash query string as their only argu
|
|
40
40
|
###For Android:
|
41
41
|
To define elements for an Android app:
|
42
42
|
```
|
43
|
-
require '
|
43
|
+
require 'calabash-page-objects'
|
44
44
|
class HomeScreen
|
45
45
|
|
46
46
|
def initialize
|
@@ -52,7 +52,7 @@ class HomeScreen
|
|
52
52
|
###iOS
|
53
53
|
To define elements for an iOS app:
|
54
54
|
```
|
55
|
-
require '
|
55
|
+
require 'calabash-page-objects'
|
56
56
|
class HomeScreen
|
57
57
|
|
58
58
|
def initialize
|
@@ -237,7 +237,7 @@ However, it is not good practice to use hardcoded strings any more than necessar
|
|
237
237
|
|
238
238
|
e.g.
|
239
239
|
```
|
240
|
-
require '
|
240
|
+
require 'calabash-page-objects'
|
241
241
|
class PageObjectClass
|
242
242
|
|
243
243
|
def initialize
|