selenium-launcher 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.txt +2 -2
- data/lib/selenium-launcher/version.rb +1 -1
- data/selenium-launcher.gemspec +2 -2
- data/spec/launcher_local_spec.rb +3 -2
- data/spec/launcher_remote_spec.rb +3 -2
- data/spec/selenium-launcher_spec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11453c3874113a1dfe3b15167a320459944cdaf8
|
4
|
+
data.tar.gz: 684bfb3909521a2e77d54702a0cf38e2c32f18a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71d339ecaacbd6e08f1a4494fc3b51d64c5d242a4993383a95b463607e96340b6aec16c3604243bce8940098bbfd47424b18109c54110ae906f717b89637b8da
|
7
|
+
data.tar.gz: cfd98914c19580a88373cddf6686e66b87fb85f314d62577cacf5b5f62f88a8bdc05bfa7af5dce4b4c1c95a9e58c441ea79a742153f636247c943b03258ba064
|
data/README.txt
CHANGED
@@ -38,10 +38,10 @@ ENV['SE_BROWSER'] = 'firefox'
|
|
38
38
|
driver = SeleniumLauncher.launch
|
39
39
|
driver.quit
|
40
40
|
|
41
|
-
===
|
41
|
+
=== Remote
|
42
42
|
|
43
43
|
ENV['SE_BROWSER'] = 'firefox'
|
44
|
-
ENV['SE_HOST'] = '
|
44
|
+
ENV['SE_HOST'] = 'remote'
|
45
45
|
ENV['SE_HOST_URL'] = 'http://localhost:4444/wd/hub'
|
46
46
|
driver = SeleniumLauncher.launch
|
47
47
|
driver.quit
|
data/selenium-launcher.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = SeleniumLauncher::VERSION
|
9
9
|
spec.authors = ['Dave Haeffner']
|
10
10
|
spec.email = ['dhaeffner@gmail.com']
|
11
|
-
spec.description
|
11
|
+
spec.description = %q{A simple way to configure and launch a Selenium instance}
|
12
12
|
spec.summary = %q{See README.txt}
|
13
13
|
spec.homepage = 'https://github.com/tourdedave/selenium-launcher'
|
14
14
|
spec.license = 'MIT'
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'selenium-webdriver', '~> 2.
|
20
|
+
spec.add_dependency 'selenium-webdriver', '~> 2.44.0'
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.1.0'
|
data/spec/launcher_local_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe 'Launcher', :integration do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'Internet Explorer' do
|
27
|
-
|
27
|
+
skip 'Windows OS required' unless OS.windows?
|
28
28
|
ENV['SE_BROWSER'] = 'internet_explorer'
|
29
29
|
@launcher = SeleniumLauncher::Launcher.new
|
30
30
|
expect(@launcher.driver.class).to eql Selenium::WebDriver::Driver
|
@@ -32,7 +32,8 @@ describe 'Launcher', :integration do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'Safari' do
|
35
|
-
|
35
|
+
# See https://github.com/tourdedave/selenium-launcher/issues/3 if you experience Safari issues
|
36
|
+
skip 'Safari on Windows is unsupported' if OS.windows?
|
36
37
|
ENV['SE_BROWSER'] = 'safari'
|
37
38
|
@launcher = SeleniumLauncher::Launcher.new
|
38
39
|
expect(@launcher.driver.class).to eql Selenium::WebDriver::Driver
|
@@ -42,7 +42,7 @@ describe 'Launcher', :integration do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
it 'Internet Explorer' do
|
45
|
-
|
45
|
+
skip 'Windows OS required' unless OS.windows?
|
46
46
|
ENV['SE_BROWSER'] = 'internet_explorer'
|
47
47
|
@launcher = SeleniumLauncher::Launcher.new
|
48
48
|
expect(@launcher.driver.class).to eql Selenium::WebDriver::Driver
|
@@ -50,7 +50,8 @@ describe 'Launcher', :integration do
|
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'Safari' do
|
53
|
-
|
53
|
+
# See https://github.com/tourdedave/selenium-launcher/issues/3 if you experience Safari issues
|
54
|
+
skip 'Safari on Windows is unsupported' if OS.windows?
|
54
55
|
ENV['SE_BROWSER'] = 'safari'
|
55
56
|
@launcher = SeleniumLauncher::Launcher.new
|
56
57
|
expect(@launcher.driver.class).to eql Selenium::WebDriver::Driver
|
@@ -20,7 +20,7 @@ describe 'Selenium Launcher', :acceptance do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'no browser' do
|
23
|
-
expect {
|
23
|
+
expect { SeleniumLauncher.launch }.to raise_error(
|
24
24
|
RuntimeError,
|
25
25
|
'You need to specify a browser (e.g., SE_BROWSER).')
|
26
26
|
end
|
@@ -28,7 +28,7 @@ describe 'Selenium Launcher', :acceptance do
|
|
28
28
|
it 'no remote host URL' do
|
29
29
|
ENV['SE_BROWSER'] = 'firefox'
|
30
30
|
ENV['SE_HOST'] = 'remote'
|
31
|
-
expect {
|
31
|
+
expect { SeleniumLauncher.launch }.to raise_error(
|
32
32
|
RuntimeError,
|
33
33
|
'You need to specify a URL when using a Remote node (e.g., SE_HOST_URL).')
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Haeffner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.44.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.44.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|