itk-dev-shared-components 2.8.0__tar.gz → 2.8.1__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.
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/PKG-INFO +1 -1
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/eflyt/eflyt_case.py +13 -9
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components.egg-info/PKG-INFO +1 -1
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/pyproject.toml +1 -1
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/LICENSE +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/README.md +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/eflyt/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/eflyt/eflyt_login.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/eflyt/eflyt_search.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/eflyt/eflyt_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/graph/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/graph/authentication.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/graph/common.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/graph/file.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/graph/mail.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/graph/site.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/authentication.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/cpr.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/nova_cases.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/nova_documents.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/nova_notes.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/nova_objects.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/nova_tasks.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/kmd_nova/util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/misc/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/misc/address_lookup.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/misc/cpr_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/misc/cvr_lookup.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/misc/file_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/fmcacov.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/gridview_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/multi_session.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/opret_kundekontakt.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/sap_login.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/sap_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/sap/tree_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/smtp/__init__.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components/smtp/smtp_util.py +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components.egg-info/requires.txt +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/itk_dev_shared_components.egg-info/top_level.txt +0 -0
- {itk_dev_shared_components-2.8.0 → itk_dev_shared_components-2.8.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.1
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
@@ -130,7 +130,9 @@ def change_tab(browser: webdriver.Chrome, tab_index: int):
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
def approve_case(browser: webdriver.Chrome):
|
|
133
|
-
"""Approve a case
|
|
133
|
+
"""Approve a case.
|
|
134
|
+
If any person on the case is blocking approval, approve each person individually.
|
|
135
|
+
"""
|
|
134
136
|
change_tab(browser, 0)
|
|
135
137
|
|
|
136
138
|
deadline_field = browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_ncPersonTab_txtDeadline")
|
|
@@ -142,20 +144,22 @@ def approve_case(browser: webdriver.Chrome):
|
|
|
142
144
|
browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_stcPersonTab1_btnApproveYes").click()
|
|
143
145
|
|
|
144
146
|
approve_persons_button = browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_stcPersonTab1_btnGodkendAlle")
|
|
145
|
-
if
|
|
147
|
+
if approve_persons_button.is_enabled():
|
|
148
|
+
approve_persons_button.click()
|
|
149
|
+
else:
|
|
150
|
+
# Approve each person individually
|
|
151
|
+
person_count = len(browser.find_elements(By.XPATH, '//table[@id="ctl00_ContentPlaceHolder2_GridViewMovingPersons"]//tr')) - 1
|
|
146
152
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
rows.pop(0)
|
|
153
|
+
for i in range(person_count):
|
|
154
|
+
browser.find_element(By.XPATH, f'//table[@id="ctl00_ContentPlaceHolder2_GridViewMovingPersons"]//tr[{i+2}]//td[2]').click()
|
|
150
155
|
|
|
151
|
-
for row in rows:
|
|
152
|
-
row.find_element(By.XPATH, "td[2]").click()
|
|
153
156
|
browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_stcPersonTab1_btnGodkend").click()
|
|
154
157
|
approve_button = browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_stcPersonTab1_btnApproveYes")
|
|
155
158
|
if approve_button.is_displayed():
|
|
156
159
|
approve_button.click()
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
|
|
161
|
+
# Go back to the case
|
|
162
|
+
browser.find_element(By.XPATH, '//table[@id="ctl00_ContentPlaceHolder2_GridViewMovingPersons"]//tr[1]//td[2]').click()
|
|
159
163
|
|
|
160
164
|
|
|
161
165
|
def check_all_approved(browser: webdriver.Chrome) -> bool:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.1
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
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
|