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.
- data/CHANGELOG.md +6 -0
- data/lib/common/page.rb +3 -2
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib/common/page.rb
CHANGED
@@ -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
|
-
|
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.
|
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.
|
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.
|
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-
|
12
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|