QWeb 3.8.2__tar.gz → 3.8.3__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.
- {qweb-3.8.2 → qweb-3.8.3}/PKG-INFO +5 -3
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/_version.py +3 -3
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/download.py +43 -3
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/file.py +105 -12
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/icon.py +69 -18
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/input_.py +71 -2
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/text.py +50 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb.egg-info/PKG-INFO +5 -3
- {qweb-3.8.2 → qweb-3.8.3}/QWeb.egg-info/requires.txt +6 -1
- {qweb-3.8.2 → qweb-3.8.3}/README.md +1 -1
- {qweb-3.8.2 → qweb-3.8.3}/pyproject.toml +3 -1
- {qweb-3.8.2 → qweb-3.8.3}/LICENSE +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/MANIFEST.in +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/__init__.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/__main__.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/custom_config.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/__init__.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/actions.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/ajax.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/alert.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/bidi.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/blocks.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/__init__.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/android.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/bs_desktop.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/bs_mobile.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/chrome.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/edge.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/firefox.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/browser/safari.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/checkbox.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/config.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/config_defaults.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/cookies.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/decorators.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/dragdrop.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/dropdown.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/element.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/exceptions.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/file.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/frame.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/frame_checker.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/icon.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/input_.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/input_handler.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/javascript.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/find_text_from_textnodes.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_all_dropdown_elements_shadow_dom.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_all_frames_from_shadow_dom.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_all_input_elements_from_shadow_dom.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_by_attributes.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_by_label.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_childnodes.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_clickable.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_clickable_from_shadow_dom.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_item_elements_from_shadow_dom.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_parent_list.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_recursive_walk.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_text_elements_from_shadow_dom.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/get_visibility.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/highlight_element.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/install_monitor.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/spinner_busy.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/toast_notification.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/js/wait_status_lite.js +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/lists.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/meas.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/platform.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/screenshot.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/search_strategy.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/secrets.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/table.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/text.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/user.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/util.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/window.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/internal/xhr.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/__init__.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/ajax.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/alert.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/bidi.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/blocks.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/browser.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/checkbox.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/config.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/cookies.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/debug.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/download.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/dragdrop.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/dropdown.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/element.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/frame.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/javascript.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/lists.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/mouse.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/screenshot.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/table.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb/keywords/window.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb.egg-info/SOURCES.txt +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb.egg-info/dependency_links.txt +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/QWeb.egg-info/top_level.txt +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/example/CustomerLibrary/CustomerLib.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/example/CustomerLibrary/decorators.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/setup.cfg +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/setup.py +0 -0
- {qweb-3.8.2 → qweb-3.8.3}/versioneer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qweb
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.3
|
|
4
4
|
Summary: Keyword driven automation for the web
|
|
5
5
|
Author-email: "Copado Inc." <copadorobotictesting@copado.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
14
|
Classifier: Framework :: Robot Framework
|
|
14
15
|
Classifier: Framework :: Robot Framework :: Library
|
|
15
16
|
Requires-Python: <4.0,>3.7
|
|
@@ -27,7 +28,8 @@ Requires-Dist: robotframework-debuglibrary==2.5.0
|
|
|
27
28
|
Requires-Dist: selenium<5,>=4.27.0
|
|
28
29
|
Requires-Dist: Pillow>=12.2.0
|
|
29
30
|
Requires-Dist: scipy>=1.10.0
|
|
30
|
-
Requires-Dist: scikit-image==0.25.2
|
|
31
|
+
Requires-Dist: scikit-image==0.25.2; python_version < "3.14"
|
|
32
|
+
Requires-Dist: scikit-image>=0.26.0; python_version >= "3.14"
|
|
31
33
|
Requires-Dist: numpy>=2.0.0
|
|
32
34
|
Requires-Dist: opencv-python==4.11.0.86
|
|
33
35
|
Requires-Dist: xlib; sys_platform == "linux"
|
|
@@ -115,7 +117,7 @@ See more [examples](#examples).
|
|
|
115
117
|
|
|
116
118
|
---
|
|
117
119
|
## Requirements
|
|
118
|
-
Python **3.10-3.
|
|
120
|
+
Python **3.10-3.14** and Robot Framework 7.0 or above.
|
|
119
121
|
|
|
120
122
|
|
|
121
123
|
## Installation
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2026-
|
|
11
|
+
"date": "2026-09-28T10:41:15+0300",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "3.8.
|
|
14
|
+
"full-revisionid": "04de97236a8f09814dee4e1e949d4b3a514f42ec",
|
|
15
|
+
"version": "3.8.3"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -116,6 +116,34 @@ def is_tmp_file(filepath: str) -> bool:
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
def get_path(filename: str) -> Path:
|
|
119
|
+
"""Resolve a filename or path to an existing file on disk.
|
|
120
|
+
|
|
121
|
+
If ``filename`` is already an existing path, it is returned as-is. Otherwise
|
|
122
|
+
QWeb searches default folders in the following order.
|
|
123
|
+
|
|
124
|
+
**Finding ``files/`` and ``images/`` folders:** QWeb walks a directory tree
|
|
125
|
+
and uses the first matching folder name it encounters (usually the
|
|
126
|
+
shallowest). A project normally has one ``files/`` folder and one ``images/``
|
|
127
|
+
folder. If several exist, only the first match is used — provide a full path
|
|
128
|
+
to select a file from a specific folder.
|
|
129
|
+
|
|
130
|
+
1. User Downloads folder
|
|
131
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}`` (see below)
|
|
132
|
+
3. ``files/`` and ``images/`` anywhere under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
133
|
+
4. ``files/`` and ``images/`` anywhere under ``${EXECDIR}``
|
|
134
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
135
|
+
|
|
136
|
+
**Suite-local folders:** ``${SUITE SOURCE}`` points to the suite file itself.
|
|
137
|
+
QWeb checks ``files/`` and ``images/`` in the parent directory of the folder
|
|
138
|
+
that contains the suite file. For example, a suite at
|
|
139
|
+
``my_project/tests/smoke/accounts/create_account.robot`` resolves files from
|
|
140
|
+
``my_project/tests/smoke/files/``. This lets a nested test folder use its
|
|
141
|
+
own ``files/`` before a workspace-wide folder.
|
|
142
|
+
|
|
143
|
+
Set ``%{TEST_WORKSPACE_ROOT}`` to the project root when running individual
|
|
144
|
+
test files (for example cloud debug runs) so files are found regardless of
|
|
145
|
+
``${EXECDIR}`` depth. When unset, behavior is unchanged.
|
|
146
|
+
"""
|
|
119
147
|
if Path(filename).exists():
|
|
120
148
|
return Path(filename)
|
|
121
149
|
files = Path(BuiltIn().get_variable_value("${SUITE SOURCE}")).parent.parent / "files" / filename
|
|
@@ -123,10 +151,21 @@ def get_path(filename: str) -> Path:
|
|
|
123
151
|
Path(BuiltIn().get_variable_value("${SUITE SOURCE}")).parent.parent / "images" / filename
|
|
124
152
|
)
|
|
125
153
|
downloads = Path(get_downloads_dir()) / filename
|
|
154
|
+
paths = [downloads, files, images]
|
|
155
|
+
|
|
156
|
+
# get execdir paths
|
|
126
157
|
exec_dir = BuiltIn().get_variable_value("${EXECDIR}")
|
|
127
158
|
files_exec_dir = Path(f"{get_exec_subdir(exec_dir, 'files')}/{filename}")
|
|
128
159
|
images_exec_dir = Path(f"{get_exec_subdir(exec_dir, 'images')}/{filename}")
|
|
129
|
-
|
|
160
|
+
|
|
161
|
+
# get test workspace paths
|
|
162
|
+
test_workspace_root = os.environ.get("TEST_WORKSPACE_ROOT")
|
|
163
|
+
if test_workspace_root:
|
|
164
|
+
test_workspace_files = Path(f"{get_exec_subdir(test_workspace_root, 'files')}/{filename}")
|
|
165
|
+
test_workspace_images = Path(f"{get_exec_subdir(test_workspace_root, 'images')}/{filename}")
|
|
166
|
+
paths.extend([test_workspace_files, test_workspace_images])
|
|
167
|
+
|
|
168
|
+
paths.extend([files_exec_dir, images_exec_dir])
|
|
130
169
|
|
|
131
170
|
for path in paths:
|
|
132
171
|
logger.debug(f"{path=}")
|
|
@@ -134,14 +173,15 @@ def get_path(filename: str) -> Path:
|
|
|
134
173
|
logger.debug(f"Path exists: {path}")
|
|
135
174
|
return path
|
|
136
175
|
try:
|
|
137
|
-
base_path = BuiltIn().get_variable_value("${
|
|
176
|
+
base_path = BuiltIn().get_variable_value("${BASE_IMAGE_PATH}")
|
|
138
177
|
full_path = os.path.join(base_path, "{}".format(filename.lower()))
|
|
139
178
|
if not Path(full_path).exists():
|
|
140
179
|
raise QWebFileNotFoundError("File not found from base image path")
|
|
141
180
|
return Path(full_path)
|
|
142
181
|
except (TypeError, QWebFileNotFoundError) as e:
|
|
143
182
|
raise QWebFileNotFoundError(
|
|
144
|
-
"File not found from default folders.
|
|
183
|
+
"File not found from default folders. Use a full path, or set "
|
|
184
|
+
"%{TEST_WORKSPACE_ROOT} or ${BASE_IMAGE_PATH} if needed"
|
|
145
185
|
) from e
|
|
146
186
|
|
|
147
187
|
|
|
@@ -52,8 +52,26 @@ def use_pdf(filename: str) -> None:
|
|
|
52
52
|
Parameters
|
|
53
53
|
----------
|
|
54
54
|
filename : str
|
|
55
|
-
Default
|
|
56
|
-
|
|
55
|
+
Filename or path. See **Default folder resolution** in Notes when not
|
|
56
|
+
an existing path.
|
|
57
|
+
|
|
58
|
+
Notes
|
|
59
|
+
-----
|
|
60
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
61
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
62
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
63
|
+
exist.
|
|
64
|
+
|
|
65
|
+
1. User Downloads folder
|
|
66
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
67
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
68
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
69
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
70
|
+
|
|
71
|
+
Suite-local: for
|
|
72
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
73
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
74
|
+
project root when debugging individual test files.
|
|
57
75
|
|
|
58
76
|
Related keywords
|
|
59
77
|
----------------
|
|
@@ -79,8 +97,26 @@ def use_file(filename: str) -> None:
|
|
|
79
97
|
Parameters
|
|
80
98
|
----------
|
|
81
99
|
filename : str
|
|
82
|
-
Default
|
|
83
|
-
|
|
100
|
+
Filename or path. See **Default folder resolution** in Notes when not
|
|
101
|
+
an existing path.
|
|
102
|
+
|
|
103
|
+
Notes
|
|
104
|
+
-----
|
|
105
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
106
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
107
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
108
|
+
exist.
|
|
109
|
+
|
|
110
|
+
1. User Downloads folder
|
|
111
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
112
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
113
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
114
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
115
|
+
|
|
116
|
+
Suite-local: for
|
|
117
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
118
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
119
|
+
project root when debugging individual test files.
|
|
84
120
|
|
|
85
121
|
Related keywords
|
|
86
122
|
----------------
|
|
@@ -383,7 +419,27 @@ def zip_files(name_of_zip: str, files_to_zip: str) -> None:
|
|
|
383
419
|
name_of_zip : str
|
|
384
420
|
Name of the zip file created.
|
|
385
421
|
files_to_zip : str
|
|
386
|
-
Files to be zipped, separated by "," in case of multiple files.
|
|
422
|
+
Files to be zipped, separated by "," in case of multiple files. Each
|
|
423
|
+
entry is resolved from default folders when not an existing path. See
|
|
424
|
+
**Default folder resolution** in Notes.
|
|
425
|
+
|
|
426
|
+
Notes
|
|
427
|
+
-----
|
|
428
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
429
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
430
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
431
|
+
exist.
|
|
432
|
+
|
|
433
|
+
1. User Downloads folder
|
|
434
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
435
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
436
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
437
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
438
|
+
|
|
439
|
+
Suite-local: for
|
|
440
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
441
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
442
|
+
project root when debugging individual test files.
|
|
387
443
|
"""
|
|
388
444
|
if not name_of_zip.endswith(".zip"):
|
|
389
445
|
name_of_zip += ".zip"
|
|
@@ -423,10 +479,30 @@ def move_files(files_to_move: str, destination_folder: str) -> None:
|
|
|
423
479
|
Parameters
|
|
424
480
|
----------
|
|
425
481
|
files_to_move : str
|
|
426
|
-
Files to move, separated by "," in case of multiple files.
|
|
482
|
+
Files to move, separated by "," in case of multiple files. Each entry is
|
|
483
|
+
resolved from default folders when not an existing path. See **Default
|
|
484
|
+
folder resolution** in Notes.
|
|
427
485
|
destination_folder : str
|
|
428
486
|
Destination folder of the moved files.
|
|
429
487
|
|
|
488
|
+
Notes
|
|
489
|
+
-----
|
|
490
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
491
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
492
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
493
|
+
exist.
|
|
494
|
+
|
|
495
|
+
1. User Downloads folder
|
|
496
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
497
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
498
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
499
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
500
|
+
|
|
501
|
+
Suite-local: for
|
|
502
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
503
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
504
|
+
project root when debugging individual test files.
|
|
505
|
+
|
|
430
506
|
Related keywords
|
|
431
507
|
----------------
|
|
432
508
|
\`RemoveFile\`, \`SaveFile\`, \`UploadFile\`, \`VerifyFile\`
|
|
@@ -441,10 +517,7 @@ def move_files(files_to_move: str, destination_folder: str) -> None:
|
|
|
441
517
|
|
|
442
518
|
@keyword(tags=("File", "Verification"))
|
|
443
519
|
def verify_file(filename: str) -> Path:
|
|
444
|
-
"""Verify file exists.
|
|
445
|
-
|
|
446
|
-
If reference file are not in default folders (images, files, downloads) then
|
|
447
|
-
path should be defined. Returns path.
|
|
520
|
+
"""Verify file exists and return its resolved path.
|
|
448
521
|
|
|
449
522
|
Examples
|
|
450
523
|
--------
|
|
@@ -457,7 +530,26 @@ def verify_file(filename: str) -> Path:
|
|
|
457
530
|
Parameters
|
|
458
531
|
----------
|
|
459
532
|
filename : str
|
|
460
|
-
Filename or path to find.
|
|
533
|
+
Filename or path to find. See **Default folder resolution** in Notes
|
|
534
|
+
when not an existing path.
|
|
535
|
+
|
|
536
|
+
Notes
|
|
537
|
+
-----
|
|
538
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
539
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
540
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
541
|
+
exist.
|
|
542
|
+
|
|
543
|
+
1. User Downloads folder
|
|
544
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
545
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
546
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
547
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
548
|
+
|
|
549
|
+
Suite-local: for
|
|
550
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
551
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
552
|
+
project root when debugging individual test files.
|
|
461
553
|
"""
|
|
462
554
|
try:
|
|
463
555
|
path = download.get_path(filename)
|
|
@@ -465,5 +557,6 @@ def verify_file(filename: str) -> Path:
|
|
|
465
557
|
return path
|
|
466
558
|
except QWebFileNotFoundError as e:
|
|
467
559
|
raise QWebFileNotFoundError(
|
|
468
|
-
"File not found from default folders.
|
|
560
|
+
"File not found from default folders. Use a full path, or set "
|
|
561
|
+
"%{TEST_WORKSPACE_ROOT} or ${BASE_IMAGE_PATH} if needed"
|
|
469
562
|
) from e
|
|
@@ -44,10 +44,6 @@ def click_icon(
|
|
|
44
44
|
by comparing them to a reference image. The function searches the current screen content
|
|
45
45
|
for the image specified in the 'image' parameter.
|
|
46
46
|
|
|
47
|
-
If reference picture is not stored in default folders (images, files, downloads) then
|
|
48
|
-
either full path to image should be used or variable BASE_IMAGE_PATH should be defined
|
|
49
|
-
before using this keyword.
|
|
50
|
-
|
|
51
47
|
Examples
|
|
52
48
|
--------
|
|
53
49
|
.. code-block:: robotframework
|
|
@@ -55,7 +51,7 @@ def click_icon(
|
|
|
55
51
|
*** Variables ***
|
|
56
52
|
${BASE_IMAGE_PATH} ${CURDIR}${/}..${/}resources${/}images
|
|
57
53
|
|
|
58
|
-
BASE_IMAGE_PATH should lead to the folder where
|
|
54
|
+
``${BASE_IMAGE_PATH}`` should lead to the folder where reference icons are stored.
|
|
59
55
|
|
|
60
56
|
.. code-block:: robotframework
|
|
61
57
|
|
|
@@ -66,7 +62,8 @@ def click_icon(
|
|
|
66
62
|
Parameters
|
|
67
63
|
----------
|
|
68
64
|
image : str
|
|
69
|
-
Image name with or without extension
|
|
65
|
+
Image name with or without extension. See **Default folder resolution**
|
|
66
|
+
in Notes when not an existing path.
|
|
70
67
|
template_res_w : int
|
|
71
68
|
Reference image resolution / width. 1920 by default and
|
|
72
69
|
image will be scaled to most common resolutions.
|
|
@@ -83,6 +80,26 @@ def click_icon(
|
|
|
83
80
|
When set to False, the comparison is done in color, which provides a stricter assessment.
|
|
84
81
|
The default setting is True.
|
|
85
82
|
|
|
83
|
+
Notes
|
|
84
|
+
-----
|
|
85
|
+
**Default folder resolution:** Reference images are resolved by filename
|
|
86
|
+
using the same rules as other file keywords. When only a filename is given
|
|
87
|
+
and it is not an existing path, QWeb searches default folders. Directory
|
|
88
|
+
walks use the first ``files/`` or ``images/`` folder found — use a full
|
|
89
|
+
path or set ``${BASE_IMAGE_PATH}`` when several folders exist or images are
|
|
90
|
+
stored elsewhere.
|
|
91
|
+
|
|
92
|
+
1. User Downloads folder
|
|
93
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
94
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
95
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
96
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
97
|
+
|
|
98
|
+
Suite-local: for
|
|
99
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
100
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
101
|
+
project root when debugging individual test files.
|
|
102
|
+
|
|
86
103
|
Related keywords
|
|
87
104
|
----------------
|
|
88
105
|
\`ClickCell\`, \`ClickCheckbox\`, \`ClickElement\`,
|
|
@@ -125,10 +142,6 @@ def is_icon(
|
|
|
125
142
|
) -> bool:
|
|
126
143
|
r"""Check is the icon on the screen.
|
|
127
144
|
|
|
128
|
-
In case you want to use this keyword you always have to have reference images.
|
|
129
|
-
If reference image are not in default folders (images, files, downloads) then
|
|
130
|
-
BASE_IMAGE_PATH should be defined in a robot file before using this keyword.
|
|
131
|
-
|
|
132
145
|
Examples
|
|
133
146
|
--------
|
|
134
147
|
.. code-block:: robotframework
|
|
@@ -136,7 +149,7 @@ def is_icon(
|
|
|
136
149
|
*** Variables ***
|
|
137
150
|
${BASE_IMAGE_PATH} ${CURDIR}${/}..${/}resources${/}images
|
|
138
151
|
|
|
139
|
-
BASE_IMAGE_PATH should lead to the folder where
|
|
152
|
+
``${BASE_IMAGE_PATH}`` should lead to the folder where reference icons are stored.
|
|
140
153
|
|
|
141
154
|
.. code-block:: robotframework
|
|
142
155
|
|
|
@@ -149,7 +162,8 @@ def is_icon(
|
|
|
149
162
|
Parameters
|
|
150
163
|
----------
|
|
151
164
|
image : str
|
|
152
|
-
Image name with or without extension
|
|
165
|
+
Image name with or without extension. See **Default folder resolution**
|
|
166
|
+
in Notes when not an existing path.
|
|
153
167
|
template_res_w : int
|
|
154
168
|
Reference image resolution / width. 1920 by default and
|
|
155
169
|
image will be scaled to most common resolutions.
|
|
@@ -164,6 +178,26 @@ def is_icon(
|
|
|
164
178
|
When set to False, the comparison is done in color, which provides a stricter assessment.
|
|
165
179
|
The default setting is True.
|
|
166
180
|
|
|
181
|
+
Notes
|
|
182
|
+
-----
|
|
183
|
+
**Default folder resolution:** Reference images are resolved by filename
|
|
184
|
+
using the same rules as other file keywords. When only a filename is given
|
|
185
|
+
and it is not an existing path, QWeb searches default folders. Directory
|
|
186
|
+
walks use the first ``files/`` or ``images/`` folder found — use a full
|
|
187
|
+
path or set ``${BASE_IMAGE_PATH}`` when several folders exist or images are
|
|
188
|
+
stored elsewhere.
|
|
189
|
+
|
|
190
|
+
1. User Downloads folder
|
|
191
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
192
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
193
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
194
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
195
|
+
|
|
196
|
+
Suite-local: for
|
|
197
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
198
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
199
|
+
project root when debugging individual test files.
|
|
200
|
+
|
|
167
201
|
Related keywords
|
|
168
202
|
----------------
|
|
169
203
|
\`CaptureIcon\`, \`ClickIcon\`, \`VerifyIcon\`
|
|
@@ -207,10 +241,6 @@ def verify_icon(
|
|
|
207
241
|
by comparing them to a reference image. The function searches the current screen content
|
|
208
242
|
for the image specified in the 'image' parameter.
|
|
209
243
|
|
|
210
|
-
If reference picture is not stored in default folders (images, files, downloads) then
|
|
211
|
-
either full path to image should be used or variable BASE_IMAGE_PATH should be defined
|
|
212
|
-
before using this keyword.
|
|
213
|
-
|
|
214
244
|
LogMatchedIcons configuration can be used to log screenshots of matched images
|
|
215
245
|
to logs. By default matched images are not logged.
|
|
216
246
|
|
|
@@ -221,7 +251,7 @@ def verify_icon(
|
|
|
221
251
|
*** Variables ***
|
|
222
252
|
${BASE_IMAGE_PATH} ${CURDIR}${/}..${/}resources${/}images
|
|
223
253
|
|
|
224
|
-
BASE_IMAGE_PATH should lead to the folder where
|
|
254
|
+
``${BASE_IMAGE_PATH}`` should lead to the folder where reference icons are stored.
|
|
225
255
|
|
|
226
256
|
.. code-block:: robotframework
|
|
227
257
|
|
|
@@ -233,7 +263,8 @@ def verify_icon(
|
|
|
233
263
|
Parameters
|
|
234
264
|
----------
|
|
235
265
|
image : str
|
|
236
|
-
Image name with or without extension
|
|
266
|
+
Image name with or without extension. See **Default folder resolution**
|
|
267
|
+
in Notes when not an existing path.
|
|
237
268
|
template_res_w : int
|
|
238
269
|
Reference image resolution / width. 1920 by default and
|
|
239
270
|
image will be scaled to most common resolutions.
|
|
@@ -250,6 +281,26 @@ def verify_icon(
|
|
|
250
281
|
When set to False, the comparison is done in color, which provides a stricter assessment.
|
|
251
282
|
The default setting is True.
|
|
252
283
|
|
|
284
|
+
Notes
|
|
285
|
+
-----
|
|
286
|
+
**Default folder resolution:** Reference images are resolved by filename
|
|
287
|
+
using the same rules as other file keywords. When only a filename is given
|
|
288
|
+
and it is not an existing path, QWeb searches default folders. Directory
|
|
289
|
+
walks use the first ``files/`` or ``images/`` folder found — use a full
|
|
290
|
+
path or set ``${BASE_IMAGE_PATH}`` when several folders exist or images are
|
|
291
|
+
stored elsewhere.
|
|
292
|
+
|
|
293
|
+
1. User Downloads folder
|
|
294
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
295
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
296
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
297
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
298
|
+
|
|
299
|
+
Suite-local: for
|
|
300
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
301
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
302
|
+
project root when debugging individual test files.
|
|
303
|
+
|
|
253
304
|
Related keywords
|
|
254
305
|
----------------
|
|
255
306
|
\`CaptureIcon\`, \`ClickIcon\`, \`IsIcon\`
|
|
@@ -274,6 +274,31 @@ def type_texts(
|
|
|
274
274
|
... Phone=04049292243923 Address=Yellow street 33 C 44
|
|
275
275
|
TypeTexts ${cool_dict}
|
|
276
276
|
|
|
277
|
+
Parameters
|
|
278
|
+
----------
|
|
279
|
+
input_texts : dict or str
|
|
280
|
+
Robot dictionary or path to a ``.txt``/``.csv`` file. File paths are
|
|
281
|
+
resolved from default folders when not an existing path. See **Default
|
|
282
|
+
folder resolution** in Notes.
|
|
283
|
+
|
|
284
|
+
Notes
|
|
285
|
+
-----
|
|
286
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
287
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
288
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
289
|
+
exist.
|
|
290
|
+
|
|
291
|
+
1. User Downloads folder
|
|
292
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
293
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
294
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
295
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
296
|
+
|
|
297
|
+
Suite-local: for
|
|
298
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
299
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
300
|
+
project root when debugging individual test files.
|
|
301
|
+
|
|
277
302
|
Related keywords
|
|
278
303
|
----------------
|
|
279
304
|
\`PressKey\`, \`TypeSecret\`, \`TypeText\`, \`WriteText\`
|
|
@@ -388,6 +413,31 @@ def verify_input_values(
|
|
|
388
413
|
... Phone=04049292243923 Address=Yellow street 33 C 44
|
|
389
414
|
VerifyInputValues ${cool_dict}
|
|
390
415
|
|
|
416
|
+
Parameters
|
|
417
|
+
----------
|
|
418
|
+
input_values : dict or str
|
|
419
|
+
Robot dictionary or path to a ``.txt``/``.csv`` file. File paths are
|
|
420
|
+
resolved from default folders when not an existing path. See **Default
|
|
421
|
+
folder resolution** in Notes.
|
|
422
|
+
|
|
423
|
+
Notes
|
|
424
|
+
-----
|
|
425
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
426
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
427
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
428
|
+
exist.
|
|
429
|
+
|
|
430
|
+
1. User Downloads folder
|
|
431
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
432
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
433
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
434
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
435
|
+
|
|
436
|
+
Suite-local: for
|
|
437
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
438
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
439
|
+
project root when debugging individual test files.
|
|
440
|
+
|
|
391
441
|
Related keywords
|
|
392
442
|
----------------
|
|
393
443
|
\`VerifyInputValue\`
|
|
@@ -673,8 +723,9 @@ def upload_file(
|
|
|
673
723
|
----------
|
|
674
724
|
locator : str
|
|
675
725
|
Input label text, input's attribute value, xpath or index that locates the upload element.
|
|
676
|
-
filename :
|
|
677
|
-
Default
|
|
726
|
+
filename : str
|
|
727
|
+
File to upload. See **Default folder resolution** in Notes when not an
|
|
728
|
+
existing path.
|
|
678
729
|
anchor : str
|
|
679
730
|
Index number or text near the input field's locator element.
|
|
680
731
|
If the page contains many places where the locator is then anchor is used
|
|
@@ -691,6 +742,24 @@ def upload_file(
|
|
|
691
742
|
| limit_traverse : False. If limit traverse is set to false we are heading up to
|
|
692
743
|
| fifth parent element if needed when finding relative input element for some label.
|
|
693
744
|
|
|
745
|
+
Notes
|
|
746
|
+
-----
|
|
747
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
748
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
749
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
750
|
+
exist.
|
|
751
|
+
|
|
752
|
+
1. User Downloads folder
|
|
753
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
754
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
755
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
756
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
757
|
+
|
|
758
|
+
Suite-local: for
|
|
759
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
760
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
761
|
+
project root when debugging individual test files.
|
|
762
|
+
|
|
694
763
|
Raises
|
|
695
764
|
------
|
|
696
765
|
ValueError: File not found
|
|
@@ -1367,6 +1367,31 @@ def verify_any(texts_to_verify: Union[list[str], str], timeout: Union[int, float
|
|
|
1367
1367
|
# Follow up to check which state
|
|
1368
1368
|
${login}= IsText Login
|
|
1369
1369
|
|
|
1370
|
+
Parameters
|
|
1371
|
+
----------
|
|
1372
|
+
texts_to_verify : list or str
|
|
1373
|
+
Comma-separated texts, Robot list, or path to a ``.txt`` file. Text
|
|
1374
|
+
file paths are resolved from default folders when not an existing path.
|
|
1375
|
+
See **Default folder resolution** in Notes.
|
|
1376
|
+
|
|
1377
|
+
Notes
|
|
1378
|
+
-----
|
|
1379
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
1380
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
1381
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
1382
|
+
exist.
|
|
1383
|
+
|
|
1384
|
+
1. User Downloads folder
|
|
1385
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
1386
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
1387
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
1388
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
1389
|
+
|
|
1390
|
+
Suite-local: for
|
|
1391
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
1392
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
1393
|
+
project root when debugging individual test files.
|
|
1394
|
+
|
|
1370
1395
|
Related keywords
|
|
1371
1396
|
----------------
|
|
1372
1397
|
\`VerifyAll\`, \`VerifyFile\`, \`VerifyFileText\`,
|
|
@@ -1423,6 +1448,31 @@ def verify_all(texts_to_verify: Union[list[str], str], timeout: Union[int, float
|
|
|
1423
1448
|
${cool_list}= Create List Cat Mouse Dog Lion iddqd66402
|
|
1424
1449
|
VerifyAll ${cool_list}
|
|
1425
1450
|
|
|
1451
|
+
Parameters
|
|
1452
|
+
----------
|
|
1453
|
+
texts_to_verify : list or str
|
|
1454
|
+
Comma-separated texts, Robot list, or path to a ``.txt`` file. Text
|
|
1455
|
+
file paths are resolved from default folders when not an existing path.
|
|
1456
|
+
See **Default folder resolution** in Notes.
|
|
1457
|
+
|
|
1458
|
+
Notes
|
|
1459
|
+
-----
|
|
1460
|
+
**Default folder resolution:** When only a filename is given and it is not
|
|
1461
|
+
an existing path, QWeb searches default folders. Directory walks use the
|
|
1462
|
+
first ``files/`` or ``images/`` folder found — use a full path when several
|
|
1463
|
+
exist.
|
|
1464
|
+
|
|
1465
|
+
1. User Downloads folder
|
|
1466
|
+
2. Suite-local ``files/`` and ``images/`` near ``${SUITE SOURCE}``
|
|
1467
|
+
3. ``files/`` and ``images/`` under ``%{TEST_WORKSPACE_ROOT}`` (when set)
|
|
1468
|
+
4. ``files/`` and ``images/`` under ``${EXECDIR}``
|
|
1469
|
+
5. ``${BASE_IMAGE_PATH}`` if set
|
|
1470
|
+
|
|
1471
|
+
Suite-local: for
|
|
1472
|
+
``my_project/tests/smoke/accounts/create_account.robot``, QWeb checks
|
|
1473
|
+
``my_project/tests/smoke/files/``. Set ``%{TEST_WORKSPACE_ROOT}`` to the
|
|
1474
|
+
project root when debugging individual test files.
|
|
1475
|
+
|
|
1426
1476
|
Related keywords
|
|
1427
1477
|
----------------
|
|
1428
1478
|
\`VerifyAny\`, \`VerifyFile\`, \`VerifyFileText\`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qweb
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.3
|
|
4
4
|
Summary: Keyword driven automation for the web
|
|
5
5
|
Author-email: "Copado Inc." <copadorobotictesting@copado.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
14
|
Classifier: Framework :: Robot Framework
|
|
14
15
|
Classifier: Framework :: Robot Framework :: Library
|
|
15
16
|
Requires-Python: <4.0,>3.7
|
|
@@ -27,7 +28,8 @@ Requires-Dist: robotframework-debuglibrary==2.5.0
|
|
|
27
28
|
Requires-Dist: selenium<5,>=4.27.0
|
|
28
29
|
Requires-Dist: Pillow>=12.2.0
|
|
29
30
|
Requires-Dist: scipy>=1.10.0
|
|
30
|
-
Requires-Dist: scikit-image==0.25.2
|
|
31
|
+
Requires-Dist: scikit-image==0.25.2; python_version < "3.14"
|
|
32
|
+
Requires-Dist: scikit-image>=0.26.0; python_version >= "3.14"
|
|
31
33
|
Requires-Dist: numpy>=2.0.0
|
|
32
34
|
Requires-Dist: opencv-python==4.11.0.86
|
|
33
35
|
Requires-Dist: xlib; sys_platform == "linux"
|
|
@@ -115,7 +117,7 @@ See more [examples](#examples).
|
|
|
115
117
|
|
|
116
118
|
---
|
|
117
119
|
## Requirements
|
|
118
|
-
Python **3.10-3.
|
|
120
|
+
Python **3.10-3.14** and Robot Framework 7.0 or above.
|
|
119
121
|
|
|
120
122
|
|
|
121
123
|
## Installation
|
|
@@ -10,10 +10,15 @@ robotframework-debuglibrary==2.5.0
|
|
|
10
10
|
selenium<5,>=4.27.0
|
|
11
11
|
Pillow>=12.2.0
|
|
12
12
|
scipy>=1.10.0
|
|
13
|
-
scikit-image==0.25.2
|
|
14
13
|
numpy>=2.0.0
|
|
15
14
|
opencv-python==4.11.0.86
|
|
16
15
|
|
|
16
|
+
[:python_version < "3.14"]
|
|
17
|
+
scikit-image==0.25.2
|
|
18
|
+
|
|
19
|
+
[:python_version >= "3.14"]
|
|
20
|
+
scikit-image>=0.26.0
|
|
21
|
+
|
|
17
22
|
[:sys_platform == "darwin"]
|
|
18
23
|
pyobjc>=9.2
|
|
19
24
|
pyobjc-core>=9.2
|
|
@@ -18,6 +18,7 @@ classifiers = [
|
|
|
18
18
|
"Programming Language :: Python :: 3.11",
|
|
19
19
|
"Programming Language :: Python :: 3.12",
|
|
20
20
|
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Programming Language :: Python :: 3.14",
|
|
21
22
|
"Framework :: Robot Framework",
|
|
22
23
|
"Framework :: Robot Framework :: Library"
|
|
23
24
|
]
|
|
@@ -34,7 +35,8 @@ dependencies = [
|
|
|
34
35
|
"selenium>=4.27.0,<5",
|
|
35
36
|
"Pillow>=12.2.0",
|
|
36
37
|
"scipy>=1.10.0",
|
|
37
|
-
"scikit-image==0.25.2",
|
|
38
|
+
"scikit-image==0.25.2; python_version < '3.14'",
|
|
39
|
+
"scikit-image>=0.26.0; python_version >= '3.14'",
|
|
38
40
|
"numpy>=2.0.0",
|
|
39
41
|
"opencv-python==4.11.0.86",
|
|
40
42
|
# platform specific
|
|
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
|
|
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
|