rwebspec 6.2.1 → 6.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe3a0a083f9ec7923ca112fdcdf56d622859e6c6
4
- data.tar.gz: 4dff3812fcf3995a6d5ca4a8182b6735dc88508e
3
+ metadata.gz: a27ff4db30042834d077b719eae1c77a1603ea85
4
+ data.tar.gz: 42ccba45e64076a1331a0a7ce4fb46f3c7d1227f
5
5
  SHA512:
6
- metadata.gz: 98b92a1d388de81b48ad5703c687f926192fbd80713f6b13458fb0eb3fd9b490aa50376410f1dac4f1c6b3c3a098e21b52c168da8feaa7a0ccdffaa94cf9c905
7
- data.tar.gz: e3ed768733939ac7d6dc918b46c995c4aec48f13c30c187d47573f4c28e6f75db5e3de1e3932178613d8f17a010069666977a027d436499a696b50a1d0d03c58
6
+ metadata.gz: 53013c743df21ca5411243e407cce857bb952c3e4a3c924d9ac27d89635173adca6be5e05c94e023bd059fc35f6450eb9de6b3640e25b596deb00d29e5ec1d9f
7
+ data.tar.gz: 25672e0dee89b391a2173b6e0caa21cbbbabc09c0936d91798d4175bde6f8bef1cdfbd4143de9cfc5f9334101aeabf117c8cfbe191e8b32c3a33f2d84e2fc02b
data/CHANGELOG CHANGED
@@ -1,6 +1,10 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 6.2.2
5
+
6
+ [Enhancement] Add browser options[:profile] from Browser and options[:prefs] for Chrome
7
+
4
8
  6.2.1
5
9
  [Fix] More compatible with TestWise 4
6
10
 
data/Rakefile CHANGED
@@ -77,7 +77,7 @@ end
77
77
  spec = Gem::Specification.new do |s|
78
78
  s.platform= Gem::Platform::RUBY
79
79
  s.name = "rwebspec"
80
- s.version = "6.2.1"
80
+ s.version = "6.2.2"
81
81
  s.summary = "Web application functional specification in Ruby"
82
82
  s.description = "Executable functional specification for web applications in RSpec syntax with Watir or Selenium WebDriver"
83
83
 
@@ -57,7 +57,11 @@ module RWebSpec
57
57
  return
58
58
  end
59
59
 
60
- @browser = Selenium::WebDriver.for :firefox
60
+ if options[:profile]
61
+ @browser = Selenium::WebDriver.for :firefox, :profile => options[:profile]
62
+ else
63
+ @browser = Selenium::WebDriver.for :firefox
64
+ end
61
65
  @browser.navigate.to base_url
62
66
  end
63
67
 
@@ -67,7 +71,11 @@ module RWebSpec
67
71
  return
68
72
  end
69
73
 
70
- @browser = Selenium::WebDriver.for :chrome
74
+ if options[:prefs]
75
+ @browser = Selenium::WebDriver.for :chrome, :prefs => options[:prefs]
76
+ else
77
+ @browser = Selenium::WebDriver.for :chrome
78
+ end
71
79
  @browser.navigate.to base_url
72
80
  end
73
81
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwebspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1
4
+ version: 6.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhimin Zhan
8
8
  autorequire: rwebspec
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-21 00:00:00.000000000 Z
11
+ date: 2016-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec