Recommended Free Tools
Compose UI tests search semantics nodes, not every composable or visible label as if it were a separate Android View. By default, finders search the merged semantics tree, where a button may absorb its text label. Print the tree first; then match the property and tree that actually expose the target.
Why a text finder can miss a Compose button
Compose testing is based on semantics: the information Compose exposes about UI elements for accessibility and testing. Not every composable creates its own node. In particular, clickable parents such as buttons can merge descendant semantics, so a label that looks like separate text on screen may be part of the button’s merged node instead.
Compose test finders search the merged tree by default. As Android Developers explains, “In Compose, because only some composables emit UI into the UI hierarchy, you need a different approach to matching UI elements.” Android Developers: Testing APIs
Inspect the semantics tree before changing the matcher
Start by checking that the expected text is present in the test state and spelled exactly as rendered. Then print the tree to learn which node exposes it:
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
composeTestRule.onRoot().printToLog("ComposeTree")
// Print the tree without merging descendant semantics.
composeTestRule.onRoot(useUnmergedTree = true).printToLog("ComposeTree")
The first call shows the default merged tree; the second shows the unmerged tree. Find the button or label in the output and note its properties. If the button node includes Text = '[Continue]', a text matcher can select that merged node. If the label appears only as a separate descendant in the unmerged tree, use that tree for the finder.
Choose a finder based on what the node exposes
| What you need to target | Use | When it fits |
|---|---|---|
| Text exposed by a node | onNodeWithText or hasText |
The target’s semantics include the expected text, either on the merged node or on a descendant when searching unmerged. |
| An accessible description, often for an icon-only control | A content-description finder or matcher | The control exposes a meaningful content description rather than visible text. |
| A deliberately assigned unique test handle | onNodeWithTag or a test-tag matcher |
A tag is the appropriate stable way to distinguish the target from other nodes. |
| A particular node among repeated matches | Combine the relevant matcher with a parent, ancestor, tag, or other constraint | The property is valid but not unique on the screen. |
Finder and matcher options are documented in the Compose UI test API reference. Text matching is one route into the semantics tree, not a guarantee that each visible text composable is independently searchable.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Use the unmerged tree only when you need a descendant
Set useUnmergedTree = true on the finder when the intended target is a descendant that merging hides as a separate node. It is not a universal fix: it changes which nodes the finder can search, and may select a child rather than the button you meant to test.
composeTestRule
.onNodeWithText("Continue")
.assertExists()
.assertIsDisplayed()
.performClick()
// Use when the intended text node exists only as an unmerged descendant.
composeTestRule
.onNodeWithText("Continue", useUnmergedTree = true)
.assertIsDisplayed()
The first finder uses the merged tree by default. The assertions and click are separate operations: the finder chooses a node, assertExists() verifies a match, assertIsDisplayed() checks visibility, and performClick() sends the action. The unmerged example is appropriate only if tree inspection shows the text on the descendant you intend to target. See Android Developers: Semantics in Compose testing.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Resolve repeated text and inaccessible-looking controls
When the same text appears more than once
A text matcher can match text represented on merged nodes. If several nodes expose the same label, narrow the match with a tag, a parent or ancestor relationship, or another relevant matcher. Do not assume the first matching node is the intended button.
When the control has no visible label
For an icon-only control, inspect the semantics output for a content description and match that exposed description. If no appropriate standard property makes a specific item locatable, a test tag or custom semantics may be suitable. Compose guidance recommends custom properties when standard finders and matchers make an item hard to locate—not merely to expose visual styling to a test. Android Developers: Common testing patterns
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Use the testing framework that matches the UI element
A screen can mix Compose and traditional Android Views, but their test finders do not cross that boundary automatically. Use ComposeTestRule for Compose nodes and Espresso for Views. If UiAutomator needs to access Compose test tags as resource IDs, configure testTagsAsResourceId on an appropriate ancestor. The interop setup and APIs depend on the Compose library version; check the current Compose testing interoperability guidance before using version-sensitive or experimental APIs.
A quick diagnostic sequence
- Confirm the expected label is in the current test state and verify its exact spelling.
- Print the default tree with
onRoot().printToLog("ComposeTree"); inspect the unmerged tree too if needed. - Identify whether the button node, a descendant, or another property exposes the target. Choose text, content description, or a tag accordingly.
- If the label is only available as an unmerged descendant, enable
useUnmergedTree = truefor that finder. - Constrain repeated matches to the intended node, assert existence and display as appropriate, and perform the action only after confirming the selection.
- If the target is an Android View or UiAutomator query rather than a Compose node, use the matching framework and required interop configuration.
The examples illustrate the documented APIs; their exact output depends on the screen’s semantics and test state.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsQuick Recap
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

