webpilot 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.md +26 -0
- data/README.md +65 -0
- data/webpilot.gemspec +18 -0
- metadata +49 -2
data/LICENSE.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Copyright (c) 2012 by the University of Arizona.
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are
|
6
|
+
met:
|
7
|
+
|
8
|
+
* Redistributions of source code must retain the above copyright
|
9
|
+
notice, this list of conditions and the following disclaimer.
|
10
|
+
|
11
|
+
* Redistributions in binary form must reproduce the above copyright
|
12
|
+
notice, this list of conditions and the following disclaimer in
|
13
|
+
the documentation and/or other materials provided with the
|
14
|
+
distribution.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
WebPilot
|
2
|
+
=====
|
3
|
+
|
4
|
+
Introduction
|
5
|
+
------------
|
6
|
+
|
7
|
+
WebPilot is a wrapper for `Selenium::WebDriver` that makes the library more ruby-esque. Rather than inherit from `Selenium::WebDriver`, an instance of `WebPilot` has a `Selenium::WebDriver` instance as an attribute. It serves other functions rather than just extending `Selenium::WebDriver`, so it also wraps a `Logger`, saves screenshots, etc.
|
8
|
+
|
9
|
+
Compatibility
|
10
|
+
-------------
|
11
|
+
|
12
|
+
WebPilot is tested on the following platforms:
|
13
|
+
|
14
|
+
* **ruby-1.9.3** on **Linux**
|
15
|
+
|
16
|
+
That is all.
|
17
|
+
|
18
|
+
Roadmap
|
19
|
+
-------
|
20
|
+
|
21
|
+
* Way More Tests :P
|
22
|
+
* screenshot functionality
|
23
|
+
* All of the Approximations from KaikiFS...
|
24
|
+
|
25
|
+
Installation
|
26
|
+
------------
|
27
|
+
|
28
|
+
gem install webpilot
|
29
|
+
|
30
|
+
Contributing
|
31
|
+
------------
|
32
|
+
|
33
|
+
Please do! Contributing is easy. Please read the CONTRIBUTING.md document for more info. ... When it exists.
|
34
|
+
|
35
|
+
Usage
|
36
|
+
-----
|
37
|
+
|
38
|
+
WebPilot is meant to be used primarily as a helper for using Selenium with Cucumber, so that your step definitions are as short as possible, and never have to rescue from a Selenium exception.
|
39
|
+
|
40
|
+
require 'webpilot'
|
41
|
+
pilot = WebPilot.new(options)
|
42
|
+
|
43
|
+
### `WebPilot.new` options
|
44
|
+
|
45
|
+
* `:browser` should be one of the browsers supported by `[WebDriver.for](http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver.html#for-class_method)`
|
46
|
+
* `:is_headless` should be a boolean, indicating whether to use `Selenium::WebDriver` should run under a headless X display, using the [headless](https://github.com/leonid-shevtsov/headless) gem.
|
47
|
+
* `:logger` can be one of several things:
|
48
|
+
* `nil` will instantiate a logger that writes to `/dev/null`
|
49
|
+
* `"STDOUT"` will instantiate a logger to `STDOUT`
|
50
|
+
* `"STDERR"` will instantiate a logger to `STDERR`
|
51
|
+
* an object that appears to be a `Logger` will then be assigned to `@logger`, not instantiating anything new
|
52
|
+
* `:pause_time` should be a Numeric (Fixnum or Float), representing the number of seconds that a call to `#pause` will pause for.
|
53
|
+
* `:screenshot_dir` is... not quite used yet. Stay tuned!
|
54
|
+
* `:timeout` is the default number of seconds that a Wait object should wait for.
|
55
|
+
|
56
|
+
Versioning
|
57
|
+
----------
|
58
|
+
|
59
|
+
WebPilot follows [Semantic Versioning](http://semver.org/) (at least approximately) version 2.0.0-rc1.
|
60
|
+
|
61
|
+
License
|
62
|
+
-------
|
63
|
+
|
64
|
+
Please see [LICENSE.md](LICENSE.md).
|
65
|
+
|
data/webpilot.gemspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
$:.push File.expand_path('../lib', __FILE__)
|
2
|
+
require 'webpilot/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'webpilot'
|
6
|
+
s.version = WebPilot::Version
|
7
|
+
s.authors = ['Sam Rawlins']
|
8
|
+
s.email = ['katt-core@listserv.arizona.edu']
|
9
|
+
s.summary = %q{A facade for Selenium::WebDriver to make the library more ruby-esque.}
|
10
|
+
s.description = %q{WebPilot is a wrapper for Selenium::WebDriver that makes the library more ruby-esque. Rather than inherit from Selenium::WebDriver, an instance of WebPilot has a Selenium::WebDriver as an attribute. It serves other functions rather than just extending Selenium::WebDriver, so it also wraps a logger, saves screenshots, etc.}
|
11
|
+
|
12
|
+
s.files = `git ls-files`.split("\n")
|
13
|
+
s.require_paths = ['lib']
|
14
|
+
s.add_dependency 'headless'
|
15
|
+
s.add_dependency 'log4r'
|
16
|
+
s.add_dependency 'selenium-webdriver', '~> 2'
|
17
|
+
s.add_development_dependency 'rspec', '~> 2.8'
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpilot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,51 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
date: 2012-03-26 00:00:00.000000000 Z
|
13
|
-
dependencies:
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: headless
|
16
|
+
requirement: &9908980 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *9908980
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: log4r
|
27
|
+
requirement: &9908560 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *9908560
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: selenium-webdriver
|
38
|
+
requirement: &9908060 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *9908060
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: &9907560 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.8'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *9907560
|
14
58
|
description: WebPilot is a wrapper for Selenium::WebDriver that makes the library
|
15
59
|
more ruby-esque. Rather than inherit from Selenium::WebDriver, an instance of WebPilot
|
16
60
|
has a Selenium::WebDriver as an attribute. It serves other functions rather than
|
@@ -24,11 +68,14 @@ extra_rdoc_files: []
|
|
24
68
|
files:
|
25
69
|
- .gitignore
|
26
70
|
- Gemfile
|
71
|
+
- LICENSE.md
|
72
|
+
- README.md
|
27
73
|
- Rakefile
|
28
74
|
- lib/webpilot.rb
|
29
75
|
- spec/basic_spec.rb
|
30
76
|
- spec/browsers_spec.rb
|
31
77
|
- spec/spec_helper.rb
|
78
|
+
- webpilot.gemspec
|
32
79
|
homepage:
|
33
80
|
licenses: []
|
34
81
|
post_install_message:
|