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: 450b7abaab5c5afe5b513edf453af297a0e8d987
4
- data.tar.gz: a5a47b0dc93f2bd3c027658e1a73515664fac457
3
+ metadata.gz: 7bba46e8532c951f2e4a226a4a195fdb6630cd49
4
+ data.tar.gz: 4365f8df71adc29acd6ad7f65c924ccc5e4da505
5
5
  SHA512:
6
- metadata.gz: 2a8f2fe476bd8a9c0c2ff47f3d2cb7712d2a4fa213bef840ba213833c07996405dfdc2502854a20fdc2aefbad7a16bcb004a2df2ed2ee34f01a5ba50ce4fa81e
7
- data.tar.gz: a347f743072190ce6bc43b75d3c0abf500498f56f265147b8ebf7bf0267bc92bf52ff1c45076d461d4e86178f1b9c68d7d542d9df071cfa7d47ba8c0524c9b34
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('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
@@ -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)
@@ -22,7 +22,7 @@ def close_windows
22
22
  end
23
23
 
24
24
  def get_browser_back
25
- page.evaluate_script('window.history.back()')
25
+ page.evaluate_script("window.history.back()")
26
26
  end
27
27
 
28
28
  def refresh_page
@@ -1,5 +1,5 @@
1
1
  module Ifd
2
2
  module Automation
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
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.5
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-26 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber