Unable to send text to edit text element by accessibility ID from Jetpack compose
stowy opened this issue · 1 comments
stowy commented
I set the accessibility of a text field as follows:
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
If you click on the edit text above and send it passes the text
I'm using the robot library to send the input text which find field by accessibility Id.
KazuCocoa commented
I wondered if the "EditText" should have been selected. Or alternatively, https://github.com/appium/appium-uiautomator2-driver?tab=readme-ov-file#mobile-type may work after clicking the element