Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Apr 10, 2018 01:41

Problem

You are working with a text input field which contains validation of the text being entered into it. When working with the element.set command to enter the text, the validation does not work.

Solution

Many input fields which contain validation do not allow text to be "pushed" into them and instead expect letters to be entered one at a time. As a workaround, you can use the element.set command to enter the text except for the last character. For the last character you can you use a "type" command. Entering the last character in this way satisfies the requirements and allows validation to work properly.