sparkling_watir 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sparkling_watir/element.rb +12 -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: 54f71df6f4b8e0ceb12704a5cf715840de8938bc6869acd23842d75af023190c
|
4
|
+
data.tar.gz: b37575d1b9aa5e422f69b7a9bd3343336d93e0696d5e977b5ee5ffb9d62f37e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23e94769776fadcb8dd912fc1b857a34690719212867446ca2d300b7dfa1a1a2260251f71d01ba9bac9701cca8b7317891e07c1b6e9157fff60c4041ca1394ee
|
7
|
+
data.tar.gz: e0e4f5d9fa929e79813a577aecaf3ccc34298bc322dba70684cb5cf511f0289a9edabd53c44032203d6ada657136f6df6324c818f4809619aa66a1f67ee34e45
|
@@ -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,16 @@ module SparklingWatir
|
|
71
73
|
wd.attribute(attribute_name)
|
72
74
|
end
|
73
75
|
|
76
|
+
def value
|
77
|
+
if driver.capabilities[:platform_name] == 'Android'
|
78
|
+
attribute('text')
|
79
|
+
else
|
80
|
+
attribute('value')
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
alias text value
|
85
|
+
|
74
86
|
private
|
75
87
|
|
76
88
|
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.5'
|
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.5
|
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: {}
|