persona-dsl 26.1.20.8__py3-none-any.whl
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.
- persona_dsl/__init__.py +35 -0
- persona_dsl/components/action.py +10 -0
- persona_dsl/components/base_step.py +251 -0
- persona_dsl/components/combined_step.py +68 -0
- persona_dsl/components/expectation.py +10 -0
- persona_dsl/components/fact.py +10 -0
- persona_dsl/components/goal.py +10 -0
- persona_dsl/components/ops.py +7 -0
- persona_dsl/components/step.py +75 -0
- persona_dsl/expectations/generic/__init__.py +15 -0
- persona_dsl/expectations/generic/contains_item.py +19 -0
- persona_dsl/expectations/generic/contains_the_text.py +15 -0
- persona_dsl/expectations/generic/has_entries.py +21 -0
- persona_dsl/expectations/generic/is_equal.py +24 -0
- persona_dsl/expectations/generic/is_greater_than.py +18 -0
- persona_dsl/expectations/generic/path_equal.py +27 -0
- persona_dsl/expectations/web/__init__.py +5 -0
- persona_dsl/expectations/web/is_displayed.py +13 -0
- persona_dsl/expectations/web/matches_aria_snapshot.py +221 -0
- persona_dsl/expectations/web/matches_screenshot.py +160 -0
- persona_dsl/generators/__init__.py +5 -0
- persona_dsl/generators/api_generator.py +423 -0
- persona_dsl/generators/cli.py +431 -0
- persona_dsl/generators/page_generator.py +1140 -0
- persona_dsl/ops/api/__init__.py +5 -0
- persona_dsl/ops/api/json_as.py +104 -0
- persona_dsl/ops/api/json_response.py +48 -0
- persona_dsl/ops/api/send_request.py +41 -0
- persona_dsl/ops/db/__init__.py +5 -0
- persona_dsl/ops/db/execute_sql.py +22 -0
- persona_dsl/ops/db/fetch_all.py +29 -0
- persona_dsl/ops/db/fetch_one.py +22 -0
- persona_dsl/ops/kafka/__init__.py +4 -0
- persona_dsl/ops/kafka/message_in_topic.py +89 -0
- persona_dsl/ops/kafka/send_message.py +35 -0
- persona_dsl/ops/soap/__init__.py +4 -0
- persona_dsl/ops/soap/call_operation.py +24 -0
- persona_dsl/ops/soap/operation_result.py +24 -0
- persona_dsl/ops/web/__init__.py +37 -0
- persona_dsl/ops/web/aria_snapshot.py +87 -0
- persona_dsl/ops/web/click.py +30 -0
- persona_dsl/ops/web/current_path.py +17 -0
- persona_dsl/ops/web/element_attribute.py +24 -0
- persona_dsl/ops/web/element_is_visible.py +27 -0
- persona_dsl/ops/web/element_text.py +28 -0
- persona_dsl/ops/web/elements_count.py +42 -0
- persona_dsl/ops/web/fill.py +41 -0
- persona_dsl/ops/web/generate_page_object.py +118 -0
- persona_dsl/ops/web/input_value.py +23 -0
- persona_dsl/ops/web/navigate.py +52 -0
- persona_dsl/ops/web/press_key.py +37 -0
- persona_dsl/ops/web/rich_aria_snapshot.py +146 -0
- persona_dsl/ops/web/screenshot.py +68 -0
- persona_dsl/ops/web/table_data.py +43 -0
- persona_dsl/ops/web/wait_for_navigation.py +23 -0
- persona_dsl/pages/__init__.py +133 -0
- persona_dsl/pages/elements.py +998 -0
- persona_dsl/pages/page.py +44 -0
- persona_dsl/pages/virtual_page.py +94 -0
- persona_dsl/persona.py +125 -0
- persona_dsl/pytest_plugin.py +1064 -0
- persona_dsl/runtime/dist/persona_bundle.js +1077 -0
- persona_dsl/skills/__init__.py +7 -0
- persona_dsl/skills/core/base.py +41 -0
- persona_dsl/skills/core/skill_definition.py +30 -0
- persona_dsl/skills/use_api.py +251 -0
- persona_dsl/skills/use_browser.py +78 -0
- persona_dsl/skills/use_database.py +129 -0
- persona_dsl/skills/use_kafka.py +135 -0
- persona_dsl/skills/use_soap.py +66 -0
- persona_dsl/utils/__init__.py +0 -0
- persona_dsl/utils/artifacts.py +22 -0
- persona_dsl/utils/config.py +54 -0
- persona_dsl/utils/data_providers.py +159 -0
- persona_dsl/utils/decorators.py +80 -0
- persona_dsl/utils/metrics.py +69 -0
- persona_dsl/utils/naming.py +14 -0
- persona_dsl/utils/path.py +202 -0
- persona_dsl/utils/retry.py +51 -0
- persona_dsl/utils/taas_integration.py +124 -0
- persona_dsl/utils/waits.py +112 -0
- persona_dsl-26.1.20.8.dist-info/METADATA +35 -0
- persona_dsl-26.1.20.8.dist-info/RECORD +86 -0
- persona_dsl-26.1.20.8.dist-info/WHEEL +5 -0
- persona_dsl-26.1.20.8.dist-info/entry_points.txt +6 -0
- persona_dsl-26.1.20.8.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
from .elements import (
|
|
2
|
+
Element,
|
|
3
|
+
Strategy,
|
|
4
|
+
Button,
|
|
5
|
+
TextField,
|
|
6
|
+
Link,
|
|
7
|
+
Checkbox,
|
|
8
|
+
Radio,
|
|
9
|
+
Heading,
|
|
10
|
+
Paragraph,
|
|
11
|
+
Strong,
|
|
12
|
+
ListElement,
|
|
13
|
+
ListItem,
|
|
14
|
+
Table,
|
|
15
|
+
TableRow,
|
|
16
|
+
TableCell,
|
|
17
|
+
ColumnHeader,
|
|
18
|
+
RowHeader,
|
|
19
|
+
ComboBox,
|
|
20
|
+
ListBox,
|
|
21
|
+
Slider,
|
|
22
|
+
ProgressBar,
|
|
23
|
+
SearchBox,
|
|
24
|
+
SpinButton,
|
|
25
|
+
Switch,
|
|
26
|
+
Code,
|
|
27
|
+
BlockQuote,
|
|
28
|
+
Grid,
|
|
29
|
+
GridCell,
|
|
30
|
+
Navigation,
|
|
31
|
+
Main,
|
|
32
|
+
Banner,
|
|
33
|
+
ContentInfo,
|
|
34
|
+
Region,
|
|
35
|
+
Search,
|
|
36
|
+
Complementary,
|
|
37
|
+
Article,
|
|
38
|
+
Image,
|
|
39
|
+
Figure,
|
|
40
|
+
Form,
|
|
41
|
+
Group,
|
|
42
|
+
RadioGroup,
|
|
43
|
+
Dialog,
|
|
44
|
+
AlertDialog,
|
|
45
|
+
Alert,
|
|
46
|
+
Status,
|
|
47
|
+
Log,
|
|
48
|
+
Timer,
|
|
49
|
+
Menu,
|
|
50
|
+
MenuBar,
|
|
51
|
+
MenuItem,
|
|
52
|
+
MenuItemCheckbox,
|
|
53
|
+
MenuItemRadio,
|
|
54
|
+
TabList,
|
|
55
|
+
Tab,
|
|
56
|
+
TabPanel,
|
|
57
|
+
Tree,
|
|
58
|
+
TreeItem,
|
|
59
|
+
Meter,
|
|
60
|
+
ScrollBar,
|
|
61
|
+
Separator,
|
|
62
|
+
Toolbar,
|
|
63
|
+
Tooltip,
|
|
64
|
+
)
|
|
65
|
+
from .page import Page
|
|
66
|
+
from .virtual_page import VirtualPage
|
|
67
|
+
|
|
68
|
+
__all__ = [
|
|
69
|
+
"Element",
|
|
70
|
+
"Strategy",
|
|
71
|
+
"Button",
|
|
72
|
+
"TextField",
|
|
73
|
+
"Link",
|
|
74
|
+
"Checkbox",
|
|
75
|
+
"Radio",
|
|
76
|
+
"Heading",
|
|
77
|
+
"Paragraph",
|
|
78
|
+
"Strong",
|
|
79
|
+
"ListElement",
|
|
80
|
+
"ListItem",
|
|
81
|
+
"Table",
|
|
82
|
+
"TableRow",
|
|
83
|
+
"TableCell",
|
|
84
|
+
"ColumnHeader",
|
|
85
|
+
"RowHeader",
|
|
86
|
+
"ComboBox",
|
|
87
|
+
"ListBox",
|
|
88
|
+
"Slider",
|
|
89
|
+
"ProgressBar",
|
|
90
|
+
"SearchBox",
|
|
91
|
+
"SpinButton",
|
|
92
|
+
"Switch",
|
|
93
|
+
"Code",
|
|
94
|
+
"BlockQuote",
|
|
95
|
+
"Grid",
|
|
96
|
+
"GridCell",
|
|
97
|
+
"Navigation",
|
|
98
|
+
"Main",
|
|
99
|
+
"Banner",
|
|
100
|
+
"ContentInfo",
|
|
101
|
+
"Region",
|
|
102
|
+
"Search",
|
|
103
|
+
"Complementary",
|
|
104
|
+
"Article",
|
|
105
|
+
"Image",
|
|
106
|
+
"Figure",
|
|
107
|
+
"Form",
|
|
108
|
+
"Group",
|
|
109
|
+
"RadioGroup",
|
|
110
|
+
"Dialog",
|
|
111
|
+
"AlertDialog",
|
|
112
|
+
"Alert",
|
|
113
|
+
"Status",
|
|
114
|
+
"Log",
|
|
115
|
+
"Timer",
|
|
116
|
+
"Menu",
|
|
117
|
+
"MenuBar",
|
|
118
|
+
"MenuItem",
|
|
119
|
+
"MenuItemCheckbox",
|
|
120
|
+
"MenuItemRadio",
|
|
121
|
+
"TabList",
|
|
122
|
+
"Tab",
|
|
123
|
+
"TabPanel",
|
|
124
|
+
"Tree",
|
|
125
|
+
"TreeItem",
|
|
126
|
+
"Meter",
|
|
127
|
+
"ScrollBar",
|
|
128
|
+
"Separator",
|
|
129
|
+
"Toolbar",
|
|
130
|
+
"Tooltip",
|
|
131
|
+
"Page",
|
|
132
|
+
"VirtualPage",
|
|
133
|
+
]
|