sparkling_watir 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sparkling_watir/element.rb +10 -0
- data/sparkling_watir.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae75e34993f4157622af726376482b2bd6c938ea3d5d68c1bd462ba5e7c9d34b
|
4
|
+
data.tar.gz: b99094bad380b895c7681076d7757b7de6a010293b9bc142d1df64d65f1137c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ab57a76e8604fc53b31396d3a89f975976ffc04b2e9981d8dcb1526a3bfc218406c5b9f0ac748d56a58ac2a90a7593eb1657aba8542d1e8cb17d8b3a18c7c60
|
7
|
+
data.tar.gz: caff6f76a090d0ced86e92588f10484eb71dce687f4e89ea6b0f99fab417962a5e1908edb09e1d1932c0caac3c55e54035fbac53c87ae36c0038d55e0eb2597a
|
@@ -8,6 +8,8 @@ module SparklingWatir
|
|
8
8
|
# This is a element in the native app context
|
9
9
|
#
|
10
10
|
class Element
|
11
|
+
attr_reader :driver
|
12
|
+
|
11
13
|
include Waitable
|
12
14
|
|
13
15
|
def initialize(driver, selector)
|
@@ -71,6 +73,14 @@ module SparklingWatir
|
|
71
73
|
wd.attribute(attribute_name)
|
72
74
|
end
|
73
75
|
|
76
|
+
def text
|
77
|
+
if driver.capabilities[:platform_name] == 'Android'
|
78
|
+
attribute('text')
|
79
|
+
else
|
80
|
+
attribute('name')
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
74
84
|
private
|
75
85
|
|
76
86
|
def locate
|
data/sparkling_watir.gemspec
CHANGED
@@ -5,10 +5,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'sparkling_watir'
|
8
|
-
spec.version = '0.0.
|
8
|
+
spec.version = '0.0.6'
|
9
9
|
spec.authors = ['Agustin Pequeno']
|
10
10
|
spec.email = ['agustin.pe94@gmail.com']
|
11
|
-
|
11
|
+
spec.homepage = 'https://github.com/aguspe/sparkling_watir'
|
12
12
|
spec.summary = 'A watir adaptation for testing your native mobile apps'
|
13
13
|
spec.description = 'Sparkling watir takes heavy inspiration from tap watir and is a mobile adaptation of watir'
|
14
14
|
spec.license = 'MIT'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparkling_watir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agustin Pequeno
|
@@ -143,7 +143,7 @@ files:
|
|
143
143
|
- lib/sparkling_watir/wait.rb
|
144
144
|
- lib/sparkling_watir/wait/timer.rb
|
145
145
|
- sparkling_watir.gemspec
|
146
|
-
homepage:
|
146
|
+
homepage: https://github.com/aguspe/sparkling_watir
|
147
147
|
licenses:
|
148
148
|
- MIT
|
149
149
|
metadata: {}
|