Skip to content

Commit

Permalink
Merge branch 'master' into feature/crypto-aes256
Browse files Browse the repository at this point in the history
  • Loading branch information
mikahanninen committed Nov 21, 2023
2 parents 1a396c5 + 6a37e7e commit d50dad4
Show file tree
Hide file tree
Showing 7 changed files with 385 additions and 341 deletions.
2 changes: 1 addition & 1 deletion packages/core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rpaframework-core"
version = "11.2.3"
version = "11.3.0"
description = "Core utilities used by RPA Framework"
authors = ["RPA Framework <[email protected]>"]
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/RPA/core/windows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class WindowsElementsMixin:

def __init__(self, locators_path: Optional[str] = None):
self.logger = logging.getLogger(__name__)
self.list_processes = True
self.global_timeout: float = float(
auto.uiautomation.TIME_OUT_SECOND if IS_WINDOWS else 10
)
Expand Down
11 changes: 8 additions & 3 deletions packages/core/src/RPA/core/windows/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ def get_fullpath(pid: int) -> str:

@method
def list_windows(
self, icons: bool = False, icon_save_directory: Optional[str] = None
self,
icons: bool = False,
icon_save_directory: Optional[str] = None,
) -> List[Dict]:
windows = auto.GetRootControl().GetChildren()
process_list = get_process_list()
process_list = get_process_list() if self.ctx.list_processes else {}
win_list = []
for win in windows:
pid = win.ProcessId
Expand All @@ -87,10 +89,13 @@ def list_windows(
rectangle = (
[rect.left, rect.top, rect.right, rect.bottom] if rect else [None] * 4
)
name = process_list[pid] if pid in process_list else None
if not name and fullpath:
name = Path(fullpath).name
info = {
"title": win.Name,
"pid": pid,
"name": process_list[pid] if pid in process_list else None,
"name": name,
"path": fullpath,
"handle": handle,
"icon": icon_string,
Expand Down
372 changes: 193 additions & 179 deletions packages/main/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/main/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cryptography = "^41.0.3"
mss = "^6.0.0"
chardet = "^3.0.0"
PySocks = ">=1.5.6,!=1.5.7,<2.0.0"
selenium = "4.13.0"
selenium = "4.15.2"
click = "^8.1.2"
PyYAML = ">=5.4.1,<7.0.0"
tenacity = "^8.0.1"
Expand Down
337 changes: 180 additions & 157 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rpaframework-google = "^8.0.0"
rpaframework-openai = "^1.3.0"
rpaframework-recognition = "^5.2.0"
rpaframework-windows = "^7.4.0"
robotframework = "^5.0.1"

[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"
Expand Down

0 comments on commit d50dad4

Please sign in to comment.