K Merle
11/25/2022, 7:08 AMonNodeWithText
, but I'm not sure what's causing 2 nodes to be found. đź§µK Merle
11/25/2022, 7:09 AMjava.lang.AssertionError: Failed to perform text input.
Reason: Expected exactly '1' node but found '2' nodes that satisfy: (Text + EditableText contains 'Username' (ignoreCase: false))
Nodes found:
1) Node #123 at (l=42.0, t=350.0, r=1398.0, b=574.0)px, Tag: 'Username'
Focused = 'false'
ImeAction = 'Done'
EditableText = '+'
TextSelectionRange = 'TextRange(1, 1)'
Text = '[Username]'
Actions = [RequestFocus, GetTextLayoutResult, SetText, SetSelection, OnClick, OnLongClick, PasteText]
MergeDescendants = 'true'
Has 1 sibling
2) Node #111 at (l=196.0, t=144.0, r=709.0, b=247.0)px
Text = '[Username]'
Actions = [GetTextLayoutResult]
Has 2 siblings
It does work if I use testTag , but is it possible to handle this without testTag?Stylianos Gakis
11/25/2022, 1:37 PMonNodeWithText()
can’t handle that by itself since it can’t know which one to pick.K Merle
11/25/2022, 6:29 PMOutlineTextField
one?Stylianos Gakis
11/25/2022, 6:34 PMK Merle
11/25/2022, 6:43 PMtestTag