superbara 0.14.4 → 0.14.5
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/Gemfile.lock +32 -30
- data/README.md +1 -1
- data/lib/capybara_monkey.rb +4 -0
- data/lib/superbara/dsl.rb +19 -0
- data/lib/superbara/version.rb +1 -1
- data/vendor/chromedriver/linux64/btw chromedriver manually copy-pasted here +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e20f482b6b307cc7597d7affd3ff907e02ca945442b0633d9e7c3d6fcc39573
|
|
4
|
+
data.tar.gz: '08cd1d74b997fe51ee782cf1ce8748bdc4cc862986fc4e792556856b6064e09b'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0689ef350aa56f15e9da0d23e8c8c618098a777f83637cd83484791029e4a45203ebc5b09570b47e46e283d9fafb028fc4e180e115a100a5128fc52979548bd
|
|
7
|
+
data.tar.gz: 7883de5ab4df621dcd45e773b3063b8d0f1e8ec163c3bdf60172f4c98587f9e40e415914a882907e71df469fb3163e9d2395a470300c3add3c1428fa0c8e15f8
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
superbara (0.14.
|
|
4
|
+
superbara (0.14.5)
|
|
5
5
|
astrolabe (~> 1.3, >= 1.3.1)
|
|
6
6
|
binding_of_caller (~> 0.8, >= 0.8.0)
|
|
7
7
|
capybara (~> 3.1, >= 3.1.0)
|
|
@@ -28,13 +28,14 @@ GEM
|
|
|
28
28
|
binding_of_caller (0.8.0)
|
|
29
29
|
debug_inspector (>= 0.0.1)
|
|
30
30
|
byebug (10.0.2)
|
|
31
|
-
capybara (3.
|
|
31
|
+
capybara (3.10.0)
|
|
32
32
|
addressable
|
|
33
33
|
mini_mime (>= 0.1.3)
|
|
34
34
|
nokogiri (~> 1.8)
|
|
35
35
|
rack (>= 1.6.0)
|
|
36
36
|
rack-test (>= 0.6.3)
|
|
37
|
-
|
|
37
|
+
regexp_parser (~> 1.2)
|
|
38
|
+
xpath (~> 3.2)
|
|
38
39
|
childprocess (0.9.0)
|
|
39
40
|
ffi (~> 1.0, >= 1.0.11)
|
|
40
41
|
coderay (1.1.2)
|
|
@@ -42,20 +43,20 @@ GEM
|
|
|
42
43
|
concurrent-ruby (1.0.5)
|
|
43
44
|
debug_inspector (0.0.3)
|
|
44
45
|
diff-lcs (1.3)
|
|
45
|
-
faker (1.
|
|
46
|
+
faker (1.9.1)
|
|
46
47
|
i18n (>= 0.7)
|
|
47
48
|
ffi (1.9.25)
|
|
48
|
-
i18n (1.
|
|
49
|
+
i18n (1.1.1)
|
|
49
50
|
concurrent-ruby (~> 1.0)
|
|
50
51
|
interception (0.5)
|
|
51
52
|
kommando (0.1.2)
|
|
52
53
|
method_source (0.9.0)
|
|
53
|
-
mini_mime (1.0.
|
|
54
|
+
mini_mime (1.0.1)
|
|
54
55
|
mini_portile2 (2.3.0)
|
|
55
|
-
mustermann (1.0.
|
|
56
|
-
nokogiri (1.8.
|
|
56
|
+
mustermann (1.0.3)
|
|
57
|
+
nokogiri (1.8.5)
|
|
57
58
|
mini_portile2 (~> 2.3.0)
|
|
58
|
-
parser (2.5.
|
|
59
|
+
parser (2.5.3.0)
|
|
59
60
|
ast (~> 2.4.0)
|
|
60
61
|
pry (0.11.3)
|
|
61
62
|
coderay (~> 1.1.0)
|
|
@@ -69,38 +70,39 @@ GEM
|
|
|
69
70
|
pry-stack_explorer (0.4.9.2)
|
|
70
71
|
binding_of_caller (>= 0.7)
|
|
71
72
|
pry (>= 0.9.11)
|
|
72
|
-
public_suffix (3.0.
|
|
73
|
+
public_suffix (3.0.3)
|
|
73
74
|
rack (2.0.5)
|
|
74
|
-
rack-protection (2.0.
|
|
75
|
+
rack-protection (2.0.4)
|
|
75
76
|
rack
|
|
76
|
-
rack-test (1.
|
|
77
|
+
rack-test (1.1.0)
|
|
77
78
|
rack (>= 1.0, < 3)
|
|
78
79
|
rake (12.3.0)
|
|
79
80
|
rb-readline (0.5.5)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
rspec-
|
|
83
|
-
rspec-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
regexp_parser (1.2.0)
|
|
82
|
+
rspec (3.8.0)
|
|
83
|
+
rspec-core (~> 3.8.0)
|
|
84
|
+
rspec-expectations (~> 3.8.0)
|
|
85
|
+
rspec-mocks (~> 3.8.0)
|
|
86
|
+
rspec-core (3.8.0)
|
|
87
|
+
rspec-support (~> 3.8.0)
|
|
88
|
+
rspec-expectations (3.8.2)
|
|
87
89
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
|
-
rspec-support (~> 3.
|
|
89
|
-
rspec-mocks (3.
|
|
90
|
+
rspec-support (~> 3.8.0)
|
|
91
|
+
rspec-mocks (3.8.0)
|
|
90
92
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
91
|
-
rspec-support (~> 3.
|
|
92
|
-
rspec-support (3.
|
|
93
|
-
rubyzip (1.2.
|
|
94
|
-
selenium-webdriver (3.
|
|
93
|
+
rspec-support (~> 3.8.0)
|
|
94
|
+
rspec-support (3.8.0)
|
|
95
|
+
rubyzip (1.2.2)
|
|
96
|
+
selenium-webdriver (3.14.1)
|
|
95
97
|
childprocess (~> 0.5)
|
|
96
|
-
rubyzip (~> 1.2)
|
|
97
|
-
sinatra (2.0.
|
|
98
|
+
rubyzip (~> 1.2, >= 1.2.2)
|
|
99
|
+
sinatra (2.0.4)
|
|
98
100
|
mustermann (~> 1.0)
|
|
99
101
|
rack (~> 2.0)
|
|
100
|
-
rack-protection (= 2.0.
|
|
102
|
+
rack-protection (= 2.0.4)
|
|
101
103
|
tilt (~> 2.0)
|
|
102
104
|
tilt (2.0.8)
|
|
103
|
-
xpath (3.
|
|
105
|
+
xpath (3.2.0)
|
|
104
106
|
nokogiri (~> 1.8)
|
|
105
107
|
|
|
106
108
|
PLATFORMS
|
|
@@ -112,4 +114,4 @@ DEPENDENCIES
|
|
|
112
114
|
superbara!
|
|
113
115
|
|
|
114
116
|
BUNDLED WITH
|
|
115
|
-
1.
|
|
117
|
+
1.17.1
|
data/README.md
CHANGED
data/lib/capybara_monkey.rb
CHANGED
data/lib/superbara/dsl.rb
CHANGED
|
@@ -103,6 +103,16 @@ return Array.from(
|
|
|
103
103
|
e.click
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
+
def klik(selector, options={})
|
|
107
|
+
Superbara.output "clicking '#{selector}' with #{options.inspect}"
|
|
108
|
+
el = find selector, options
|
|
109
|
+
coords = el.location
|
|
110
|
+
klikX = coords["x"] + coords["width"] / 2
|
|
111
|
+
klikY = coords["y"] + coords["height"] / 2
|
|
112
|
+
`xdotool mousemove #{klikX} #{klikY} click 1`
|
|
113
|
+
return el
|
|
114
|
+
end
|
|
115
|
+
|
|
106
116
|
@@once_runs = []
|
|
107
117
|
def run(what, params={}, args={}, &block)
|
|
108
118
|
Superbara.last_context_return_value = nil
|
|
@@ -384,4 +394,13 @@ return Array.from(
|
|
|
384
394
|
Superbara.start_did_open_debug=true
|
|
385
395
|
Pry.start(binding.of_caller(1))
|
|
386
396
|
end
|
|
397
|
+
|
|
398
|
+
def fullscreen(full=true)
|
|
399
|
+
if full
|
|
400
|
+
page.driver.fullscreen_window current_window.handle
|
|
401
|
+
else
|
|
402
|
+
page.driver.maximize_window current_window.handle
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
|
|
387
406
|
end; end
|
data/lib/superbara/version.rb
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: superbara
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matti Paksula
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|
|
@@ -464,6 +464,7 @@ files:
|
|
|
464
464
|
- tests/tags/notags.rb
|
|
465
465
|
- tests/tags/simple.rb
|
|
466
466
|
- vendor/chromedriver/linux64/.gitkeep
|
|
467
|
+
- vendor/chromedriver/linux64/btw chromedriver manually copy-pasted here
|
|
467
468
|
- vendor/chromedriver/linux64/chromedriver
|
|
468
469
|
- vendor/chromedriver/mac64/.gitkeep
|
|
469
470
|
- vendor/chromedriver/mac64/chromedriver
|