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 +4 -4
- data/lib/oct-automation-utilities.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c26edaf1f6dcfa2872a0a4fb4c764a2631a7fb1a
|
4
|
+
data.tar.gz: 1e9d52d31d46fe9c81c6e13e6c6f23a3f9f2c399
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
152
|
+
page.current_window.close
|
152
153
|
end
|
153
154
|
end
|
154
155
|
end
|