When running either a Robo Script Recorder or Espresso Test Recorder, when clicking on a custom view, the click action is not being recorded. I've checked to make sure that the custom onTouchListener is calling performClick() when Action.UP is called. Is there something else that needs to be done as well to make sure the recorders pickup the click actions from custom views?
Custom View Clicks not being Recorded
100 Views Asked by kingargyle At
1
There are 1 best solutions below
Related Questions in FIREBASE-TEST-LAB
- A native crash was detected: Flutter Integration test in Firebase test lab
- XCode UI Test Case failed to run on firebase test lab
- Can Firebase Test Lab test a Jetpack Compose app?
- Firebase testlab for Flutter app always gives timeout
- How do I run an app in debug mode using Firebase Test Lab with App Check enabled?
- Testing react-native audio playback app in Firebase Test Lab
- The script for Firebase test lab Robo test
- Flutter: handle google consent form with automated tests
- Firebase test lab Instrument test in that requires google login
- How to print logs in flutter integration tests running via gradlew
- Robo test question: How to get the app to open a deeplink first before start testing actions defined in robo script?
- Google Play Pre-launch report not working properly due to resigning
- App-Crawler and Firebase Robo Test can't perform a click on a RecyclerView. What am I doing wrong?
- Updating Android material version causes Firebase tests to fail for but still passes locally
- firebase test lab showing error The uploaded test APK does not contain the test runner class specified in the manifest file
Related Questions in ANDROID-ESPRESSO-RECORDER
- Unable to run a Robo script from Android Studio
- Could not launch Espresso Test Recorder
- How can we pass parameters to constructors in a Fragment while using them in Espresso Test Cases
- Espresso test cannot be recorded occured when Record Robo script clicked
- Espresso and Jetpack compose for app testing
- Could not GET 'https://repo.spring.io/plugins-release/com/facebook/shimmer/shimmer/null/shimmer-null.pom'. Received status code 401 from server:
- Test recorder for jetpack compose
- Espresso test is not finishing and it keeps on finding element when there is an issue in the application
- Espresso Test : app:compileDebugAndroidTestKotlin FAILED with Unresolved reference: PopupBackgroundView
- Espresso UI-Tests cannot find the views in my xmls and getting noMatchingViewException
- Changing from deprecated ActivityTestRule to ActivityScenarioRule breaks test
- AndroidStudio Running Recorded Espresso Test fails
- Espresso - How to tap on specific item of a BottomNavigationBar
- Espresso android - IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient already registered
- Can't find "record espresso test" in Android Studio
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For those that might run into this issue in the future, if you have a custom OnTouchListener that is being assigned to the view, make sure that the listener doesn't consume the event (i.e. return true). It should always return false. Also if you call performClick() as part of the ACTION_UP, make sure you break out of the switch for this case and not let it fall through to the bottom if you have another action case to be handled after it.
If you consume the events, then you interrupt the PerformClick#run() flow for the view, and th Espresso Recorder and Robo Script recorders can not register the events.
This information came from the Firebase Slack channel.