watir-webdriver 0.9.3 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +3 -0
- data/lib/watir-webdriver/browser.rb +3 -3
- data/lib/watir-webdriver/version.rb +1 -1
- data/support/doctest_helper.rb +16 -5
- data/support/travis.sh +1 -1
- data/watir-webdriver.gemspec +6 -0
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4db6f4c64f77e4bd79f8e788e3c7d622e951513d
|
4
|
+
data.tar.gz: f8fc17a00bf1e382411198635962ef9116534f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807fbd9aa56ca2c95ff845b018e334e792a4d0d5660bb4f8415583ac683372feed9a53155547f5aea4cc918f20f66180391100339febdaf1669a4381a574caf6
|
7
|
+
data.tar.gz: 96ad3d43a372c9a63607b4e4791d932d06ee43f2a08df1294cfe12159a7177fa220462e4f4885f42a54b04b06f1e94c6212324149743be89a4cd82794015cb9e
|
data/CHANGES.md
CHANGED
@@ -18,7 +18,7 @@ module Watir
|
|
18
18
|
# Creates a Watir::Browser instance and goes to URL.
|
19
19
|
#
|
20
20
|
# @example
|
21
|
-
# browser = Watir::Browser.start "www.google.com", :
|
21
|
+
# browser = Watir::Browser.start "www.google.com", :phantomjs
|
22
22
|
# #=> #<Watir::Browser:0x..fa45a499cb41e1752 url="http://www.google.com" title="Google">
|
23
23
|
#
|
24
24
|
# @param [String] url
|
@@ -152,9 +152,9 @@ module Watir
|
|
152
152
|
# Returns browser name.
|
153
153
|
#
|
154
154
|
# @example
|
155
|
-
# browser = Watir::Browser.new :
|
155
|
+
# browser = Watir::Browser.new :phantomjs
|
156
156
|
# browser.name
|
157
|
-
# #=> :
|
157
|
+
# #=> :phantomjs
|
158
158
|
#
|
159
159
|
# @return [Symbol]
|
160
160
|
#
|
data/support/doctest_helper.rb
CHANGED
@@ -3,13 +3,21 @@ require 'spec/watirspec/lib/watirspec'
|
|
3
3
|
|
4
4
|
#
|
5
5
|
# 1. If example does not start browser, start new one, reuse until example
|
6
|
-
# finishes and close after
|
6
|
+
# finishes and close after.
|
7
7
|
# 2. If example starts browser and assigns it to local variable `browser`,
|
8
|
-
# it will still be closed
|
8
|
+
# it will still be closed.
|
9
9
|
#
|
10
10
|
|
11
11
|
def browser
|
12
|
-
@browser ||=
|
12
|
+
@browser ||= begin
|
13
|
+
opts = {}
|
14
|
+
opts[:args] = ['--no-sandbox'] if ENV['TRAVIS']
|
15
|
+
|
16
|
+
browser = Watir::Browser.new(:chrome, opts)
|
17
|
+
browser.goto WatirSpec.url_for('forms_with_input_elements.html')
|
18
|
+
|
19
|
+
browser
|
20
|
+
end
|
13
21
|
end
|
14
22
|
|
15
23
|
YARD::Doctest.configure do |doctest|
|
@@ -21,7 +29,7 @@ YARD::Doctest.configure do |doctest|
|
|
21
29
|
doctest.skip 'Watir::Window#size'
|
22
30
|
doctest.skip 'Watir::Window#position'
|
23
31
|
|
24
|
-
%w[text ok close exists?].each do |name|
|
32
|
+
%w[text ok close exists? present?].each do |name|
|
25
33
|
doctest.before("Watir::Alert##{name}") do
|
26
34
|
browser.goto WatirSpec.url_for('alerts.html')
|
27
35
|
browser.button(id: 'alert').click
|
@@ -43,7 +51,7 @@ YARD::Doctest.configure do |doctest|
|
|
43
51
|
browser.goto WatirSpec.url_for('non_control_elements.html')
|
44
52
|
end
|
45
53
|
|
46
|
-
%w[inner_html outer_html].each do |name|
|
54
|
+
%w[inner_html outer_html html].each do |name|
|
47
55
|
doctest.before("Watir::Element##{name}") do
|
48
56
|
browser.goto WatirSpec.url_for('inner_outer.html')
|
49
57
|
end
|
@@ -64,4 +72,7 @@ end
|
|
64
72
|
|
65
73
|
if ENV['TRAVIS']
|
66
74
|
ENV['DISPLAY'] = ':99.0'
|
75
|
+
|
76
|
+
Selenium::WebDriver::Chrome.path = File.expand_path 'chrome-linux/chrome'
|
77
|
+
Selenium::WebDriver::Chrome.driver_path = File.expand_path 'chrome-linux/chromedriver'
|
67
78
|
end
|
data/support/travis.sh
CHANGED
@@ -11,7 +11,7 @@ if [[ "$RAKE_TASK" = "yard:doctest" ]]; then
|
|
11
11
|
bundle exec yard config -a autoload_plugins yard-doctest
|
12
12
|
fi
|
13
13
|
|
14
|
-
if [[ "$RAKE_TASK" = "spec:chrome" ]]; then
|
14
|
+
if [[ "$RAKE_TASK" = "spec:chrome" ]] || [[ "$RAKE_TASK" = "yard:doctest" ]]; then
|
15
15
|
# https://omahaproxy.appspot.com
|
16
16
|
# https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/
|
17
17
|
CHROME_REVISION=386257
|
data/watir-webdriver.gemspec
CHANGED
@@ -12,6 +12,12 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{Watir on WebDriver}
|
13
13
|
s.description = %q{WebDriver-backed Watir}
|
14
14
|
s.license = 'MIT'
|
15
|
+
s.post_install_message = <<-POST_INSTALL_MESSAGE
|
16
|
+
|
17
|
+
With the release of Watir 6.0, the watir-webdriver gem has changed its name
|
18
|
+
to watir. Update your dependencies to use "watir", "~> 6.0"
|
19
|
+
|
20
|
+
POST_INSTALL_MESSAGE
|
15
21
|
|
16
22
|
s.rubyforge_project = "watir-webdriver"
|
17
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir-webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -305,7 +305,11 @@ homepage: http://github.com/watir/watir-webdriver
|
|
305
305
|
licenses:
|
306
306
|
- MIT
|
307
307
|
metadata: {}
|
308
|
-
post_install_message:
|
308
|
+
post_install_message: |2+
|
309
|
+
|
310
|
+
With the release of Watir 6.0, the watir-webdriver gem has changed its name
|
311
|
+
to watir. Update your dependencies to use "watir", "~> 6.0"
|
312
|
+
|
309
313
|
rdoc_options: []
|
310
314
|
require_paths:
|
311
315
|
- lib
|
@@ -321,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
325
|
version: '0'
|
322
326
|
requirements: []
|
323
327
|
rubyforge_project: watir-webdriver
|
324
|
-
rubygems_version: 2.4.
|
328
|
+
rubygems_version: 2.4.8
|
325
329
|
signing_key:
|
326
330
|
specification_version: 4
|
327
331
|
summary: Watir on WebDriver
|