robo_appian 0.0.6__tar.gz → 0.0.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.

Potentially problematic release.


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

Files changed (21) hide show
  1. {robo_appian-0.0.6 → robo_appian-0.0.8}/PKG-INFO +1 -1
  2. {robo_appian-0.0.6 → robo_appian-0.0.8}/pyproject.toml +1 -1
  3. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/InputUtils.py +7 -0
  4. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/LabelUtils.py +7 -2
  5. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/LinkUtils.py +7 -7
  6. {robo_appian-0.0.6 → robo_appian-0.0.8}/LICENSE +0 -0
  7. {robo_appian-0.0.6 → robo_appian-0.0.8}/README.md +0 -0
  8. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/__init__.py +0 -0
  9. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/ButtonUtils.py +0 -0
  10. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/DateUtils.py +0 -0
  11. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/DropdownUtils.py +0 -0
  12. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/SearchInputUtils.py +0 -0
  13. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/TabUtils.py +0 -0
  14. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/TableUtils.py +0 -0
  15. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/components/__init__.py +0 -0
  16. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/controllers/ComponentDriver.py +0 -0
  17. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/controllers/__init__.py +0 -0
  18. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/exceptions/MyCustomError.py +0 -0
  19. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/exceptions/__init__.py +0 -0
  20. {robo_appian-0.0.6 → robo_appian-0.0.8}/robo_appian/utils/ComponentUtils.py +0 -0
  21. {robo_appian-0.0.6 → robo_appian-0.0.8}/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.6
3
+ Version: 0.0.8
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.6"
3
+ version = "0.0.8"
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,3 +1,4 @@
1
+ import stat
1
2
  from numpy import size
2
3
  from robo_appian.utils.ComponentUtils import ComponentUtils
3
4
  from selenium.webdriver.common.by import By
@@ -105,3 +106,9 @@ class InputUtils:
105
106
  def setValueByLabelText(wait: WebDriverWait, label: str, value: str):
106
107
  input_components = InputUtils.__findInputComponentsByLabel(wait, label)
107
108
  InputUtils.__setValueByComponents(wait, input_components, value)
109
+
110
+ @staticmethod
111
+ def setValueById(wait: WebDriverWait, component_id: str, value: str):
112
+ component = wait.until(EC.element_to_be_clickable((By.ID, component_id)))
113
+ InputUtils._setComponentValue(component, value)
114
+ return component
@@ -17,7 +17,7 @@ class LabelUtils:
17
17
  """
18
18
 
19
19
  @staticmethod
20
- def find(wait : WebDriverWait, label: str):
20
+ def find(wait: WebDriverWait, label: str):
21
21
  """
22
22
  Finds a label component by its text.
23
23
 
@@ -35,6 +35,11 @@ class LabelUtils:
35
35
  # This method locates a label component that contains the specified text.
36
36
  # It uses XPath to find the element that matches the text.
37
37
 
38
- xpath = f".//*[text()='{label}']"
38
+ xpath = f".//*[normalize-space(text())='{label}']"
39
39
  component = wait.until(EC.presence_of_element_located((By.XPATH, xpath)))
40
40
  return component
41
+
42
+ @staticmethod
43
+ def click(wait: WebDriverWait, label: str):
44
+ component = LabelUtils.find(wait, label)
45
+ component.click()
@@ -16,6 +16,11 @@ class LinkUtils:
16
16
  LinkUtils.click(wait, "Learn More")
17
17
 
18
18
  """
19
+ @staticmethod
20
+ def find(wait: WebDriverWait, label: str):
21
+ xpath = f'.//a[normalize-space(text())="{label}"]'
22
+ component = wait.until(EC.element_to_be_clickable((By.XPATH, xpath)))
23
+ return component
19
24
 
20
25
  @staticmethod
21
26
  def click(wait: WebDriverWait, label: str):
@@ -30,12 +35,7 @@ class LinkUtils:
30
35
  Example:
31
36
  LinkUtils.click(wait, "Learn More")
32
37
  """
33
- # This method locates a link that contains a span with the specified label text.
34
- # It uses XPath to find the element that matches the text and waits until it is clickable.
35
- # The link component is expected to have a structure where the label is within a span inside a paragraph element.
36
-
37
- xpath = f'.//p/span[text()="{label}"]'
38
- # component = wait.until(EC.presence_of_element_located((By.XPATH, xpath)) )
39
- component = wait.until(EC.element_to_be_clickable((By.XPATH, xpath)))
38
+
39
+ component = LinkUtils.find(wait. label)
40
40
  component.click()
41
41
  return component
File without changes
File without changes