oct-automation-utilities 0.0.2 → 0.0.3

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: 985599e41ecc3de36f5fce0bfa343a58d9a5e307
4
- data.tar.gz: 7afe2ddb1df4f4918be3cc05ca4148d097b1197f
3
+ metadata.gz: 12d567176d8daf5187838689511d426426d05022
4
+ data.tar.gz: 3db9bd82449de361060f774beee48235f0f4054d
5
5
  SHA512:
6
- metadata.gz: 4fe597464838ed53760e5e45868d85ca0a3f790aa63d7d50670b924e99ec9544d579c9bcb45e0f0ecb43f03c0496f6403928b1dd087096cea39b4ea61c0253f4
7
- data.tar.gz: 49642f9c7ed41e9c96b4e2b4e65aa93d357fa6c1b472b8a1383f9c9fc955af525ba0e9eeef13dfcc6741c6c4c418431764936cacad564b98c2d53720cf35af51
6
+ metadata.gz: 8f165449f5d53dc40936cc199c295ce8366db690a415cd696a1a66c2aba5953bd374b8717fe5f8c13b4907f9868fa4e27839082c939d05f8685c2a7aa9d7ac5c
7
+ data.tar.gz: ef031fe76e74b549095ef34ffa6dee980ce868941d92d4595b4671e312a459541c8c4555a712f96063524e89af77fc90e540d9e8cd582891fe7570c31393c198
@@ -303,27 +303,6 @@ module OctAutomationUtilities
303
303
  end
304
304
  end
305
305
 
306
- def read_servers(app_name)
307
- #loading milestones objects yaml file
308
- objs = YAML.load(File.read('servers_map.yml'))
309
- objects = Hash.new
310
-
311
- #parsng yaml and storing the objects in the hash
312
- objs.each_value do |objects_base|
313
- objects_base.each do |envs|
314
- envs.each do |areas|
315
- if envs[0].upcase == @config.env.upcase #Comparing area type
316
- envs[1].each do |areas|
317
- if areas[0] == app_name
318
- return areas[1]
319
- end
320
- end
321
- end
322
- end
323
- end
324
- end
325
- end
326
-
327
306
  # compare_strings compares two strings, as when verifying on-screen content.
328
307
  # Logs results, throws exception when false.
329
308
  # Returns true when strings match, false when they do not.
@@ -433,6 +412,11 @@ module OctAutomationUtilities
433
412
  return "#{month}/#{day}/#{year}"
434
413
  end
435
414
 
415
+ def switchtonewlyopenedwindow
416
+ new_window = page.driver.browser.window_handles.last
417
+ page.driver.browser.switch_to.window(new_window)
418
+ end
419
+
436
420
  end
437
421
 
438
422
  end
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.2
4
+ version: 0.0.3
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-01 00:00:00.000000000 Z
11
+ date: 2014-07-03 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