Skip to content

Throw on non-Windows for Windows-only APIs#5

Merged
Redth merged 1 commit intomainfrom
add-windws-support
Feb 10, 2026
Merged

Throw on non-Windows for Windows-only APIs#5
Redth merged 1 commit intomainfrom
add-windws-support

Conversation

@Redth
Copy link
Copy Markdown
Owner

@Redth Redth commented Feb 10, 2026

Add #else stubs that throw PlatformNotSupportedException for Windows-only APIs (BackAsync, PressKeyAsync, DetectAlertAsync, DismissAlertAsync, HandleAlertIfPresentAsync, GetAccessibilityTreeAsync, EnsureWindows). This makes calling these methods on non-Windows platforms fail fast with a clear error message.

Add #else stubs that throw PlatformNotSupportedException for Windows-only APIs (BackAsync, PressKeyAsync, DetectAlertAsync, DismissAlertAsync, HandleAlertIfPresentAsync, GetAccessibilityTreeAsync, EnsureWindows). This makes calling these methods on non-Windows platforms fail fast with a clear error message.
@Redth Redth merged commit 9c4e59d into main Feb 10, 2026
2 checks passed
@Redth Redth mentioned this pull request Mar 8, 2026
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.

1 participant