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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e9fa06f5b7abbb5cf40e06832452a6c43601bc5
4
- data.tar.gz: 449a85fb5a93a20c259407f3cdf4aafc61e0fa53
3
+ metadata.gz: bca244bfef5f9de05e60f9b493df5df75ca712de
4
+ data.tar.gz: 3467643fa4c1c5e6f1862615c817123a713ed86e
5
5
  SHA512:
6
- metadata.gz: de5dc1234bf216be9631732e3cf07b53fd0b06bddf84f36ba21a25f427ff02cfd1f938b6ba00081aa39f9b2234caeba6fb1b58b7bb1deb894407651636bda2bb
7
- data.tar.gz: 7220eabbaaf62b2ba61acc3d695fb24d296606f068c8278ea0a5b9d7cae2ecc2e3b73a1301f3c7b860dbf233de179f4103a88b8508fab14e47d2624ef786c044
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
@@ -15,6 +15,6 @@
15
15
  module OLE_QA
16
16
  module Framework
17
17
  # The version number for this project.
18
- VERSION = '3.16.0'
18
+ VERSION = '3.17.0'
19
19
  end
20
20
  end
@@ -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
- @browser = Watir::Browser.new :firefox
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.
@@ -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.16.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler