trackpadInputClick
@Sampled
fun trackpadInputClick() {
composeTestRule.onNodeWithTag("myComponent").performTrackpadInput {
// Click in the middle of the node
click(center)
}
}Executes the trackpad gesture specified in the given block.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
@Sampled
fun trackpadInputClick() {
composeTestRule.onNodeWithTag("myComponent").performTrackpadInput {
// Click in the middle of the node
click(center)
}
}Content updated: