oct-automation-utilities 0.0.7 → 0.0.8

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: 88fe7f39a1118aa2502361c6d3ec75f5d5fc8ed5
4
- data.tar.gz: 0e46a4210fdec6400410467be3ecca6b88882c6f
3
+ metadata.gz: c26edaf1f6dcfa2872a0a4fb4c764a2631a7fb1a
4
+ data.tar.gz: 1e9d52d31d46fe9c81c6e13e6c6f23a3f9f2c399
5
5
  SHA512:
6
- metadata.gz: 563920cca50cea9d295337081cd28a03f1f9122d70afa8d5eff3c834b3dc84333a1c7fca7bc364add815e2c3235d110d494c120ba89bd0f52a320353fad8632a
7
- data.tar.gz: dbd7305a81183ba981653be4dba9d57bf6ac7354406735f5057ba4acdfe1b05bf82b0e3c7e19580de01c2ada6b4ae96772be7cf868424deb5d8bc8991cda6ddc
6
+ metadata.gz: d71becab7bff39f0e2f4300519a012767d06366946487b089e2a552535ae751582b9b33cf0f2750d02fe996b3312507e9d4e160bb9668b0791da862b0a8602a2
7
+ data.tar.gz: afe2fc587a31bc3aca1b3c8be7b686ab5b4dae0f69b1c00a02f556e258f0f17a5bdd7e7b2afc283d0e2a5bf923d60bce07e4a1d91f379e1f1c3568ba48bdb310
@@ -103,6 +103,7 @@ module OctAutomationUtilities
103
103
  begin
104
104
  if self.capture_screen == 'true' or status == 'fail'
105
105
  #used to sync the page so it can capture the screen shot.
106
+ puts "hi Aaron!!!!!!!!!!!!!!!!!!!!"
106
107
  page.has_no_title?('foo')
107
108
  msgx = "#{$test}/#{$step_num.to_s}-#{msg.to_s}"
108
109
  if status == 'fail'
@@ -125,7 +126,6 @@ module OctAutomationUtilities
125
126
  end
126
127
 
127
128
  def switch_windows(window_title)
128
- #Usage Example: page.utilities.switch_windows('O.C. Tanner e-ClientLink')
129
129
  page.within_window(window_title)
130
130
  end
131
131
 
@@ -142,13 +142,14 @@ module OctAutomationUtilities
142
142
  within_window(secondwindow) do
143
143
  page.current_window.close
144
144
  end
145
+ self.switchtonewlyopenedwindow
145
146
  end
146
147
 
147
148
  def close_all_windows
148
149
  current_windows = page.driver.browser.window_handles
149
150
  current_windows.each do |window_name|
150
151
  page.within_window window_name do
151
- page.execute_script "window.close()"
152
+ page.current_window.close
152
153
  end
153
154
  end
154
155
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oct-automation-utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Tracy