Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to input text for edit text using Jetpack compose #410

Open
stowy opened this issue Dec 4, 2023 · 1 comment
Open

Unable to input text for edit text using Jetpack compose #410

stowy opened this issue Dec 4, 2023 · 1 comment

Comments

@stowy
Copy link

stowy commented Dec 4, 2023

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
Copy link
Author

stowy commented Dec 4, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant