itms_automation 2.7.3 → 2.7.8
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a80eb61adf086ed5ab5c7b65a660fc5d1af18e0d118a6c17e7eb648999adae
|
4
|
+
data.tar.gz: b6516a0a679a7578c3dd33890bdf1b0c9dac3aa78a06e0e60c51cecb1e5fa377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb6b66722fae75c5aa594c8e218bba0066dd5636199b53e9db3f8db03b10a9b366028dec66aaec5c7ffb4b1a73ee8cc81df0769a3b08d06d1e4e8c8552a272b
|
7
|
+
data.tar.gz: e05a4c6723985b02496df8aea09736337a6675948288ff5d8b0cbe479904034857d161c60f8dfbcd3c89f40695cccf8b68f6ed6b4b4544ca439ac12992afd3ad
|
@@ -103,14 +103,16 @@ def assert_selected_value
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def assert(var_name, value)
|
106
|
-
if (value == "true" || value == "false")
|
106
|
+
if (value == "true" || value == "false")
|
107
107
|
_value = value
|
108
|
-
|
108
|
+
else elseif (value == '0' || !!number_or_nil(value))
|
109
109
|
_value = value
|
110
|
-
|
111
|
-
result = _value
|
112
|
-
|
113
|
-
|
110
|
+
end
|
111
|
+
result = if _value
|
112
|
+
expect($vars[var_name]).to eq(_value)
|
113
|
+
else
|
114
|
+
expect($vars[var_name]).to eq(value)
|
115
|
+
end
|
114
116
|
end
|
115
117
|
|
116
118
|
# Method to verify title
|
@@ -195,14 +197,16 @@ def verify_selected_value
|
|
195
197
|
end
|
196
198
|
|
197
199
|
def verify(var_name, value)
|
198
|
-
if (value == "true" || value == "false")
|
200
|
+
if (value == "true" || value == "false")
|
199
201
|
_value = value
|
200
|
-
|
202
|
+
else elseif (value == '0' || !!number_or_nil(value))
|
201
203
|
_value = value
|
202
|
-
|
203
|
-
result = _value
|
204
|
-
|
205
|
-
|
204
|
+
end
|
205
|
+
result = if _value
|
206
|
+
expect($vars[var_name]).to eq(_value)
|
207
|
+
else
|
208
|
+
expect($vars[var_name]).to eq(value)
|
209
|
+
end
|
206
210
|
end
|
207
211
|
|
208
212
|
# Method to find difference between images
|
@@ -76,17 +76,17 @@ def edit_content(element, text)
|
|
76
76
|
$driver.execute_script("if (arguments[0].contentEditable === 'true') {arguments[0].innerText = '#{text}'}", found_element)
|
77
77
|
end
|
78
78
|
|
79
|
-
def add_selection(label)
|
79
|
+
def add_selection(element, label)
|
80
80
|
found_element = find_object(element)
|
81
81
|
found_element.find_element(:xpath, "//option[. = '#{label}']").click
|
82
82
|
end
|
83
83
|
|
84
|
-
def remove_selection
|
84
|
+
def remove_selection(element, label)
|
85
85
|
found_element = find_object(element)
|
86
86
|
found_element.find_element(:xpath, "//option[. = '#{label}']").click
|
87
87
|
end
|
88
88
|
|
89
|
-
def select
|
89
|
+
def select(element)
|
90
90
|
found_element = find_object(element)
|
91
91
|
found_element.find_element(:xpath, "//option[. = '#{label}']").click
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itms_automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- INFOdation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|