Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinAppDriverUIRecorder on newer .NET versions #2011

Open
micrec90 opened this issue Jun 11, 2024 · 0 comments
Open

WinAppDriverUIRecorder on newer .NET versions #2011

micrec90 opened this issue Jun 11, 2024 · 0 comments

Comments

@micrec90
Copy link

micrec90 commented Jun 11, 2024

I have Visual Studio 2022 and Target framework set to .NET Framework 4.8.
When I build the project without any changes everything works fine. However, after upgrading the project to .NET 6 or 8 with the Upgrade Assistant I ran into some strange issues:

When the recorder is maximized:

  • doesn't register clicks on icons on the taskbar or tray (wi-fi/sound/battery icons)

When the recorder's app height is stretched (from top of the screen to the taskbar):

  • when the app's width surpasses the x coordinates of an icon in the task bar it doesn't register clicks on that icon
  • when the recorder overlaps with another window then the click on that overlapped part doesn't register (when clicking on the uncovered part is when it still works)
    When minimized or not streched it works fine.

When the clicks don't register then the public static IntPtr RunOnUiThread method doesn't pass msg as UiThreadTask.ActionAdded therefore the task is not added to the tree/combobox, however the inspect message (UiThreadTask.XPathReady) works without issue.

I've added some sketches to help visualize the different cases
small
overlayed
width
max

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

No branches or pull requests

1 participant