wcp-library 1.3.6__tar.gz → 1.3.8__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.
- {wcp_library-1.3.6 → wcp_library-1.3.8}/PKG-INFO +1 -1
- {wcp_library-1.3.6 → wcp_library-1.3.8}/pyproject.toml +1 -1
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/selenium_helper.py +24 -4
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/sql/postgres.py +2 -2
- {wcp_library-1.3.6 → wcp_library-1.3.8}/README.md +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/__init__.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/__init__.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/_credential_manager_asynchronous.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/_credential_manager_synchronous.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/api.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/ftp.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/internet.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/oracle.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/postgres.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/emailing.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/ftp/__init__.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/ftp/ftp.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/ftp/sftp.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/informatica.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/logging.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/sql/__init__.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/sql/oracle.py +0 -0
- {wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/time.py +0 -0
@@ -65,24 +65,44 @@ class SeleniumHelper:
|
|
65
65
|
if b.text == text:
|
66
66
|
return b
|
67
67
|
|
68
|
-
def wait_until_element_visible(self, css_element: str,
|
68
|
+
def wait_until_element_visible(self, css_element: Optional[str] = None, link_text: Optional[str] = None,
|
69
|
+
timeout: int = 30) -> None:
|
69
70
|
"""
|
70
71
|
Wait until an element is visible
|
71
72
|
|
73
|
+
Must pass one of: css_element or link_text
|
74
|
+
|
72
75
|
:param css_element:
|
76
|
+
:param link_text:
|
73
77
|
:param timeout:
|
74
78
|
:return:
|
75
79
|
"""
|
76
80
|
|
77
|
-
|
81
|
+
if not css_element and not link_text:
|
82
|
+
raise ValueError("Must pass one of: css_element or link_text")
|
83
|
+
|
84
|
+
if css_element:
|
85
|
+
WebDriverWait(self.driver, timeout).until(expected_conditions.presence_of_element_located((By.CSS_SELECTOR, css_element)))
|
86
|
+
elif link_text:
|
87
|
+
WebDriverWait(self.driver, timeout).until(expected_conditions.presence_of_element_located((By.LINK_TEXT, link_text)))
|
78
88
|
|
79
|
-
def wait_until_clickable(self, css_element: str,
|
89
|
+
def wait_until_clickable(self, css_element: Optional[str] = None, link_text: Optional[str] = None,
|
90
|
+
timeout: int = 30) -> None:
|
80
91
|
"""
|
81
92
|
Wait until an element is clickable
|
82
93
|
|
94
|
+
Must pass one of: css_element or link_text
|
95
|
+
|
83
96
|
:param css_element:
|
97
|
+
:param link_text:
|
84
98
|
:param timeout:
|
85
99
|
:return:
|
86
100
|
"""
|
87
101
|
|
88
|
-
|
102
|
+
if not css_element and not link_text:
|
103
|
+
raise ValueError("Must pass one of: css_element or link_text")
|
104
|
+
|
105
|
+
if css_element:
|
106
|
+
WebDriverWait(self.driver, timeout).until(expected_conditions.element_to_be_clickable((By.CSS_SELECTOR, css_element)))
|
107
|
+
elif link_text:
|
108
|
+
WebDriverWait(self.driver, timeout).until(expected_conditions.element_to_be_clickable((By.LINK_TEXT, link_text)))
|
@@ -317,8 +317,8 @@ class AsyncPostgresConnection(object):
|
|
317
317
|
:return: None
|
318
318
|
"""
|
319
319
|
|
320
|
-
self._session_pool = await
|
321
|
-
|
320
|
+
self._session_pool = await _async_connect_warehouse(self._username, self._password, self._hostname, self._port,
|
321
|
+
self._database, self.min_connections, self.max_connections)
|
322
322
|
|
323
323
|
async def set_user(self, credentials_dict: dict) -> None:
|
324
324
|
"""
|
File without changes
|
File without changes
|
File without changes
|
{wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/_credential_manager_asynchronous.py
RENAMED
File without changes
|
{wcp_library-1.3.6 → wcp_library-1.3.8}/wcp_library/credentials/_credential_manager_synchronous.py
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
|