atspi_app_driver 0.9.0 → 0.10.1
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/Changelog.md +18 -0
- data/README.md +54 -47
- data/lib/atspi_app_driver/version.rb +1 -1
- data/lib/atspi_app_driver.rb +1 -4
- metadata +14 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8d16938183e34d657ac5d76c6f975653f2a2cc82a605033359bea0380b39a7
|
4
|
+
data.tar.gz: 0b1df70bb0754549e14df38861e38dfd48d8a4a94bc177a86bf4e126c0099902
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e69a9ce66553b954840adc834b015e942cad1846c2cb3d94e9587190707b0c2cccbdc383c2c7246b461beed99a72ccc11e0e6f6d2a71a30e77fb17cf4d95dfd
|
7
|
+
data.tar.gz: 2fcbaa9e4671afb18c60f92715a7e84a5b0e7187b82b07774badb63d54b48bdf2a23aaa3161b6ed85dcf67b63c67739dc7cbcd90b79660c7582578120b34a760
|
data/Changelog.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.10.1 / 2025-03-23
|
4
|
+
|
5
|
+
* Depend on GirFFI-Atspi to provide Atspi bindings. This makes overrides from
|
6
|
+
that gem available, fixing an incompatibility with newer Atspi GIR data.
|
7
|
+
([#109] by [mvz])
|
8
|
+
|
9
|
+
[#109]: https://github.com/mvz/atspi_app_driver/pull/109
|
10
|
+
|
11
|
+
## 0.10.0 / 2025-02-07
|
12
|
+
|
13
|
+
* Support Ruby 3.1 through 3.4, dropping support for Ruby 3.0 ([#106] by [mvz])
|
14
|
+
* Update `gir_ffi` and `gir_ffi-gtk` dependencies to version 0.18.0 ([#107] by [mvz])
|
15
|
+
|
16
|
+
[mvz]: https://github.com/mvz
|
17
|
+
|
18
|
+
[#106]: https://github.com/mvz/atspi_app_driver/pull/106
|
19
|
+
[#107]: https://github.com/mvz/atspi_app_driver/pull/107
|
20
|
+
|
3
21
|
## 0.9.0 / 2023-12-31
|
4
22
|
|
5
23
|
* Drop support for Ruby version 2.7
|
data/README.md
CHANGED
@@ -10,53 +10,58 @@ code in `lib/`.
|
|
10
10
|
|
11
11
|
Say, your application is called `foo`. Then, in your tests, do something like this:
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
13
|
+
```ruby
|
14
|
+
require "minitest/autorun"
|
15
|
+
require "atspi_app_driver"
|
16
|
+
|
17
|
+
describe "The application" do
|
18
|
+
before do
|
19
|
+
@driver = AtspiAppDriver.new("foo")
|
20
|
+
|
21
|
+
# This will boot `ruby -Ilib bin/foo`, wait for its main window to appear,
|
22
|
+
# and focus it.
|
23
|
+
@driver.boot
|
24
|
+
end
|
25
|
+
|
26
|
+
it "does stuff" do
|
27
|
+
# Fetch the main window's atspi object
|
28
|
+
frame = @driver.frame
|
29
|
+
|
30
|
+
# You can now interact with the window's objects
|
31
|
+
|
32
|
+
# Select item matching /bar/ from combo box:
|
33
|
+
box = frame.find_role :combo_box
|
34
|
+
item = box.find_role :menu_item, /bar/
|
35
|
+
_(box.get_action_name(0)).must_equal "press"
|
36
|
+
box.do_action 0
|
37
|
+
_(item.get_action_name(0)).must_equal "click"
|
38
|
+
item.do_action 0
|
39
|
+
|
40
|
+
# Fetch contents of a text box
|
41
|
+
textbox = frame.find_role :text
|
42
|
+
_(textbox.get_text(0, 100)).must_equal "Foo bar baz"
|
43
|
+
|
44
|
+
# Quit application
|
45
|
+
menu_item = frame.find_role :menu_item, /Quit/
|
46
|
+
menu_item.do_action 0
|
47
|
+
|
48
|
+
# Check exit status
|
49
|
+
status = @driver.cleanup
|
50
|
+
_(status.exitstatus).must_equal 0
|
51
|
+
end
|
52
|
+
|
53
|
+
after do
|
54
|
+
# Ensure application is cleaned up
|
55
|
+
@driver.cleanup
|
56
|
+
end
|
57
|
+
end
|
58
|
+
```
|
56
59
|
|
57
60
|
## Installation
|
58
61
|
|
59
|
-
|
62
|
+
```
|
63
|
+
gem install atspi_app_driver
|
64
|
+
```
|
60
65
|
|
61
66
|
## Dependencies
|
62
67
|
|
@@ -68,9 +73,11 @@ Corrections are welcome, of course.
|
|
68
73
|
|
69
74
|
This should work on Debian unstable.
|
70
75
|
|
71
|
-
|
72
|
-
|
73
|
-
|
76
|
+
```
|
77
|
+
sudo apt-get install dbus
|
78
|
+
sudo apt-get install libgirepository1.0-dev gobject-introspection
|
79
|
+
sudo apt-get install gir1.2-atspi-2.0 libatk-adaptor
|
80
|
+
```
|
74
81
|
|
75
82
|
### Ubuntu
|
76
83
|
|
data/lib/atspi_app_driver.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,42 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atspi_app_driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: gir_ffi
|
13
|
+
name: gir_ffi-atspi
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.1.0
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
25
|
+
version: 0.1.0
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: gir_ffi-gtk
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
32
|
+
version: 0.18.0
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
39
|
+
version: 0.18.0
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
41
|
name: minitest
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +52,19 @@ dependencies:
|
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '5.12'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
55
|
+
name: minitest-focus
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
60
|
+
version: '1.4'
|
62
61
|
type: :development
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - "~>"
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
67
|
+
version: '1.4'
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
69
|
name: rake
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +113,14 @@ dependencies:
|
|
114
113
|
requirements:
|
115
114
|
- - "~>"
|
116
115
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
116
|
+
version: 0.37.1
|
118
117
|
type: :development
|
119
118
|
prerelease: false
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
121
120
|
requirements:
|
122
121
|
- - "~>"
|
123
122
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
123
|
+
version: 0.37.1
|
125
124
|
- !ruby/object:Gem::Dependency
|
126
125
|
name: rubocop-packaging
|
127
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +149,6 @@ dependencies:
|
|
150
149
|
- - "~>"
|
151
150
|
- !ruby/object:Gem::Version
|
152
151
|
version: '1.18'
|
153
|
-
description:
|
154
152
|
email:
|
155
153
|
- matijs@matijs.net
|
156
154
|
executables: []
|
@@ -169,7 +167,6 @@ metadata:
|
|
169
167
|
source_code_uri: https://github.com/mvz/atspi_app_driver
|
170
168
|
changelog_uri: https://github.com/mvz/atspi_app_driver/blob/master/Changelog.md
|
171
169
|
rubygems_mfa_required: 'true'
|
172
|
-
post_install_message:
|
173
170
|
rdoc_options: []
|
174
171
|
require_paths:
|
175
172
|
- lib
|
@@ -177,15 +174,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
174
|
requirements:
|
178
175
|
- - ">="
|
179
176
|
- !ruby/object:Gem::Version
|
180
|
-
version: 3.
|
177
|
+
version: 3.1.0
|
181
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
179
|
requirements:
|
183
180
|
- - ">="
|
184
181
|
- !ruby/object:Gem::Version
|
185
182
|
version: '0'
|
186
183
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
188
|
-
signing_key:
|
184
|
+
rubygems_version: 3.6.2
|
189
185
|
specification_version: 4
|
190
186
|
summary: Test GirFFI-based applications using Atspi
|
191
187
|
test_files: []
|