ole-qa-framework 3.16.0 → 3.17.0
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/CHANGELOG.md +8 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/ole_qa_framework/session.rb +6 -1
- data/lib/olels/pages/batch_file_list.rb +1 -1
- data/spec/common/session_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca244bfef5f9de05e60f9b493df5df75ca712de
|
4
|
+
data.tar.gz: 3467643fa4c1c5e6f1862615c817123a713ed86e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68962bb2c702fd88673e8851de59b5865d4f3b0ac56295944c427f9427cf971e367b294d9aaf9b3beb117e38c8a14e05a476d77707341cbb5498e570ea66e049
|
7
|
+
data.tar.gz: 2029090e927c73f079f3e2567b010ebe3ec72f861ee97428638e4c6e2fbcf568a264899bae674a8e883fa0f3ec31888e2b9bd9072bd7d52e331469f2120e1077
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### v3.17.0 - 2014/07/07
|
2
|
+
|
3
|
+
* Selenium WebDriver Profiles
|
4
|
+
* The OLE QA Framework Session now accepts instantiated Selenium Firefox profiles
|
5
|
+
as an optional argument.
|
6
|
+
* Fix to Batch_File_List
|
7
|
+
* link_by_filename now points to the URL, previously pointed to DIV
|
8
|
+
|
1
9
|
### v3.16.0 - 2014/06/30
|
2
10
|
|
3
11
|
* Headless gem sessions now persist across OLE_QA::Framework::Session instances
|
@@ -95,6 +95,8 @@ module OLE_QA::Framework
|
|
95
95
|
# (Set the wait period for eDoc routing to complete)
|
96
96
|
# :browser => watir_webdriver
|
97
97
|
# (Where browser is a Watir WebDriver session)
|
98
|
+
# :profile => profile
|
99
|
+
# (Where profile is a Selenium::WebDriver::Firefox::Profile instance)
|
98
100
|
#
|
99
101
|
# To configure the default options, edit
|
100
102
|
# config/options.yml
|
@@ -132,7 +134,10 @@ module OLE_QA::Framework
|
|
132
134
|
if browser_given
|
133
135
|
@browser = @options[:browser]
|
134
136
|
else
|
135
|
-
|
137
|
+
# Use a Firefox profile, if given.
|
138
|
+
@options.has_key?(:profile) ?
|
139
|
+
@browser = Watir::Browser.new(:firefox, :profile => @options[:profile]) :
|
140
|
+
@browser = Watir::Browser.new(:firefox)
|
136
141
|
@browser.driver.manage.timeouts.implicit_wait = @options[:implicit_wait]
|
137
142
|
end
|
138
143
|
|
@@ -36,7 +36,7 @@ module OLE_QA::Framework::OLELS
|
|
36
36
|
def set_functions
|
37
37
|
super
|
38
38
|
# Return the link to a file by searching for the given string or regular expression in the filename.
|
39
|
-
function(:link_by_filename) {|which| b.div(:class => 'uif-linkField',:id => /fileList_line\d+/,:text => which)}
|
39
|
+
function(:link_by_filename) {|which| b.div(:class => 'uif-linkField',:id => /fileList_line\d+/,:text => which).a}
|
40
40
|
# Return whether the link to a file with the given text or regular expression is present.
|
41
41
|
function(:link_by_filename?) {|which| link_by_filename(which).present?}
|
42
42
|
# Return how many total entries exist for this staging area directory.
|
data/spec/common/session_spec.rb
CHANGED
@@ -52,4 +52,11 @@ describe 'An OLE QA Framework Session' do
|
|
52
52
|
expect(@ole.options).to be_a(Hash)
|
53
53
|
end
|
54
54
|
end
|
55
|
+
|
56
|
+
it 'with a Selenium Firefox profile' do
|
57
|
+
profile = Selenium::WebDriver::Firefox::Profile.new
|
58
|
+
ole = OLE_QA::Framework::Session.new(:profile => profile)
|
59
|
+
ole.quit unless ole.nil?
|
60
|
+
expect(ole).to be_a(OLE_QA::Framework::Session)
|
61
|
+
end
|
55
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ole-qa-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jain Waldrip
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|