A Vaadin grid contains an input field. How to enter into this input field with Vaadin Testbench 23.1.15? The GridTHTDElement Java class does not provide any methods for this.
Asked
Active
Viewed 50 times
0
-
You need to give more details to this question. Is the input field Vaadin TextField? How it has been added to Grid's cell? Using Component Renderer or is it used via Grid's Editor? Does the input field have id attribute set or other things that can help to determine specific field from the others? – Tatu Lund Apr 04 '23 at 12:27
-
Does the HTML help?:
I'm not the GUI developer. I'm the tester. -
The TextField is slotted, which means it is not in Shadow DOM, you should be able to find it using the id "vaadin-text-field-5". – Tatu Lund Apr 05 '23 at 13:44
-
Using ID "vaadin-text-field-5" doesn't seems to be stable... – gastendonk Apr 06 '23 at 15:16
-
1You can give dedicated id by using textField.setId("my-text-field") that will be stable. Note, it needs to be unique. – Tatu Lund Apr 08 '23 at 09:36