selenium-chrome-mavericks 2.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +55 -0
- data/Rakefile +1 -0
- data/lib/selenium/chrome/mavericks.rb +22 -0
- data/lib/selenium/chrome/mavericks/version.rb +7 -0
- data/selenium-chrome-mavericks.gemspec +25 -0
- metadata +96 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 07b3717a513923f3f0dd4d741d080eb44bd7eb6b
|
4
|
+
data.tar.gz: b5a861b3c69dd6b1685ed7f923e56c9c5a699e7b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a4a0553dbf9cec06fde0b82c6e280953a4f64fcdc4e2b55421c1676078ed0481fb344ea59aa708b1f5994d2e309f63fff7a05df65fbfb31e54bc6d0d3e838f51
|
7
|
+
data.tar.gz: 2ee4c51ba8798a8986cbbe89161e6efae9bcf151dff045a0d401fa0fcee32956ffac631595ed1fbf04d99b34b7778d28323eb28c530a8aef3c2e11bbd3f80a56
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Keyvan Fatehi
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Selenium::Chrome::Mavericks
|
2
|
+
|
3
|
+
I made this gem because selenium-webdriver, from capybara anyway, won't
|
4
|
+
honor my passing of the argument "--verbose", which is the workaround to
|
5
|
+
getting chromedriver working on Mavericks.
|
6
|
+
|
7
|
+
In addition, the latest chromedriver release (2.5) does not fix the bug
|
8
|
+
that necessitated the --verbose workaround. I'm fed up and want to be
|
9
|
+
able to run Cucumber on my Mavericks computer, so here's a gem that
|
10
|
+
monkeypatches the selenium-webdriver 2.37.0
|
11
|
+
|
12
|
+
This gem depends on selenium-webdriver and is locked at that version --
|
13
|
+
as such you may replace that gem with this gem. This gem will never be
|
14
|
+
updated unless, for some strange reason, things get worse... so consider
|
15
|
+
it a temporary / throwaway.
|
16
|
+
|
17
|
+
Track the bug on selenium's bug tracker: https://code.google.com/p/chromedriver/issues/detail?id=599
|
18
|
+
|
19
|
+
## Installation
|
20
|
+
|
21
|
+
Add this line to your application's Gemfile:
|
22
|
+
|
23
|
+
gem 'selenium-chrome-mavericks'
|
24
|
+
|
25
|
+
And then execute:
|
26
|
+
|
27
|
+
$ bundle
|
28
|
+
|
29
|
+
Or install it yourself as:
|
30
|
+
|
31
|
+
$ gem install selenium-chrome-mavericks
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
Somewhere before you begin using selenium-webdriver, add this code:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
require 'selenium/chrome/mavericks'
|
39
|
+
```
|
40
|
+
|
41
|
+
For example, at the top of your env.rb, if using Cucumber.
|
42
|
+
|
43
|
+
It has now patched the correct initializer and will pass --verbose to
|
44
|
+
the child process, which for some reason makes chromedriver work right
|
45
|
+
on Mavericks...
|
46
|
+
|
47
|
+
Enjoy.
|
48
|
+
|
49
|
+
## Contributing
|
50
|
+
|
51
|
+
1. Fork it
|
52
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
53
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
54
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
55
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require "selenium/chrome/mavericks/version"
|
2
|
+
require 'selenium-webdriver'
|
3
|
+
module Selenium
|
4
|
+
module WebDriver
|
5
|
+
module Chrome
|
6
|
+
class Service
|
7
|
+
def initialize(executable_path, port, *extra_args)
|
8
|
+
@uri = URI.parse "http://#{Platform.localhost}:#{port}"
|
9
|
+
server_command = [executable_path, "--port=#{port}", *extra_args]
|
10
|
+
|
11
|
+
# Look I can't wait for a fix to chromedriver or selenium-webdriver's (or capybara's?) arg passing
|
12
|
+
server_command.push('--verbose') # so just work in Mavericks already!!!!!!!! kthx
|
13
|
+
|
14
|
+
@process = ChildProcess.build(*server_command)
|
15
|
+
@socket_poller = SocketPoller.new Platform.localhost, port, START_TIMEOUT
|
16
|
+
|
17
|
+
@process.io.inherit! if $DEBUG == true
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'selenium/chrome/mavericks/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "selenium-chrome-mavericks"
|
8
|
+
spec.version = Selenium::Chrome::Mavericks::VERSION
|
9
|
+
spec.authors = ["Keyvan Fatehi"]
|
10
|
+
spec.email = ["keyvanfatehi@gmail.com"]
|
11
|
+
spec.description = %q{Monkeypatches selenium-webdriver 2.37.0 to pass --verbose to chromedriver so it works in Mavericks}
|
12
|
+
spec.summary = %q{Monkeypatches selenium-webdriver 2.37.0 to pass --verbose to chromedriver so it works in Mavericks}
|
13
|
+
spec.homepage = "https://github.com/keyvanfatehi/selenium-chrome-mavericks"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency 'selenium-webdriver', '2.37.0'
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: selenium-chrome-mavericks
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.37.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Keyvan Fatehi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: selenium-webdriver
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.37.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.37.0
|
55
|
+
description: Monkeypatches selenium-webdriver 2.37.0 to pass --verbose to chromedriver
|
56
|
+
so it works in Mavericks
|
57
|
+
email:
|
58
|
+
- keyvanfatehi@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- .gitignore
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- lib/selenium/chrome/mavericks.rb
|
69
|
+
- lib/selenium/chrome/mavericks/version.rb
|
70
|
+
- selenium-chrome-mavericks.gemspec
|
71
|
+
homepage: https://github.com/keyvanfatehi/selenium-chrome-mavericks
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.0.6
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Monkeypatches selenium-webdriver 2.37.0 to pass --verbose to chromedriver
|
95
|
+
so it works in Mavericks
|
96
|
+
test_files: []
|