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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 725390cb120a545ab1ba0a55d5f21430e5d4a90b824883e30aa5223577f61822
4
- data.tar.gz: 06c2a1a75ca97e41b7bad105715eb2084a5d34f4acb96ac291e7ff0032150790
3
+ metadata.gz: 87f477a3a44d441f4dcf3dc63299d41e0048ef0dfafb444af95bef91449ea409
4
+ data.tar.gz: 738fd35129209fa04c78ac8931dfd2bd4fd6a8aceb5f27be5f54a042a90173d6
5
5
  SHA512:
6
- metadata.gz: 4ba9cfa9aaabffe2c339af6a7389c86ef97e190361bd01dbcdf9a6dd480d80437036814e6a203de4ca13b2a81efd466eb1aac9a306e95825cfb8548a0d0a5e09
7
- data.tar.gz: 35f64a452a56318b0be9b2496bcf21670a4d7a977a17dac26f0c021fab1b124e7cec6c93c558a4d873e4553a89a914ffcd582df70a30e929afcb02b0ad78f4ea
6
+ metadata.gz: f3f51e54449851f554bf0bb84f020733f6313bf452065e467431e7f2980b37346e056cc1e05f79e7920a752cf1688fbbe716a5074bc842c62376c2bbe5ec3e4d
7
+ data.tar.gz: 98b70012361723d8a7fac8d4efd3bb316a2efbfadc20e688c7e3bd2a5cc51c27d28d1254c962fc4f618ebc5600d774bc9642b7743e72f3c8395f62110ab2fb72
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webdriver (0.13.0)
4
+ webdriver (0.14.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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}"
@@ -1,4 +1,8 @@
1
1
  module Webdriver
2
+ # 7
3
+ class NoSuchElementError < StandardError; end
4
+ # 7
5
+ class NoSuchFrameError < StandardError; end
2
6
  # 10
3
7
  class StaleElementReferenceError < StandardError; end
4
8
  # 11
@@ -1,3 +1,3 @@
1
1
  module Webdriver
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
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.13.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-09-29 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler