capybara-mechanize 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/mechanize/node.rb +2 -1
- data/lib/capybara/mechanize/version.rb +1 -1
- data/spec/driver/mechanize_driver_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbcaf089697d02f46804612f0acefd46a1a65202
|
4
|
+
data.tar.gz: c66e9eb863b1aae03917ebd0e3c5b1a291e74899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24c08aad652998b4e36278aa232c34b6c625cbf2fc2695ef6748f82cd6522a29f610cc76062878a4f21057b46883112cbfd67646cd91c21776de2a397a68e520
|
7
|
+
data.tar.gz: ca45b110befa9b67dddcfc309c0d67c006c9f4440c5417ed916d73b6049e1fc0ce611f4a86144b733d912af6e974832ce999a25314578650adc1a6f4e2bfb5e5
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class Capybara::Mechanize::Node < Capybara::RackTest::Node
|
2
2
|
def click
|
3
|
-
if tag_name == 'a'
|
3
|
+
if tag_name == 'a' or tag_name == 'label' or
|
4
|
+
(tag_name == 'input' and %w(checkbox radio).include?(type))
|
4
5
|
super
|
5
6
|
elsif (tag_name == 'input' and %w(submit image).include?(type)) or
|
6
7
|
((tag_name == 'button') and type.nil? or type == "submit")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-mechanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeroen van Dijk
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: 2.4.4
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '2.
|
50
|
+
version: '2.14'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: 2.4.4
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '2.
|
60
|
+
version: '2.14'
|
61
61
|
description: RackTest driver for Capybara, but with remote request support thanks
|
62
62
|
to mechanize
|
63
63
|
email: jeroen@jeevidee.nl
|