oct-automation-utilities 0.0.5 → 0.0.6

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: d245b19d520cd401544b61e58aee9b1f3d55d292
4
- data.tar.gz: a8117cb864a0acbf05ee1c7447fb72f12589bf5f
3
+ metadata.gz: 5a0790b6ff521d351847e75d7da6a009e7a20b85
4
+ data.tar.gz: e03755c7f18396811b72639123341d4cfa846647
5
5
  SHA512:
6
- metadata.gz: ab9ab22300278c0096ad4f86484b3fa2b93148bfc62fc2fe2966767587f68ffd4145a3e5f7d4be48c933eb9f3226f188763d4b038976ee31acb3f9aa1d538cdd
7
- data.tar.gz: b7a0a5e9d85eea581225079fa765e438da173d88f0a7560be775960fd7b564039881b08a8a855aaefff950928a858a0c06a3b13cd5769a1880aea11809ee625a
6
+ metadata.gz: 13d73b0efcce1e9640c058099feaeaffded75bf2268fa8a241f1d89e5c9525451f05a871175c5405fa15916f5a156f9d1552fbdfa7b880d09884920033bf63eb
7
+ data.tar.gz: 520c63f491dba972a7b45baff6b8c75ca4dd6338f8ab9f2425d8d48230593e4037b73dd3158215b37f45765666d85111e98ccba1a6ffa05e9dbc51dfe2efb051
@@ -137,8 +137,11 @@ module OctAutomationUtilities
137
137
  end
138
138
 
139
139
  def close_current_window
140
- self.switchtonewlyopenedwindow
141
- page.execute_script "window.close()"
140
+ secondwindow = windows[page.driver.browser.window_handles.length - 1]
141
+ page.switch_to_window(window[0])
142
+ within_window(secondwindow) do
143
+ page.current_window.close
144
+ end
142
145
  end
143
146
 
144
147
  def close_all_windows
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oct-automation-utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Tracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-07-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Utilities class that performs common automation functionality that can
14
14
  be used over multiple projects