watir 4.0.2 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/watir/loader.rb +8 -15
- data/lib/watir/version.rb +1 -1
- data/watir.gemspec +1 -1
- metadata +9 -15
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: db88779c71ea688be73f5667bf31a9cb81bd006d
|
4
|
+
data.tar.gz: a1b259f1d7a356eddc6191b073d88c5cbc980b84
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6c86f92bb40f6c7e74ea8fe6937f82f8f135a26e762b892cffcc679cda9dcfe888976eafa721f743c748b40c69a78ae348eb9c479fe2df6330f487fb8e619694
|
7
|
+
data.tar.gz: 73439a34e758f836fc9bf9a96b79543a1ea32678dba59087c69c22f654a11f622a985b36d564f5fc9e23015212b73a6e17737f278e39d17fb5e0f29b0ff6bfda
|
data/lib/watir/loader.rb
CHANGED
@@ -2,20 +2,14 @@ require File.expand_path('version', File.dirname(__FILE__))
|
|
2
2
|
|
3
3
|
module Watir
|
4
4
|
class Browser
|
5
|
-
|
6
|
-
|
7
|
-
def new(browser=nil, *args)
|
8
|
-
load_driver_for browser
|
9
|
-
|
10
|
-
if Watir.driver == :webdriver
|
11
|
-
# remove this class method for WebDriver to avoid endless loop
|
12
|
-
singleton_class = class << self; self end
|
13
|
-
singleton_class.send :remove_method, :new
|
14
|
-
end
|
5
|
+
def initialize(browser=nil, *args)
|
6
|
+
self.class.load_driver_for browser
|
15
7
|
|
16
|
-
|
17
|
-
|
8
|
+
# execute just loaded driver's #initialize
|
9
|
+
initialize browser.nil? && Watir.driver == :webdriver ? :firefox : browser, *args
|
10
|
+
end
|
18
11
|
|
12
|
+
class << self
|
19
13
|
def start(url, browser=nil, *args)
|
20
14
|
load_driver_for browser
|
21
15
|
|
@@ -28,13 +22,12 @@ module Watir
|
|
28
22
|
|
29
23
|
def method_missing(name, *args, &block)
|
30
24
|
Watir.load_driver
|
25
|
+
return super unless respond_to? name
|
31
26
|
send name, *args, &block
|
32
27
|
end
|
33
28
|
|
34
|
-
private
|
35
|
-
|
36
29
|
def load_driver_for(browser)
|
37
|
-
if browser && browser.to_sym != :ie && Watir.driver == :classic
|
30
|
+
if browser && browser.respond_to?(:to_sym) && browser.to_sym != :ie && Watir.driver == :classic
|
38
31
|
Watir.driver = :webdriver
|
39
32
|
end
|
40
33
|
Watir.load_driver
|
data/lib/watir/version.rb
CHANGED
data/watir.gemspec
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 5.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bret Pettichord
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-10-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: commonwatir
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,17 +27,15 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: watir-webdriver
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: Automated testing tool for web applications. By Testers. For Testers.
|
@@ -57,27 +52,26 @@ files:
|
|
57
52
|
- watir.gemspec
|
58
53
|
homepage: http://github.com/watir/watir
|
59
54
|
licenses: []
|
55
|
+
metadata: {}
|
60
56
|
post_install_message:
|
61
57
|
rdoc_options: []
|
62
58
|
require_paths:
|
63
59
|
- lib
|
64
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
61
|
requirements:
|
67
|
-
- -
|
62
|
+
- - '>='
|
68
63
|
- !ruby/object:Gem::Version
|
69
64
|
version: '0'
|
70
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
66
|
requirements:
|
73
|
-
- -
|
67
|
+
- - '>='
|
74
68
|
- !ruby/object:Gem::Version
|
75
69
|
version: '0'
|
76
70
|
requirements: []
|
77
71
|
rubyforge_project: watir
|
78
|
-
rubygems_version:
|
72
|
+
rubygems_version: 2.0.7
|
79
73
|
signing_key:
|
80
|
-
specification_version:
|
74
|
+
specification_version: 4
|
81
75
|
summary: Watir
|
82
76
|
test_files: []
|
83
77
|
has_rdoc:
|