gless 2.0.0 → 2.1.0

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: 8b15a2376bbf1adff76a9ac467fee021e9f05e85
4
- data.tar.gz: 3dc288ba9043ca99d99d434a1602364c4ed243e3
3
+ metadata.gz: a5e8c9d821fa58dbac813938eb4bc0f48df3ac05
4
+ data.tar.gz: 2a0ed6670fa38288d3fd68c6d80a69771605cab4
5
5
  SHA512:
6
- metadata.gz: a9b8e9ce610408ddd67b669ec47c44a6b1340b5ab01ce886bcaa168cf64b29c3edc2306894daf5041708ee225ff4695f6e20b6edcb9351d76c35979f891d8216
7
- data.tar.gz: 75169a727bdbe88082f88b4bebf8c1263765fc36bc6145095c4bf9f42710999fa3103544402f75a81e3d43a3dced7ccd92f3662651eb957869fd7935751e1c4b
6
+ metadata.gz: b0877a55cd0235541a072eb379eecd4a634bb429aab2f433dafd956ab2cd19fc0a5b3d3eee001859144163911425f6ff652c9a2d94fad10a0a3abea639b59fbf
7
+ data.tar.gz: e41f940f2f3c1840f8850f29ea1c8df39d50ad61dfbe7ad0713a1f2c0b1d289ad297474288f1f89cf4a7c2f49d57e9ad4d2e2639889fbfaf08b7c13e9611f884
@@ -6,6 +6,7 @@
6
6
  :type: remote # Local or remote
7
7
  :browser: chrome # Which browser to use; "ie", "chrome", and "firefox" are definitely valid, there may be others
8
8
  :port: 4444 # If remote, port to connect to the selenium server, otherwise ignored
9
+ :timeout: 600 # Timeout on a per-operation basis
9
10
  # These options would normally only be used with something like SauceLabs
10
11
  #
11
12
  # :url: "http://rlpowell:[snip]@ondemand.saucelabs.com:80/wd/hub" # The URL Sauce gives you
data/lib/gless.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  # project.
7
7
  module Gless
8
8
  # The current version number.
9
- VERSION = '2.0.0'
9
+ VERSION = '2.1.0'
10
10
 
11
11
  # Sets up the config, logger and browser instances, the ordering
12
12
  # of which is slightly tricky. If a block is given, the config, after being
data/lib/gless/browser.rb CHANGED
@@ -58,7 +58,10 @@ module Gless
58
58
  url = "http://127.0.0.1:#{port}/wd/hub"
59
59
  end
60
60
 
61
- @browser = Watir::Browser.new(:remote, :url => url, :desired_capabilities => capabilities)
61
+ client = Selenium::WebDriver::Remote::Http::Default.new
62
+ client.timeout = config.get_default( 600, :global, :browser, :timeout )
63
+
64
+ @browser = Watir::Browser.new(:remote, :url => url, :desired_capabilities => capabilities, :http_client => client)
62
65
  else
63
66
  @logger.info "Launching local browser #{browser}"
64
67
  @browser = Watir::Browser.new browser
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Lee Powell
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-27 00:00:00.000000000 Z
12
+ date: 2014-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec