Handling Typeaheadcombo in Katalon Automation Testing

Hi Team,

We have issue in working with TypeaheadComboField in our application. Here we are trying to pass value in TypeaheadCombo as “Google” ,for the first time execution the user provided value was set in the TypeaheadCombo field and working as expected. But if we are trying execute same testcase (which contains the same script) as multiple time User Provided value was not set properly.

Example: While executing the script ,instead value as “Google” , the value set input as “oogle” in the TypeaheadCombo field.

Please find the below screenshots and kindly help us to solve the issue.

Screenshot 1:
autocomplete

Screenshot 2:
autocomplete1

Please find the script :

WebUI.click(findTestObject(‘Object Repository/Record Problem/div’))
WebUI.setText(findTestObject(‘Object Repository/Record Problem/input_Site_Ddl_Sites_text’), ‘Google’)
WebUI.click(findTestObject(‘Object Repository/Record Problem/td_Sierra ODC pvt ltd’))

Thanks in advance.

First try this…

WebUI.setText(findTestObject('Object Repository/Record Problem/input_Site_Ddl_Sites_text'), '')
WebUI.setText(findTestObject('Object Repository/Record Problem/input_Site_Ddl_Sites_text'), 'Google')

If that fails, add a short WebUI.delay between them.

If that fails, try sendKeys

Thanks for your reply @Russ_Thomas

We will work with the above point.