Skip to content

Commit

Permalink
Merge pull request #28 from joao-voltarelli/fix-doc-application
Browse files Browse the repository at this point in the history
Adjusting link to Windows Applications documentation
  • Loading branch information
hhslepicka authored Oct 10, 2022
2 parents ae76c87 + 7005853 commit 45415b8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 6 additions & 3 deletions botcity/core/application/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def connect(backend=Backend.WIN_32, timeout=60000, **connection_selectors) -> Ap
timeout (int, optional): Maximum wait time (ms) to wait for connection.
Defaults to 60000ms (60s).
**connection_selectors: Attributes that can be used to connect to an application.
[See more details about the available selectors](https://documentation.botcity.dev).
[See more details about the available selectors\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/).
Returns
app (Application): The Application instance.
Expand Down Expand Up @@ -47,7 +48,8 @@ def find_window(app: Application, waiting_time=10000, **selectors) -> WindowSpec
waiting_time (int, optional): Maximum wait time (ms) to search for a hit.
Defaults to 10000ms (10s).
**selectors: Attributes that can be used to filter an element.
[See more details about the available selectors](https://documentation.botcity.dev).
[See more details about the available selectors\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/).
Returns
dialog (WindowSpecification): The window or control found.
Expand All @@ -72,7 +74,8 @@ def find_element(app: Application, from_parent_window: WindowSpecification = Non
waiting_time (int, optional): Maximum wait time (ms) to search for a hit.
Defaults to 10000ms (10s).
**selectors: Attributes that can be used to filter an element.
[See more details about the available selectors](https://documentation.botcity.dev).
[See more details about the available selectors\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/).
Returns
element (WindowSpecification): The element/control found.
Expand Down
2 changes: 2 additions & 0 deletions botcity/core/application/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
class Backend(str, enum.Enum):
"""
Supported accessibility technologies.
[See more details about the Backend types\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/#backend).
Attributes:
WIN_32 (str): 'win32' backend
Expand Down
9 changes: 6 additions & 3 deletions botcity/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,8 @@ def connect_to_app(self, backend=Backend.WIN_32, timeout=60000, **connection_sel
timeout (int, optional): Maximum wait time (ms) to wait for connection.
Defaults to 60000ms (60s).
**connection_selectors: Attributes that can be used to connect to an application.
[See more details about the available selectors](https://documentation.botcity.dev).
[See more details about the available selectors\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/).
Returns
app (Application): The Application instance.
Expand All @@ -1566,7 +1567,8 @@ def find_app_window(self, waiting_time=10000, **selectors) -> 'WindowSpecificati
waiting_time (int, optional): Maximum wait time (ms) to search for a hit.
Defaults to 10000ms (10s).
**selectors: Attributes that can be used to filter an element.
[See more details about the available selectors](https://documentation.botcity.dev).
[See more details about the available selectors\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/).
Returns
dialog (WindowSpecification): The window or control found.
Expand All @@ -1586,7 +1588,8 @@ def find_app_element(self, from_parent_window: 'WindowSpecification' = None,
waiting_time (int, optional): Maximum wait time (ms) to search for a hit.
Defaults to 10000ms (10s).
**selectors: Attributes that can be used to filter an element.
[See more details about the available selectors](https://documentation.botcity.dev).
[See more details about the available selectors\
](https://documentation.botcity.dev/frameworks/desktop/windows-apps/).
Returns
element (WindowSpecification): The element/control found.
Expand Down

0 comments on commit 45415b8

Please sign in to comment.