Ifd_Automation 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 7bba46e8532c951f2e4a226a4a195fdb6630cd49
4
- data.tar.gz: 4365f8df71adc29acd6ad7f65c924ccc5e4da505
3
+ metadata.gz: d22e4b55211c68e04250579388ed907f1b7fe376
4
+ data.tar.gz: 053d7d2a18f140c94f85f70503e516cf5866ebda
5
5
  SHA512:
6
- metadata.gz: 60a5b0afb0f72fda83e8d1b80fa6622ceb7c00c332ab281f5ba10a01276788bac63b913553680ed28e63e4e38cacc8f8474b9d405b79be03b371c9734fd91f70
7
- data.tar.gz: c5b528ce30f902861e2dd662dfa966d93e2f98bf9699aa9a848923d491c4b3b32f213ce04b7a0847e1cd4d08c77b7908c7d8732d4b4336eda1da9fb9e5576a05
6
+ metadata.gz: 1f82264d59320f62a5b822a9b1654e8ad7d688fd608bae696079cb7adb1b13f02642fbb78cc0b770bf7953b8d5a2cbb35516f75f8582ef727c568b85207a2007
7
+ data.tar.gz: 3a0d548f4e97224afc3f34ab21338072240983b62b4d6826e87bd4aab3d9980f18a8d221303ac19cce3116297ce486865115b273abfca1f28d0e0444bbb57d63
@@ -2,19 +2,19 @@
2
2
  require_relative 'methods/required_files'
3
3
 
4
4
  Then(/^I accept pop-up alert$/) do
5
- handle_alert(accept)
5
+ handle_alert('accept')
6
6
  end
7
7
 
8
8
  Then(/^I dismiss pop-up alert$/) do
9
- handle_alert(dismiss)
9
+ handle_alert('dismiss')
10
10
  end
11
11
 
12
12
  And /^I focus in new open page$/ do
13
- switch_to_windows(last)
13
+ switch_to_windows('last')
14
14
  end
15
15
 
16
16
  And /^I focus in previous page$/ do
17
- switch_to_windows(first)
17
+ switch_to_windows('first')
18
18
  end
19
19
 
20
20
  And /^I close current windows$/ do
@@ -1,7 +1,7 @@
1
1
  require_relative 'required_files'
2
2
 
3
3
  def handle_alert(decision)
4
- if decision == "accept"
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 == "last"
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)
@@ -1,5 +1,5 @@
1
1
  module Ifd
2
2
  module Automation
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Ifd_Automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anh Pham