Ifd_Automation 0.1.5 → 0.1.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bba46e8532c951f2e4a226a4a195fdb6630cd49
|
4
|
+
data.tar.gz: 4365f8df71adc29acd6ad7f65c924ccc5e4da505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a5b0afb0f72fda83e8d1b80fa6622ceb7c00c332ab281f5ba10a01276788bac63b913553680ed28e63e4e38cacc8f8474b9d405b79be03b371c9734fd91f70
|
7
|
+
data.tar.gz: c5b528ce30f902861e2dd662dfa966d93e2f98bf9699aa9a848923d491c4b3b32f213ce04b7a0847e1cd4d08c77b7908c7d8732d4b4336eda1da9fb9e5576a05
|
@@ -2,11 +2,11 @@
|
|
2
2
|
require_relative 'methods/required_files'
|
3
3
|
|
4
4
|
Then(/^I accept pop-up alert$/) do
|
5
|
-
handle_alert(
|
5
|
+
handle_alert(accept)
|
6
6
|
end
|
7
7
|
|
8
8
|
Then(/^I dismiss pop-up alert$/) do
|
9
|
-
handle_alert(
|
9
|
+
handle_alert(dismiss)
|
10
10
|
end
|
11
11
|
|
12
12
|
And /^I focus in new open page$/ do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'required_files'
|
2
2
|
|
3
3
|
def handle_alert(decision)
|
4
|
-
if decision ==
|
4
|
+
if decision == "accept"
|
5
5
|
page.driver.browser.switch_to.alert.accept
|
6
6
|
else
|
7
7
|
page.driver.browser.switch_to.alert.dismiss
|
@@ -9,7 +9,7 @@ def handle_alert(decision)
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def switch_to_windows(decision)
|
12
|
-
if decision ==
|
12
|
+
if decision == "last"
|
13
13
|
page.driver.browser.switch_to.window(page.driver.browser.window_handles.last)
|
14
14
|
else
|
15
15
|
page.driver.browser.switch_to.window(page.driver.browser.window_handles.first)
|
@@ -22,7 +22,7 @@ def close_windows
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def get_browser_back
|
25
|
-
page.evaluate_script(
|
25
|
+
page.evaluate_script("window.history.back()")
|
26
26
|
end
|
27
27
|
|
28
28
|
def refresh_page
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ifd_Automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anh Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|