true_automation 0.3.22 → 0.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/true_automation/driver/capybara.rb +22 -0
- data/lib/true_automation/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80ab9c92521f6edf81b4bde9bf529e63e443258483b99de52815372697eb85d9
|
4
|
+
data.tar.gz: 9ce5f945348159a5d947ee705e2d720470342096c4c3fefcf291cb150e3f39b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3fcb71c16cab882bb8ec5c0b83f1c230717bb1667cd7d0500ed8d6b039a62c43a5e3dcc8135f45b151be965b2cb7f60e8f9631c669c21284635e8c1ce4dcaa2
|
7
|
+
data.tar.gz: e633a3c1ab4c3bc8fb58f3d5d70bf0bba51519204e33e3a3211542b464e7c6c28264b2ab68102718a3723d0abb76af9aa7578794acf1471e29baecff0f75a01e
|
@@ -9,6 +9,10 @@ module Capybara
|
|
9
9
|
if selector = matched_result && matched_result[1]
|
10
10
|
desc = "TrueAutomation element #{selector} on the page"
|
11
11
|
end
|
12
|
+
matched_result_ta = desc.match(/.*(__ta__.+__ta__).*/)
|
13
|
+
if selector = matched_result_ta && matched_result_ta[1]
|
14
|
+
desc = desc.gsub(selector, '')
|
15
|
+
end
|
12
16
|
desc
|
13
17
|
end
|
14
18
|
end
|
@@ -65,6 +69,24 @@ module TrueAutomation
|
|
65
69
|
end
|
66
70
|
@browser
|
67
71
|
end
|
72
|
+
|
73
|
+
def quit
|
74
|
+
super
|
75
|
+
@ta_client.stop
|
76
|
+
end
|
77
|
+
|
78
|
+
def specialize_driver(*args)
|
79
|
+
if ::Capybara::Selenium::Driver.respond_to?(:register_specialization)
|
80
|
+
browser_type = browser.browser
|
81
|
+
# Original method uses self.class, and all classes use Capybara::Selenium::Driver.
|
82
|
+
# Thereby no specializations in the list for TA driver class and error occured.
|
83
|
+
::Capybara::Selenium::Driver.specializations.select { |k, _v| k === browser_type }.each_value do |specialization| # rubocop:disable Style/CaseEquality
|
84
|
+
extend specialization
|
85
|
+
end
|
86
|
+
else
|
87
|
+
super
|
88
|
+
end
|
89
|
+
end
|
68
90
|
end
|
69
91
|
end
|
70
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: true_automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TrueAutomation.IO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.7.
|
112
|
+
rubygems_version: 2.7.9
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: TrueAutomation.IO
|