oct-automation-utilities 0.0.13 → 0.0.15

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: 64d91e6b330ff76342158627923ecbad085696ef
4
- data.tar.gz: 6ee10d6c4d17c5f8cf27cdca279ffa1c866afb51
3
+ metadata.gz: 29300b7e086ccdad0e8d3b553bbe86c53166cd3f
4
+ data.tar.gz: aed79b83d69def70b1fce011f596d8fa480ec648
5
5
  SHA512:
6
- metadata.gz: 9be3a80a0d1ff3a7247979f5e986313c2e1e43104dc29f9b60454e6e63b430d4792ec202e100e27a094a3337ef5c6c9af6ce8f8227817cdd82973fb1307a4ac3
7
- data.tar.gz: 1f9def856cccdcf5736a5d45940114181a1d81b71e158ad17697dab0f9b46348869bfb523abfde66a59ea9db81a78aa929c9a6d2300e705c71fe448b05f1fba3
6
+ metadata.gz: ed638ca15bf52e0dcefb6d47336ebd6870660b803ae92edc02ba13501c3c9d4c5bbe6ed4df99695dc048f439f89aeac97dfd13012fd0ef95b1d899f502687196
7
+ data.tar.gz: 194b75a05bb8c3aea83f82d3699df356f288cdd6ff4a60f3e67cb14462a5f3e12b7bcf4e2c45bfe54ab748848947589e4e1d1799576466bfc3fd36c332a62215
@@ -96,7 +96,7 @@ module OctAutomationUtilities
96
96
  if content != nil
97
97
  self.obj_expected_page_content = content
98
98
  end
99
- expect(page).to have_content(self.obj_expected_page_content)
99
+ expect(page.body).to have_content(self.obj_expected_page_content)
100
100
  self.capture_screen_shot("Verify content - #{self.obj_expected_page_content}")
101
101
  end
102
102
 
@@ -249,18 +249,11 @@ module OctAutomationUtilities
249
249
  #Desc: Verifies content of the text and returns true or false. This method is different from Verify_page_content. Verify_page_content fails and exits test if
250
250
  #expected content is not visible. This method returns false when content is not visible and continue to the next step
251
251
  def is_content_visible(content)
252
- if content != nil
253
- self.obj_expected_page_content = content
254
- end
255
- return page.has_content?(self.obj_expected_page_content)
252
+ page.body.include?(content)
256
253
  end
257
254
 
258
255
  def is_checked(attribute = 'name', obj)
259
- if page.all("[#{attribute}^='#{obj}'][checked]").count > 0
260
- return true
261
- else
262
- return false
263
- end
256
+ page.find("[#{attribute}^='#{obj}']").checked?
264
257
  end
265
258
 
266
259
  def check(attribute = 'name', obj)
@@ -395,12 +388,6 @@ module OctAutomationUtilities
395
388
  page.driver.browser.switch_to.window(page.driver.browser.window_handles.last)
396
389
  end
397
390
 
398
- def exit_prod_test
399
- @log.info('Script only runs in ACP or DEV! - Warning')
400
- puts 'Script only runs in ACP or DEV!'
401
- exit!
402
- end
403
-
404
391
  end
405
392
 
406
393
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oct-automation-utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Tracy
8
+ - Nick Robertson, Sam Vaugh, Berry North
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
12
+ date: 2014-09-18 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: Utilities class that performs common automation functionality that can
14
15
  be used over multiple projects
@@ -37,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
38
  version: '0'
38
39
  requirements: []
39
40
  rubyforge_project:
40
- rubygems_version: 2.2.2
41
+ rubygems_version: 2.3.0
41
42
  signing_key:
42
43
  specification_version: 4
43
44
  summary: Utilities for Automation Framework