dogtail 2.0.dev2__tar.gz → 2.0.dev4__tar.gz
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.
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/.gitlab-ci.yml +3 -1
- dogtail-2.0.dev2/ChangeLog → dogtail-2.0.dev4/CHANGES +29 -1
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/NEWS +15 -9
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/PKG-INFO +18 -3
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/README.md +17 -2
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/predicate.py +6 -6
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/tree.py +21 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.egg-info/PKG-INFO +18 -3
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.egg-info/SOURCES.txt +1 -1
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/.fmf/version +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/.gitignore +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/.packit.yaml +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/.vscode/settings.json +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/COPYING +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/MAINTAINERS +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/Makefile +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/configure +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/__init__.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/__init__.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_actions.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_component.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_editable_text.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_hypertext.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_image.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_object.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_root.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_selection.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_state.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_table.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_table_cell.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_text.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_utilities.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/accessibles/accessible_value.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/config.ini +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/config.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/distro.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/dump.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/errors.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/logging.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/ponytail_helper.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/rawinput.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/scripts/__init__.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/scripts/dogtail_create_config.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/scripts/dogtail_get_config.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/scripts/dogtail_headless.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/utils.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail/version.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.egg-info/dependency_links.txt +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.egg-info/entry_points.txt +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.egg-info/requires.txt +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.egg-info/top_level.txt +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/dogtail.spec +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/epydoc.conf +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/examples/atspi_events_listener_script.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/examples/data/UTF-8-demo.txt +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/examples/gnome_shell_stress_test_tree_api.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/examples/text_editor_utf8_tree_api.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/icons/dogtail-head-48.png +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/icons/dogtail-head.svg +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/icons/dogtail-tail-48.png +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/icons/dogtail-tail.svg +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/pyproject.toml +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/setup.cfg +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/__init__.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/main.fmf +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_config.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_gtk_demo.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_predicate.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_rawinput.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_rawinput_drag.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_rawinput_keyboard_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_rawinput_keyboard_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_rawinput_mouse_buttons_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_rawinput_mouse_buttons_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_search_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_search_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_selection_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_selection_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_states_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_states_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_string_representation_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_string_representation_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_value_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_tree_value_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_utils_accessibility.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_utils_delay.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_utils_lock.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_utils_run_gtk3.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_utils_run_gtk4.py +0 -0
- {dogtail-2.0.dev2 → dogtail-2.0.dev4}/tests/test_version.py +0 -0
|
@@ -17,7 +17,7 @@ lint_code:
|
|
|
17
17
|
script:
|
|
18
18
|
- pip install ruff
|
|
19
19
|
- ruff check .
|
|
20
|
-
- python -m compileall dogtail/
|
|
20
|
+
- python -m compileall dogtail/
|
|
21
21
|
only:
|
|
22
22
|
- tags
|
|
23
23
|
- branches
|
|
@@ -101,3 +101,5 @@ publish-index:
|
|
|
101
101
|
paths:
|
|
102
102
|
- dist
|
|
103
103
|
when: always
|
|
104
|
+
# Maybe lets only do this manually, not sure if this is needed for every commit.
|
|
105
|
+
when: manual
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
+
2024-10-29 Michal Odehnal <modehnal@redhat.com>
|
|
2
|
+
|
|
3
|
+
dogtail 2.0.dev2
|
|
4
|
+
================
|
|
5
|
+
Tracked in Issue #29
|
|
6
|
+
Remove obsolete and legacy code that I have not observed in usage for many years while working with dogtail and automation in general.
|
|
7
|
+
Improve Wayland support, iron out some wrinkles in very specific corner cases.
|
|
8
|
+
Improving code structure and moving specific parts to its own files to improve readability in high level Node.
|
|
9
|
+
Remove all pyatspi2 usage, switching to only Atspi usage.
|
|
10
|
+
Adding accessibility classes, which were heavily inspired by Orca.
|
|
11
|
+
Logging was rewritten to be more useful.
|
|
12
|
+
The ponytail handling was rewritten and added to its own file, so it is not implemented in several files.
|
|
13
|
+
Printing Accessibility Structure Representation with dump and tree was improved in readability and efficiency.
|
|
14
|
+
Configuration handling was improved and ability to have config file per project was added.
|
|
15
|
+
Changing casing to snake_case, but still have backwards compatibility to camelCase.
|
|
16
|
+
Custom keys and values - users can define their own config values in .ini file.
|
|
17
|
+
Type checking: users will get ValueError when trying to set e.g. bool to value defined as float in config.ini.
|
|
18
|
+
Unittests were rewritten and their execution have been validated with testing-farm. These will now execute before every MR.
|
|
19
|
+
Examples were updated.
|
|
20
|
+
Removing Sniff, I will not release dogtail with Sniff in a broken state. It is not working well under Wayland and effort to rewrite it would be great. If someone is willing to rewrite it and improve it I will accept MR with it. Until then there are better tools that fullfil the same role.
|
|
21
|
+
Preparation for Newton was added to Accessible classes, currently switched off.
|
|
22
|
+
Preparation for documentation is also present as docstring in class methods, but not executed upon yet. For now one of my colleagues said he will take a look, if not, I will do it myself later.
|
|
23
|
+
README file was updated with up to date information.
|
|
24
|
+
Released version 2.0.dev2 to pypi which is ready to be used by wider audience.
|
|
25
|
+
Metadata updated where possible.
|
|
26
|
+
The dogtail.spec and Makefile remain mostly untouched. I have never used those, adapting those should come from someone more knowledgeable.
|
|
27
|
+
|
|
28
|
+
|
|
1
29
|
2024-12-31 Michal Odehnal <modehnal@redhat.com>
|
|
2
30
|
|
|
3
|
-
dogtail 2.
|
|
31
|
+
dogtail 2.x
|
|
4
32
|
===========
|
|
5
33
|
See the NEWS file for all changes.
|
|
6
34
|
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
dogtail-2.0
|
|
2
2
|
===========
|
|
3
3
|
|
|
4
|
-
-
|
|
4
|
+
- Tracked in Issue #29
|
|
5
|
+
- Remove obsolete and legacy code that I have not observed in usage for several years, working with dogtail and automation in general.
|
|
6
|
+
- Improve Wayland support, iron out some wrinkles in very specific corner cases.
|
|
5
7
|
- Improving code structure and moving specific parts to its own files to improve readability in high level Node.
|
|
6
|
-
- Remove all pyatspi2 usage
|
|
7
|
-
-
|
|
8
|
-
- Logging was
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
8
|
+
- Remove all pyatspi2 usage, switching to only Atspi usage.
|
|
9
|
+
- Adding accessibility classes, which were heavily inspired by Orca.
|
|
10
|
+
- Logging was rewritten to be more useful.
|
|
11
|
+
- The ponytail handling was rewritten and added to its own file, so it is not implemented in several files.
|
|
12
|
+
- Printing Accessibility Structure Representation with dump and tree was improved in readability and efficiency.
|
|
13
|
+
- Configuration handling was improved and ability to have config file per project was added.
|
|
12
14
|
- Changing casing to snake_case, but still have backwards compatibility to camelCase.
|
|
13
15
|
- Custom keys and values - users can define their own config values in .ini file.
|
|
14
16
|
- Type checking: users will get ValueError when trying to set e.g. bool to value defined as float in config.ini.
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
+
- Unittests were rewritten and their execution have been validated with testing-farm. These will now execute before every MR.
|
|
18
|
+
- Examples were updated.
|
|
19
|
+
- Removing Sniff, I will not release dogtail with Sniff in a broken state. It is not working well under Wayland and effort to rewrite it would be great. If someone is willing to rewrite it and improve it I will accept MR with it. Until then there are better tools that fullfil the same role.
|
|
20
|
+
- Preparation for Newton was added to Accessible classes, currently switched off.
|
|
21
|
+
- Preparation for documentation is also present as docstring in class methods, but not executed upon yet. For now one of my colleagues said he will take a look, if not, I will do it myself later.
|
|
22
|
+
- README file was updated with up to date information.
|
|
17
23
|
|
|
18
24
|
|
|
19
25
|
dogtail 1.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dogtail
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.dev4
|
|
4
4
|
Summary: GUI test tool and automation framework that uses Accessibility (AT-SPI) technologies to communicate with desktop applications.
|
|
5
5
|
Author-email: Zack Cerza <zcerza@redhat.com>, Ed Rousseau <rousseau@redhat.com>, David Malcolm <dmalcolm@redhat.com>, Vitezslav Humpa <vhumpa@redhat.com>, Michal Odehnal <modehnal@redhat.com>
|
|
6
6
|
License-Expression: GPL-2.0
|
|
@@ -23,7 +23,6 @@ Other than that, dogtail should work with any desktop environment that still run
|
|
|
23
23
|
|
|
24
24
|
# News
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
## Release of dogtail-2.x
|
|
28
27
|
|
|
29
28
|
Detailed information can be found in issue https://gitlab.com/dogtail/dogtail/-/issues/29.
|
|
@@ -122,10 +121,11 @@ Disabling Shadows in GTK4:
|
|
|
122
121
|
|
|
123
122
|
To disable window shadows, add the following CSS to your GTK4 configuration (`~/.config/gtk-4.0/gtk.css`):
|
|
124
123
|
|
|
124
|
+
```
|
|
125
125
|
window, .popover, .tooltip {
|
|
126
126
|
box-shadow: none;
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
```
|
|
129
129
|
|
|
130
130
|
# Using
|
|
131
131
|
|
|
@@ -168,6 +168,21 @@ API Documentation:
|
|
|
168
168
|
We have deprecated our mailing lists as well as IRC channel. Please use our GitLab for issues and merge requests! (Or possibly https://github.com/vhumpa/dogtail perhaps for your pull requests should you prefer to use github, but gitlab.com is preferred)
|
|
169
169
|
|
|
170
170
|
|
|
171
|
+
# Contributing
|
|
172
|
+
|
|
173
|
+
- **Bug Reports**: If you find a bug, check if an [issue](https://gitlab.com/dogtail/dogtail/issues) already exists. If not, please open one with a clear description and steps to reproduce it.
|
|
174
|
+
|
|
175
|
+
- **Feature Ideas**: Have a great idea? Open an [issue](https://gitlab.com/dogtail/dogtail/issues) to discuss it. This helps us align on the goal before you write any code.
|
|
176
|
+
|
|
177
|
+
- **Ready to Help**? Look for existing [issues](https://gitlab.com/dogtail/dogtail/issues). If you see one you'd like to work on, just leave a comment to let us know!
|
|
178
|
+
|
|
179
|
+
There are a few ways I would like to preserve the readability of the code.
|
|
180
|
+
|
|
181
|
+
- For functions and methods, use docstring to explain what it does, this way we can be sure it gets in the documentation.
|
|
182
|
+
- Use correct casing for classes, methods and variables. Most of the code base uses *snake_case*.
|
|
183
|
+
- Use full names for variables where possible. Single letter variables are not acceptable.
|
|
184
|
+
- Comments are sentences, they start with a capital letter and end with a dot.
|
|
185
|
+
|
|
171
186
|
# Version dogtail-1.x
|
|
172
187
|
|
|
173
188
|
The [dogtail-1.x](https://gitlab.com/dogtail/dogtail/-/tree/dogtail-1.x) is still available and if required will be updated and new versions will be released.
|
|
@@ -9,7 +9,6 @@ Other than that, dogtail should work with any desktop environment that still run
|
|
|
9
9
|
|
|
10
10
|
# News
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
## Release of dogtail-2.x
|
|
14
13
|
|
|
15
14
|
Detailed information can be found in issue https://gitlab.com/dogtail/dogtail/-/issues/29.
|
|
@@ -108,10 +107,11 @@ Disabling Shadows in GTK4:
|
|
|
108
107
|
|
|
109
108
|
To disable window shadows, add the following CSS to your GTK4 configuration (`~/.config/gtk-4.0/gtk.css`):
|
|
110
109
|
|
|
110
|
+
```
|
|
111
111
|
window, .popover, .tooltip {
|
|
112
112
|
box-shadow: none;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
```
|
|
115
115
|
|
|
116
116
|
# Using
|
|
117
117
|
|
|
@@ -154,6 +154,21 @@ API Documentation:
|
|
|
154
154
|
We have deprecated our mailing lists as well as IRC channel. Please use our GitLab for issues and merge requests! (Or possibly https://github.com/vhumpa/dogtail perhaps for your pull requests should you prefer to use github, but gitlab.com is preferred)
|
|
155
155
|
|
|
156
156
|
|
|
157
|
+
# Contributing
|
|
158
|
+
|
|
159
|
+
- **Bug Reports**: If you find a bug, check if an [issue](https://gitlab.com/dogtail/dogtail/issues) already exists. If not, please open one with a clear description and steps to reproduce it.
|
|
160
|
+
|
|
161
|
+
- **Feature Ideas**: Have a great idea? Open an [issue](https://gitlab.com/dogtail/dogtail/issues) to discuss it. This helps us align on the goal before you write any code.
|
|
162
|
+
|
|
163
|
+
- **Ready to Help**? Look for existing [issues](https://gitlab.com/dogtail/dogtail/issues). If you see one you'd like to work on, just leave a comment to let us know!
|
|
164
|
+
|
|
165
|
+
There are a few ways I would like to preserve the readability of the code.
|
|
166
|
+
|
|
167
|
+
- For functions and methods, use docstring to explain what it does, this way we can be sure it gets in the documentation.
|
|
168
|
+
- Use correct casing for classes, methods and variables. Most of the code base uses *snake_case*.
|
|
169
|
+
- Use full names for variables where possible. Single letter variables are not acceptable.
|
|
170
|
+
- Comments are sentences, they start with a capital letter and end with a dot.
|
|
171
|
+
|
|
157
172
|
# Version dogtail-1.x
|
|
158
173
|
|
|
159
174
|
The [dogtail-1.x](https://gitlab.com/dogtail/dogtail/-/tree/dogtail-1.x) is still available and if required will be updated and new versions will be released.
|
|
@@ -148,12 +148,12 @@ class GenericPredicate:
|
|
|
148
148
|
"""
|
|
149
149
|
|
|
150
150
|
string_to_represent_object = ""
|
|
151
|
-
string_to_represent_object += f"name:'{self.name
|
|
152
|
-
string_to_represent_object += f"role_name:'{self.role_name
|
|
153
|
-
string_to_represent_object += f"description:'{self.description
|
|
154
|
-
string_to_represent_object += f"label:'{self.label
|
|
155
|
-
string_to_represent_object += f"id:'{self.identifier
|
|
156
|
-
string_to_represent_object += f"showing_only:'{self.showing_only
|
|
151
|
+
string_to_represent_object += f"name:'{repr(self.name)}' "
|
|
152
|
+
string_to_represent_object += f"role_name:'{repr(self.role_name)}' "
|
|
153
|
+
string_to_represent_object += f"description:'{repr(self.description)}' "
|
|
154
|
+
string_to_represent_object += f"label:'{repr(self.label)}' "
|
|
155
|
+
string_to_represent_object += f"id:'{repr(self.identifier)}' "
|
|
156
|
+
string_to_represent_object += f"showing_only:'{repr(self.showing_only)}'"
|
|
157
157
|
return string_to_represent_object
|
|
158
158
|
|
|
159
159
|
|
|
@@ -2428,6 +2428,15 @@ class Node(object):
|
|
|
2428
2428
|
showing_only=showingOnly
|
|
2429
2429
|
)
|
|
2430
2430
|
|
|
2431
|
+
|
|
2432
|
+
def findAncestor(self, predicate, retry=True): # pylint: disable=invalid-name
|
|
2433
|
+
"""
|
|
2434
|
+
For backwards compatibility reasons. Wrapper for self.find_ancestor.
|
|
2435
|
+
"""
|
|
2436
|
+
|
|
2437
|
+
return self.find_ancestor(predicate, retry=retry)
|
|
2438
|
+
|
|
2439
|
+
|
|
2431
2440
|
def findChild(self, predicate, retry=True): # pylint: disable=invalid-name
|
|
2432
2441
|
"""
|
|
2433
2442
|
For backwards compatibility reasons. Wrapper for self.find_child.
|
|
@@ -2587,3 +2596,15 @@ try:
|
|
|
2587
2596
|
except AttributeError:
|
|
2588
2597
|
# Might be already deleted.
|
|
2589
2598
|
pass
|
|
2599
|
+
|
|
2600
|
+
try:
|
|
2601
|
+
del Atspi.Accessible.description
|
|
2602
|
+
except AttributeError:
|
|
2603
|
+
# Might be already deleted.
|
|
2604
|
+
pass
|
|
2605
|
+
|
|
2606
|
+
try:
|
|
2607
|
+
del Atspi.Accessible.attributes
|
|
2608
|
+
except AttributeError:
|
|
2609
|
+
# Might be already deleted.
|
|
2610
|
+
pass
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dogtail
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.dev4
|
|
4
4
|
Summary: GUI test tool and automation framework that uses Accessibility (AT-SPI) technologies to communicate with desktop applications.
|
|
5
5
|
Author-email: Zack Cerza <zcerza@redhat.com>, Ed Rousseau <rousseau@redhat.com>, David Malcolm <dmalcolm@redhat.com>, Vitezslav Humpa <vhumpa@redhat.com>, Michal Odehnal <modehnal@redhat.com>
|
|
6
6
|
License-Expression: GPL-2.0
|
|
@@ -23,7 +23,6 @@ Other than that, dogtail should work with any desktop environment that still run
|
|
|
23
23
|
|
|
24
24
|
# News
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
## Release of dogtail-2.x
|
|
28
27
|
|
|
29
28
|
Detailed information can be found in issue https://gitlab.com/dogtail/dogtail/-/issues/29.
|
|
@@ -122,10 +121,11 @@ Disabling Shadows in GTK4:
|
|
|
122
121
|
|
|
123
122
|
To disable window shadows, add the following CSS to your GTK4 configuration (`~/.config/gtk-4.0/gtk.css`):
|
|
124
123
|
|
|
124
|
+
```
|
|
125
125
|
window, .popover, .tooltip {
|
|
126
126
|
box-shadow: none;
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
```
|
|
129
129
|
|
|
130
130
|
# Using
|
|
131
131
|
|
|
@@ -168,6 +168,21 @@ API Documentation:
|
|
|
168
168
|
We have deprecated our mailing lists as well as IRC channel. Please use our GitLab for issues and merge requests! (Or possibly https://github.com/vhumpa/dogtail perhaps for your pull requests should you prefer to use github, but gitlab.com is preferred)
|
|
169
169
|
|
|
170
170
|
|
|
171
|
+
# Contributing
|
|
172
|
+
|
|
173
|
+
- **Bug Reports**: If you find a bug, check if an [issue](https://gitlab.com/dogtail/dogtail/issues) already exists. If not, please open one with a clear description and steps to reproduce it.
|
|
174
|
+
|
|
175
|
+
- **Feature Ideas**: Have a great idea? Open an [issue](https://gitlab.com/dogtail/dogtail/issues) to discuss it. This helps us align on the goal before you write any code.
|
|
176
|
+
|
|
177
|
+
- **Ready to Help**? Look for existing [issues](https://gitlab.com/dogtail/dogtail/issues). If you see one you'd like to work on, just leave a comment to let us know!
|
|
178
|
+
|
|
179
|
+
There are a few ways I would like to preserve the readability of the code.
|
|
180
|
+
|
|
181
|
+
- For functions and methods, use docstring to explain what it does, this way we can be sure it gets in the documentation.
|
|
182
|
+
- Use correct casing for classes, methods and variables. Most of the code base uses *snake_case*.
|
|
183
|
+
- Use full names for variables where possible. Single letter variables are not acceptable.
|
|
184
|
+
- Comments are sentences, they start with a capital letter and end with a dot.
|
|
185
|
+
|
|
171
186
|
# Version dogtail-1.x
|
|
172
187
|
|
|
173
188
|
The [dogtail-1.x](https://gitlab.com/dogtail/dogtail/-/tree/dogtail-1.x) is still available and if required will be updated and new versions will be released.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|