Introducing Composables One: Universal Components for Compose UI ->
Composables
Compose UI Test
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
Documentation
Theming
Unstyled Components
Universal Components
Blog
Component Catalogue
Jetpack Compose Reference
Getting Started
Overview
Installation
Components
Concepts
Custom Themes
Android XML Themes
Dynamic Themes
Theme Overrides
Modifiers
buildModifier
focusRing
outline
Components
Bottom Sheet
Bottom Sheet (Modal)
Button
Checkbox
Checkbox (TriState)
Dialog
Disclosure
Dropdown Menu
Icon
Modal
Progress Indicator
Radio Group
Scroll Area
Separators
Slider
Tab Group
Text
Text Field
Toggle Switch
UI Kit
Docs
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
Blog 870+
Compose UnstyledJetpack Compose API ReferenceUI KitBlog
Composable Functions
  • DeviceConfigurationOverride
  • PlatformTextInputMethodTestOverride
Classes
  • AndroidComposeUiTestEnvironment
  • ComposeNotIdleException
  • ComposeTimeoutException
  • ExperimentalTestApi
  • GestureScope
  • InternalTestApi
  • MouseButton
  • ScrollWheel
  • SelectionResult
  • SemanticsMatcher
  • SemanticsNodeInteraction
  • SemanticsNodeInteractionCollection
  • SemanticsSelector
  • StateRestorationTester
  • TestContext
  • TestMonotonicFrameClock
Interfaces
  • AndroidComposeUiTest
  • ComposeUiTest
  • DeviceConfigurationOverride
  • IdlingResource
  • InjectionScope
  • KeyInjectionScope
  • MainTestClock
  • MouseInjectionScope
  • MultiModalInjectionScope
  • RotaryInjectionScope
  • SemanticsNodeInteractionsProvider
  • TouchInjectionScope
Properties
  • bottom
  • bottomCenter
  • bottomLeft
  • bottomRight
  • center
  • centerLeft
  • centerRight
  • centerX
  • centerY
  • frameDelayMillis
  • height
  • isAltDown
  • isCtrlDown
  • isFnDown
  • isMetaDown
  • isShiftDown
  • left
  • right
  • top
  • topCenter
  • topLeft
  • topRight
  • width
Functions
  • addGlobalAssertion
  • advanceEventTime
  • AndroidComposeUiTestEnvironment
  • AndroidComposeUiTestEnvironmentNoSuspendingLambda
  • animateMoveAlong
  • animateMoveBy
  • animateMoveTo
  • assert
  • assertAll
  • assertAny
  • assertContentDescriptionContains
  • assertContentDescriptionEquals
  • assertCountEquals
  • assertHasClickAction
  • assertHasNoClickAction
  • assertHeightIsAtLeast
  • assertHeightIsEqualTo
  • assertIsDisplayed
  • assertIsEnabled
  • assertIsEqualTo
  • assertIsFocused
  • assertIsNotDisplayed
  • assertIsNotEnabled
  • assertIsNotFocused
  • assertIsNotSelected
  • assertIsOff
  • assertIsOn
  • assertIsSelectable
  • assertIsSelected
  • assertIsToggleable
  • assertLeftPositionInRootIsEqualTo
  • assertPositionInRootIsEqualTo
  • assertRangeInfoEquals
  • assertTextContains
  • assertTextEquals
  • assertTopPositionInRootIsEqualTo
  • assertTouchHeightIsEqualTo
  • assertTouchWidthIsEqualTo
  • assertValueEquals
  • assertWidthIsAtLeast
  • assertWidthIsEqualTo
  • cancel
  • captureToImage
  • click
  • DarkMode
  • doubleClick
  • down
  • dragAndDrop
  • filter
  • filterToOne
  • FontScale
  • FontWeightAdjustment
  • ForcedSize
  • getAlignmentLinePosition
  • getBoundsInRoot
  • getFirstLinkBounds
  • getUnclippedBoundsInRoot
  • hasAnyAncestor
  • hasAnyChild
  • hasAnyDescendant
  • hasAnySibling
  • hasClickAction
  • hasContentDescription
  • hasContentDescriptionExactly
  • hasImeAction
  • hasInsertTextAtCursorAction
  • hasNoClickAction
  • hasNoScrollAction
  • hasParent
  • hasPerformImeAction
  • hasProgressBarRangeInfo
  • hasRequestFocusAction
  • hasScrollAction
  • hasScrollToIndexAction
  • hasScrollToKeyAction
  • hasScrollToNodeAction
  • hasSetTextAction
  • hasStateDescription
  • hasTestTag
  • hasText
  • hasTextExactly
  • invokeGlobalAssertions
  • isDialog
  • isDisplayed
  • isEditable
  • isEnabled
  • isFocusable
  • isFocused
  • isHeading
  • isHiddenFromAccessibility
  • isNotDisplayed
  • isNotEnabled
  • isNotFocusable
  • isNotFocused
  • isNotSelected
  • isOff
  • isOn
  • isPopup
  • isRoot
  • isSelectable
  • isSelected
  • isToggleable
  • Keyboard
  • LayoutDirection
  • Locales
  • longClick
  • move
  • moveBy
  • movePointerBy
  • movePointerTo
  • moveTo
  • multiTouchSwipe
  • Navigation
  • onAllNodesWithContentDescription
  • onAllNodesWithTag
  • onAllNodesWithText
  • onAncestors
  • onChild
  • onChildAt
  • onChildren
  • onFirst
  • onLast
  • onNodeWithContentDescription
  • onNodeWithTag
  • onNodeWithText
  • onParent
  • onRoot
  • onSibling
  • onSiblings
  • percentOffset
  • performClick
  • performCustomAccessibilityActionWithLabel
  • performCustomAccessibilityActionWithLabelMatching
  • performFirstLinkClick
  • performGesture
  • performImeAction
  • performIndirectTouchEvent
  • performKeyInput
  • performKeyPress
  • performMouseInput
  • performMultiModalInput
  • performRotaryScrollInput
  • performScrollTo
  • performScrollToIndex
  • performScrollToKey
  • performScrollToNode
  • performSemanticsAction
  • performSemanticsActionUnit
  • performTextClearance
  • performTextInput
  • performTextInputSelection
  • performTextReplacement
  • performTouchInput
  • pinch
  • pressKey
  • printToLog
  • printToString
  • removeGlobalAssertion
  • requestFocus
  • rightClick
  • RoundScreen
  • runAndroidComposeUiTest
  • runAndroidComposeUiTestNonSuspendingLambda
  • runComposeUiTest
  • runComposeUiTestNonSuspendingLambda
  • runEmptyComposeUiTest
  • smoothScroll
  • swipe
  • swipeDown
  • swipeLeft
  • swipeRight
  • swipeUp
  • swipeWithVelocity
  • then
  • Touchscreen
  • tripleClick
  • tryPerformAccessibilityChecks
  • UiMode
  • up
  • waitUntilAtLeastOneExists
  • waitUntilDoesNotExist
  • waitUntilExactlyOneExists
  • waitUntilNodeCount
  • WindowInsets
  • withKeyDown
  • withKeysDown
  • withKeysToggled
  • withKeyToggled
Compose API Reference Compose UI Test

performTextClearance

Function

Common
fun SemanticsNodeInteraction.performTextClearance()

Clears the text in this node in similar way to IME.

    On this page
Sponsored By
by @alexstyl