ole-qa-framework 2.7.2 → 2.7.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.
@@ -1,3 +1,9 @@
1
+ ### v2.7.3 - 2013/10/11
2
+
3
+ * Page (base class)
4
+ * .wait_for_page_to_load
5
+ * Added wait for loading_message element to disappear if present
6
+
1
7
  ### v2.7.2 - 2013/10/10
2
8
 
3
9
  * OLEFS - Invoice Document
@@ -42,7 +42,7 @@ module OLE_QA::Framework
42
42
  # an array of the symbols used to call those methods.
43
43
  def open(url = @url)
44
44
  @browser.goto(url)
45
- @wait_on.each { |element| wait_for_element(element) } if defined?(wait_for_elements)
45
+ wait_for_page_to_load
46
46
  end
47
47
 
48
48
  # Define this method on a subclass. Add element symbols to the @wait_on array.
@@ -67,6 +67,7 @@ module OLE_QA::Framework
67
67
  # to wait for all required elements on that page to load.
68
68
  def wait_for_page_to_load
69
69
  @wait_on.each { |element| wait_for_element(element) }
70
+ loading_message.wait_while_present if loading_message.present?
70
71
  end
71
72
 
72
73
  # Set screen elements common to most or all pages across the OLE interface.
@@ -78,7 +79,7 @@ module OLE_QA::Framework
78
79
  element(:login_button) {@browser.input(:class => 'go', :value => 'Login')}
79
80
  element(:logout_button) {@browser.input(:class => 'go', :value => 'Logout')}
80
81
  element(:login_confirmation) {@browser.div(:id => 'login-info').strong(:text => /Impersonating User\:/)}
81
- element(:loading_message) {@browser.body.div.h1.img(:alt => 'Loading...')}
82
+ element(:loading_message) {@browser.img(:alt => 'Loading...')}
82
83
  end
83
84
 
84
85
  # Set functions common to most or all pages across the OLE interface.
@@ -15,6 +15,6 @@
15
15
  module OLE_QA
16
16
  module Framework
17
17
  # The version number for this project.
18
- VERSION = '2.7.2'
18
+ VERSION = '2.7.3'
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ole-qa-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.2
4
+ version: 2.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-10 00:00:00.000000000 Z
12
+ date: 2013-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler