Port missing .NET MAUI helper methods to complete UITestHelpers library #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR ports over 30+ helper extension methods from the latest .NET MAUI codebase to complete the Plugin.Maui.UITestHelpers library, addressing the gap identified in issue #52.
What was added
Enhanced Element Interaction
TryGetText()andReadText()methods for improved text handling with try patternsRightClick()andPressDown()methods for advanced mouse/touch interactionsTouchAndHoldCoordinates()for coordinate-based touch gesturesDoubleTapCoordinates()andTapCoordinates()with special Catalyst handlingNavigation & UI Helpers
TapBackArrow()methods with platform-specific back button queries for Android, iOS, Catalyst, and WindowsSwipeBackNavigation()with gesture navigation detection for Android and interactive pop gesture for iOSTapDisplayAlertButton()for handling alert dialogs across platformsTapTab()andWaitForTabElement()with platform-aware tab interaction (uppercase conversion for Android)WaitForElementTillPageNavigationSettled()to prevent race conditions during navigationDevice & Platform Features
EnterFullScreen()andExitFullScreen()for Catalyst full screen supportToggleSystemAnimations()to control system animations on Android and CatalystUnlock()method withunlockTypeandunlockKeyparametersGetPerformanceMemoryInfo()for memory performance monitoring on AndroidDeveloper Utilities
PrintTree()for debugging UI hierarchy by outputting page sourceIsElementVisible()for checking element visibility with timeout handlingTapWithRetriesUntilElementReady()for reliable element interaction with retry logicIncreaseStepper()andDecreaseStepper()for stepper control interactionEnhanced Wait Operations
WaitForAnyElement()to wait for any element from a collectionWaitForTextToBePresentInElement()with optional timeout parameterPressEnter()for keyboard inputScrolling Enhancements
ScrollDownTo()andScrollUpTo()methods for scrolling to specific elements within containersImplementation Details
All methods include comprehensive XML documentation matching MAUI standards and maintain full backward compatibility. Platform-specific behaviors are handled appropriately:
The implementation follows the same patterns as existing methods in the library, using the command executor pattern for cross-platform functionality while providing platform-specific optimizations where needed.
Fixes #52.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.mscurl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.