E2ETestScope
Primary execution scope for a Parikshan end-to-end test scenario.
E2ETestScope provides an intent-based DSL for driving Compose Multiplatform user interfaces across Android, iOS, Desktop, and Wasm. Inside this scope, you perform actions (click, input, scroll), assert UI state (assertVisible, assertText), and handle platform-conditional logic.
All methods automatically handle element polling, visibility verification, and virtual cursor updates.
See also
Properties
Functions
Resolves a relative path to an absolute path inside the project's build and report output directory.
Asserts that executing block fails with an AssertionError containing messageContains.
Performs a physical touch or mouse drag gesture from (fromX, fromY) to (toX, toY) over durationMs.
Executes the provided test block concurrently across each active target driver in parallel.
Fetches the entire current UI hierarchy as a list of NodeSnapshots.
Returns true if the current test execution target is an Android device or emulator.
Returns true if the current test execution target is JVM Desktop.
Returns true if the current test execution target is an iOS simulator or device.
Returns true if the current test execution target is Web (WasmJs).
Force-terminates and relaunches the application process under test while maintaining the active test connection session.
Resolves and returns a NodeSnapshot for the element matching the provided selector.
Resolves and returns a NodeSnapshot for the element matching the provided selector string.
Resolves and returns a visible NodeSnapshot matching the provided selector.
Resolves and returns a visible NodeSnapshot matching the provided selector string.
Captures a screenshot of the current application screen and saves it as a PNG to path.
Helper that resolves a logical name into a standard screenshot file path inside the build directory.
Repeatedly scrolls the container matching containerSelector in direction until targetSelector becomes visible.
Repeatedly scrolls the container matching string containerTag in direction until targetTag becomes visible.
Captures a screenshot of the current application screen and saves it as a PNG to hostPath.