xpage 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xpage.rb +7 -4
- 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: f1f6c5b528b102acea5e5911f9b655f5752baacd
|
4
|
+
data.tar.gz: f456cd48fd40919c778e806ca5ab2c2e9e835563
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04724cc04a9fb4fa31f333d24c9413fe58adb26638f4b0577aa0d93b14eef33add06303d2f704652f0ab1cf2214a74f9dd0bb3bc53de9765ac3bcd695a6abd01
|
7
|
+
data.tar.gz: df07cec26f96ef1a50b7e2c29670b6bd233130bf15998f0cf55fd12ec78f9993f6093b4d1d53bcdfb6a1049943512e5884cbeb3c34587922ef417851a4fb5bfc
|
data/lib/xpage.rb
CHANGED
@@ -72,12 +72,12 @@ class Xpage
|
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
75
|
-
def send_keys_xpath(xpath,
|
75
|
+
def send_keys_xpath(xpath, args)
|
76
76
|
wait_for_xpath_to_display xpath
|
77
77
|
|
78
78
|
@@retryer.do(description: 'send_keys_xpath') {
|
79
79
|
element = get_element xpath
|
80
|
-
element.send_keys
|
80
|
+
element.send_keys args
|
81
81
|
}
|
82
82
|
end
|
83
83
|
|
@@ -90,9 +90,9 @@ class Xpage
|
|
90
90
|
}
|
91
91
|
end
|
92
92
|
|
93
|
-
def set_xpath(xpath,
|
93
|
+
def set_xpath(xpath, args)
|
94
94
|
clear_xpath xpath
|
95
|
-
send_keys_xpath xpath,
|
95
|
+
send_keys_xpath xpath, args
|
96
96
|
end
|
97
97
|
|
98
98
|
def switch_iframe(xpath)
|
@@ -195,6 +195,9 @@ class Xpage
|
|
195
195
|
elsif method[0..3]=="get_" && method[-5..-1]=='_text'
|
196
196
|
extracted=method[4..-6]
|
197
197
|
@eval = "get_xpath_text(@#{extracted})"
|
198
|
+
elsif method[0..6]=="select_"
|
199
|
+
extracted=method[7..-1]
|
200
|
+
@eval = "select_xpath(@#{extracted},args[0])"
|
198
201
|
end
|
199
202
|
|
200
203
|
eval @eval
|