taf 0.4.5 → 0.4.6
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98afd007e9cf30821d8543994680b8fd8a8540ace5252a5aa4863900caf1034d
|
4
|
+
data.tar.gz: e2ecb265527f100c74606dec7cb6878d65ef8853df46b4837a7b7f15cf1acfc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc8af10f6757f6f4a39835278a8f679e35d5c9022b02fa2b8f26b36441fc41244d05e3d1c3788383f578ca646fc818c87869c9ea07e192aa8a716d9d37fea841
|
7
|
+
data.tar.gz: f6246f7f9e7b2a2bbe145501b804fc50b20b7e1dddc35f4a2c4b3e023d4177f12b4939510c013c971b5859537a34522cc9dbecee13ac1fa7956b4b92dd4d3838
|
@@ -9,10 +9,8 @@ module Taf
|
|
9
9
|
def initialize(step_attributes)
|
10
10
|
@value = step_attributes[:testvalue]
|
11
11
|
@value2 = step_attributes[:testvalue2]
|
12
|
-
@value3 = step_attributes[:testvalue3]
|
13
12
|
@locate = step_attributes[:locate]
|
14
13
|
@locate2 = step_attributes[:locate2]
|
15
|
-
@locate3 = step_attributes[:locate3]
|
16
14
|
end
|
17
15
|
|
18
16
|
def self.register(name)
|
@@ -8,14 +8,11 @@ module Taf
|
|
8
8
|
register :radio_button
|
9
9
|
|
10
10
|
def perform
|
11
|
-
Taf::Browser.b.radio("#{@locate}": @value).wait_until(&:exists?)
|
12
|
-
Taf::
|
13
|
-
.radio("#{@locate}": @value, "#{@locate2}": @value2.to_s)
|
14
|
-
.set
|
15
|
-
Taf::MyLog.log.info("Radio button: #{@value2} has been selected")
|
11
|
+
Taf::Browser.b.radio("#{@locate}": @value).wait_until(&:exists?).set
|
12
|
+
Taf::MyLog.log.info("Radio button: #{@value} has been selected")
|
16
13
|
true
|
17
14
|
rescue StandardError
|
18
|
-
Taf::MyLog.log.warn("Radio button: #{@
|
15
|
+
Taf::MyLog.log.warn("Radio button: #{@value} does not exist")
|
19
16
|
false
|
20
17
|
end
|
21
18
|
end
|
data/lib/taf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Perrett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|