My website is all shadow dom (just shows generic web element), so I made an element for the textbox which will show in developer tools that I can use. After that I copied the JS path of the element on and pasted into the execute JavaScript action with .value=“text” at the end.
Using this::
This is the error (picture below) I am getting now after the above problem has been resolved. This is when I’m trying to input the text into the textbox. If I run the text input step individually, it runs without any error but it shows error if I run it with other steps or the whole test script.
the test error while running the test step with other steps:
Hi @mgg7934,
The error you see is happening because you cannot send keys to an element that has no events or no value.
From the next agent version 3.4.2 you will be able to perform sendkeys action with Robot.
Which should allow you to automate any basic scenario such as sendkeys and click actions.
I will be sure to update you here when it’s out.
You can click on the element,
And then when it’s available under the shadow dom element in the dev tools.
Create a javascript locator for the text field and then use .value="your text"
The element you have created is either not an input element, or setting it’s events to none disables the option to send keys to that element.
Please try to use the first method and create a javascript selector for the actual input field in your application.