webdriver 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/webdriver/connection.rb +8 -4
- data/lib/webdriver/errors.rb +4 -0
- data/lib/webdriver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87f477a3a44d441f4dcf3dc63299d41e0048ef0dfafb444af95bef91449ea409
|
4
|
+
data.tar.gz: 738fd35129209fa04c78ac8931dfd2bd4fd6a8aceb5f27be5f54a042a90173d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3f51e54449851f554bf0bb84f020733f6313bf452065e467431e7f2980b37346e056cc1e05f79e7920a752cf1688fbbe716a5074bc842c62376c2bbe5ec3e4d
|
7
|
+
data.tar.gz: 98b70012361723d8a7fac8d4efd3bb316a2efbfadc20e688c7e3bd2a5cc51c27d28d1254c962fc4f618ebc5600d774bc9642b7743e72f3c8395f62110ab2fb72
|
data/Gemfile.lock
CHANGED
data/lib/webdriver/connection.rb
CHANGED
@@ -54,14 +54,18 @@ module Webdriver
|
|
54
54
|
else # everything else works like this
|
55
55
|
value
|
56
56
|
end
|
57
|
+
when 7
|
58
|
+
raise Webdriver::NoSuchElementError.new value.dig("message")
|
59
|
+
when 8
|
60
|
+
raise Webdriver::NoSuchFrameError.new body[:id]
|
57
61
|
when 10
|
58
|
-
raise Webdriver::StaleElementReferenceError
|
62
|
+
raise Webdriver::StaleElementReferenceError.new path
|
59
63
|
when 11
|
60
|
-
raise Webdriver::ElementNotInteractableError
|
64
|
+
raise Webdriver::ElementNotInteractableError.new path
|
61
65
|
when 13
|
62
|
-
raise Webdriver::UnknownErrorUnhandledInspectorError
|
66
|
+
raise Webdriver::UnknownErrorUnhandledInspectorError.new value.dig("message")
|
63
67
|
when 28
|
64
|
-
raise Webdriver::ScriptTimeout
|
68
|
+
raise Webdriver::ScriptTimeout.new value.dig("message")
|
65
69
|
when 1..nil
|
66
70
|
error_message = value.dig("message")
|
67
71
|
raise "#{status}: #{error_message}"
|
data/lib/webdriver/errors.rb
CHANGED
data/lib/webdriver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matti Paksula
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|