Tab button leads to next field without selecting the value

Hi community,
I use the following script to make a tab in our web application:
WebUI.sendKeys(findTestObject(‘Input’), Keys.chord(‘Text String’, Keys.TAB))

In our web application the tab step works fine, but the value from the previous field doesn’t get selected.

The previous field is a typeahead, I enter a value, the system is searching for entries (in my case 1 entry is shown). I expect this value found to be selected when using tab button. In the web it is working fine, but when katalon is doing this, the value doesn’t get selected.

Any ideas what I could change?

Maybe you can try making your statement into two parts:

WebUI.setText(findTestObject('Input'), 'Text String')
WebUI.sendKeys(findTestObject('Input'), Keys.chord(Keys.TAB))
WebUI.sendKeys(findTestObject(‘Input’), Keys.chord('Text String'))
WebUI.sendKeys(findTestObject(‘Input’), Keys.chord(Keys.CONTROL, 'a'))
WebUI.sendKeys(findTestObject(‘Input’), Keys.chord(Keys.TAB))

That should do what you asked for, but it doesn’t mean it will work. I fancy there is something else going on that you have not considered or presented in your question.

some of these fields can be very sensitive to timings. When you enter it manually you probably pause before pressing tab, to give time for the value to appear. Could you try inserting a delay before the tab to see what happens?