mbu-dev-shared-components 0.0.54__tar.gz → 0.0.55__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.
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/solteqtand/app_handler.py +19 -9
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/.github/workflows/pylint.yml +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/.gitignore +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/.pylintrc +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/LICENSE +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/README.md +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/solteqtand/db_handler.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/pyproject.toml +0 -0
- {mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/setup.cfg +0 -0
|
@@ -62,27 +62,37 @@ class SolteqTandApp:
|
|
|
62
62
|
|
|
63
63
|
return None
|
|
64
64
|
|
|
65
|
-
def wait_for_control(self, control_type, search_params, search_depth=1, timeout=30):
|
|
65
|
+
def wait_for_control(self, control_type, search_params, search_depth=1, timeout=30, retry_interval=0.5):
|
|
66
66
|
"""
|
|
67
67
|
Waits for a given control type to become available with the specified search parameters.
|
|
68
68
|
|
|
69
69
|
Args:
|
|
70
70
|
control_type: The type of control, e.g., auto.WindowControl, auto.ButtonControl, etc.
|
|
71
71
|
search_params (dict): Search parameters used to identify the control.
|
|
72
|
-
|
|
72
|
+
The keys must match the properties used in the control type, e.g., 'AutomationId', 'Name'.
|
|
73
73
|
search_depth (int): How deep to search in the user interface.
|
|
74
|
-
timeout (int):
|
|
74
|
+
timeout (int): Maximum time to wait for the control, in seconds.
|
|
75
|
+
retry_interval (float): Time to wait between retries, in seconds.
|
|
75
76
|
|
|
76
77
|
Returns:
|
|
77
|
-
Control: The control object if found, otherwise
|
|
78
|
+
Control: The control object if found, otherwise raises TimeoutError.
|
|
79
|
+
|
|
80
|
+
Raises:
|
|
81
|
+
TimeoutError: If the control is not found within the timeout period.
|
|
78
82
|
"""
|
|
79
83
|
end_time = time.time() + timeout
|
|
80
84
|
while time.time() < end_time:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
try:
|
|
86
|
+
control = control_type(searchDepth=search_depth, **search_params)
|
|
87
|
+
if control.Exists(0, 0):
|
|
88
|
+
return control
|
|
89
|
+
except Exception as e:
|
|
90
|
+
print(f"Error while searching for control: {e}")
|
|
91
|
+
|
|
92
|
+
time.sleep(retry_interval)
|
|
93
|
+
print(f"Retrying to find control: {search_params}...")
|
|
94
|
+
|
|
95
|
+
raise TimeoutError(f"Control with parameters {search_params} was not found within the {timeout} second timeout.")
|
|
86
96
|
|
|
87
97
|
def wait_for_control_to_disappear(self, control_type, search_params, search_depth=1, timeout=30):
|
|
88
98
|
"""
|
{mbu_dev_shared_components-0.0.54 → mbu_dev_shared_components-0.0.55}/.github/workflows/pylint.yml
RENAMED
|
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
|