robo_appian 0.0.17__tar.gz → 0.0.18__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.

Potentially problematic release.


This version of robo_appian might be problematic. Click here for more details.

Files changed (22) hide show
  1. {robo_appian-0.0.17 → robo_appian-0.0.18}/PKG-INFO +1 -1
  2. {robo_appian-0.0.17 → robo_appian-0.0.18}/pyproject.toml +1 -1
  3. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/TabUtils.py +13 -8
  4. {robo_appian-0.0.17 → robo_appian-0.0.18}/LICENSE +0 -0
  5. {robo_appian-0.0.17 → robo_appian-0.0.18}/README.md +0 -0
  6. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/__init__.py +0 -0
  7. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/ButtonUtils.py +0 -0
  8. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/DateUtils.py +0 -0
  9. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/DropdownUtils.py +0 -0
  10. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/InputUtils.py +0 -0
  11. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/LabelUtils.py +0 -0
  12. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/LinkUtils.py +0 -0
  13. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/SearchDropdownUtils.py +0 -0
  14. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/SearchInputUtils.py +0 -0
  15. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/TableUtils.py +0 -0
  16. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/components/__init__.py +0 -0
  17. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/controllers/ComponentDriver.py +0 -0
  18. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/controllers/__init__.py +0 -0
  19. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/exceptions/MyCustomError.py +0 -0
  20. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/exceptions/__init__.py +0 -0
  21. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/utils/ComponentUtils.py +0 -0
  22. {robo_appian-0.0.17 → robo_appian-0.0.18}/robo_appian/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robo_appian
3
- Version: 0.0.17
3
+ Version: 0.0.18
4
4
  Summary: Automate your Appian code testing with Python. Boost quality, save time.
5
5
  Author: Dinil Mithra
6
6
  Author-email: dinilmithra@mailme@gmail.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "robo_appian"
3
- version = "0.0.17"
3
+ version = "0.0.18"
4
4
  description = "Automate your Appian code testing with Python. Boost quality, save time."
5
5
  authors = ["Dinil Mithra <dinilmithra@mailme@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,5 +1,7 @@
1
1
  from selenium.webdriver.common.by import By
2
2
  from selenium.webdriver.support import expected_conditions as EC
3
+ from selenium.webdriver.support.ui import WebDriverWait
4
+ from selenium.webdriver.remote.webelement import WebElement
3
5
  from robo_appian.utils.ComponentUtils import ComponentUtils
4
6
 
5
7
 
@@ -22,9 +24,16 @@ class TabUtils:
22
24
 
23
25
  driver.quit()
24
26
  """
27
+ @staticmethod
28
+ def __click(wait: WebDriverWait, component: WebElement, label: str):
29
+ try:
30
+ component = wait.until(EC.element_to_be_clickable(component))
31
+ component.click()
32
+ except Exception:
33
+ raise Exception(f"Tab with label '{label}' is not clickable.")
25
34
 
26
35
  @staticmethod
27
- def findTabByLabelText(wait, label):
36
+ def findTabByLabelText(wait: WebDriverWait, label: str) -> WebElement:
28
37
  xpath = f'//div/div[@role="link" ]/div/div/div/div/div/p[normalize-space(.)="{label}"]'
29
38
  try:
30
39
  component = wait.until(EC.visibility_of_element_located((By.XPATH, xpath)))
@@ -33,16 +42,12 @@ class TabUtils:
33
42
  return component
34
43
 
35
44
  @staticmethod
36
- def selectTabByLabelText(wait, label):
45
+ def selectTabByLabelText(wait: WebDriverWait, label: str):
37
46
  component = TabUtils.findTabByLabelText(wait, label)
38
- try:
39
- component = wait.until(EC.element_to_be_clickable(component))
40
- except Exception:
41
- raise Exception(f"Tab with label '{label}' is not clickable.")
42
- component.click()
47
+ TabUtils.__click(wait, component, label)
43
48
 
44
49
  @staticmethod
45
- def checkTabSelectedByLabelText(wait, label):
50
+ def checkTabSelectedByLabelText(wait: WebDriverWait, label: str):
46
51
  component = TabUtils.findTabByLabelText(wait, label)
47
52
 
48
53
  select_text = "Selected Tab."
File without changes
File without changes