Skip to content

Remove deprecated RPA.Desktop.Windows, fix locator parsing and Highlight Elements - #1343

Merged
mikahanninen merged 4 commits into
masterfrom
chore/remove-desktop-windows-major
Aug 23, 2026
Merged

Remove deprecated RPA.Desktop.Windows, fix locator parsing and Highlight Elements#1343
mikahanninen merged 4 commits into
masterfrom
chore/remove-desktop-windows-major

Conversation

@mikahanninen

@mikahanninen mikahanninen commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Breaking: remove the long-deprecated RPA.Desktop.Windows (pywinauto-based) library — it has emitted a deprecation warning pointing at RPA.Windows for a long time and is unmaintained. rpaframework bumped to 33.0.0.
  • Fix rpaframework-core's Windows locator tokenizer silently mis-parsing a strategy when a stray locator= prefix or unmatched quote leaks into the locator value (e.g. locator='executable:AsdfConfigurator.exe), instead of recognizing the executable: strategy. rpaframework-core bumped to 13.0.2.
  • RPA.Desktop's Highlight Elements now returns the list of matched element regions instead of discarding them.
  • Removed the two examples/ scripts that depended exclusively on the removed pywinauto API, since no RPA.Windows port could be verified without a Windows environment.

Fixes #1322, #1323, #1324.

Test plan

  • uv run pytest tests/python/ — 626 passed (packages/main)
  • uv run pytest tests/python/ — 144 passed, including 2 new locator-tokenizer cases (packages/core)
  • New unit tests for Highlight Elements return value (packages/main)
  • uv run pylint clean on both packages
  • Manual smoke test on Windows (not available in this environment) — recommend verifying RPA.Windows locator parsing and Highlight Elements on a Windows machine before release

🤖 Generated with Claude Code

…d Highlight Elements

BREAKING CHANGE: RPA.Desktop.Windows (pywinauto-based) is removed. It has
been deprecated for a long time in favor of RPA.Windows, which superseded
it. Also fixes rpaframework-core's Windows locator tokenizer silently
mis-parsing a strategy when a stray `locator=` prefix or unmatched quote
leaks into the value (e.g. `locator='executable:...`), and makes
RPA.Desktop's Highlight Elements return the element regions it already
computes instead of discarding them.

Fixes #1322, #1323, #1324.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 18, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

# Conflicts:
#	docs/source/releasenotes.rst
#	packages/main/uv.lock
@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown

Wheel artifact

Built from commit f84440c — download from the workflow run (Artifacts section at the bottom of the page).

Artifact name: rpaframework-wheel (retained 14 days)

mikahanninen and others added 2 commits July 30, 2026 22:27
- install_local no longer adds the current package as its own editable
  dependency, and exits early when there's nothing else to link.
- get_package_paths now reads the package name from PEP 621 [project]
  tables in addition to legacy [tool.poetry] ones.
- Run uv add non-interactively (in_stream=False).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Windows file names are case-insensitive, but _get_control_from_listed_windows
compared them with `==`. So `executable:notepad.exe` could not find a process
that Windows lists as `Notepad.exe`, which is what Windows 11 does — making the
documented `executable:` strategy unusable there.

Fold the comparison for `executable` only. `handle` is numeric and keeps exact
matching.

Found while verifying the #1323 fix against a real Windows 11 desktop: the
`executable:notepad.exe` locator from the issue could not resolve at all.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5fd658SbZtHYC6nGpE1H5
@mikahanninen
mikahanninen merged commit e8d1f1a into master Aug 23, 2026
15 checks passed
@mikahanninen
mikahanninen deleted the chore/remove-desktop-windows-major branch August 23, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPA.Desktop Wait for Element does not wait for element

1 participant