You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using KScreen and UiScreen in the same test, switching back to KScreen after interacting with a UiScreen triggers an exception:
java.lang.IllegalArgumentException: No RemoteDescriptor registered for ViewAssertion: com.kaspersky.kaspresso.proxy.ViewAssertionProxy@XXXXXXX
This issue arises in multi-process testing environments where UiAutomator or EspressoRemote is involved. The ViewAssertionProxy registration seems to be lost after switching between processes.
To Reproduce
Steps to reproduce the behavior:
Use KScreen to interact with a screen in the main app process.
Switch to a UiScreen (using UiAutomator) in a separate process (e.g., an SDK or service).
Switch back to KScreen to interact with a view in the original app process.
Attempt to interact with views in the original process and observe the No RemoteDescriptor registered exception.
Expected behavior
The test should switch seamlessly between processes, and KScreen should be able to interact with views in the main app process after switching back from UiScreen.
Smartphone (please complete the following information):
Device: Android Emulator. Pixel 6 PRO
Version: API 35
Kaspresso version: 1.5.4
Espresso version: 3.6.1
UIAutomator version: 2.2.0
Additional context
Neither waitForIdleSync() nor IdlingRegistry resolves the issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using KScreen and UiScreen in the same test, switching back to KScreen after interacting with a UiScreen triggers an exception:
java.lang.IllegalArgumentException: No RemoteDescriptor registered for ViewAssertion: com.kaspersky.kaspresso.proxy.ViewAssertionProxy@XXXXXXX
This issue arises in multi-process testing environments where UiAutomator or EspressoRemote is involved. The ViewAssertionProxy registration seems to be lost after switching between processes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The test should switch seamlessly between processes, and KScreen should be able to interact with views in the main app process after switching back from UiScreen.
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: