robotframework-appiumlibrary icon indicating copy to clipboard operation
robotframework-appiumlibrary copied to clipboard

Unable to input text for edit text using Jetpack compose

Open stowy opened this issue 2 years ago • 1 comments

Not sure if this is a robot framework or an Appium issue, but trying to input text using:

Input Text    accessibility_id=email    ${VALID_EMAIL}

Fails when using jetpack compose to set accessibility IDs, eg using:

                    OutlineTextField(
                        value = email,
                        onValueChange = viewModel::onEmailChange,
                        keyboardOptions = KeyboardOptions(
                            keyboardType = KeyboardType.Email,
                            imeAction = ImeAction.Next
                        ),
                        modifier = Modifier
                            .fillMaxWidth()
                            .focusRequester(focusRequester)
                            .semantics(mergeDescendants = true) {
                                testTag = "email";
                                testTagsAsResourceId = true},
                    )

It says the element cannot have the value set, eg see attached screenshot

Screenshot 2023-12-04 at 4 55 04 pm

If you click on the edit text above and send it passes the text

stowy avatar Dec 04 '23 06:12 stowy

I duplicated this issue over at Appium UIAutomator github and they suggested possibly using mobile:type to type the text rather than send text. Does Robot framework support sending text via this method?

stowy avatar Dec 04 '23 22:12 stowy

Due to lack of activity I am closing this ticket. If you feel this is still relevant please open a new one.

Note also that AppiumLibrary is currently going through some revisions to make it useful and compatible with current tools. If you want to see what we have planned review the milestones or reach out to the current maintainers.

emanlove avatar Sep 01 '25 14:09 emanlove