Unable to find or detect locator for a droppdown which is powered by google

I am trying to send Text to a field and then want to click on the dropdown results, but as the field is powered by google and I am unable to find the locator of the dropdown and while recording with Katalon, it is ignoring the step of click, please assist me with how I can click on the results in this scenario

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

Hi @tarun.vadamodula, Please read this posting so folks can help you with your questions: [TIP] How To Help Us Help You!

1 Like

In this case, you may need to manually build your locator. Sometimes, pausing the screen can be very helpful for debugging dropdown issues.

The keyword mentioned below can also address your issue and provide additional capabilities.

@Keyword(keywordObject=‘WEB_CUSTOM_KEYWORD’)
def enhanced_ClickOnDropDown(TestObject to, String dropdownValue){
List dropdownval = WebUiCommonHelper.findWebElements(to, 10)
int totalItems = dropdownval.size()
//println("Total no of items in list are: "+totalItems)
for(int i=0; i<totalItems;i++) {
String strItem = dropdownval.getAt(i).getText()
if(strItem==dropdownValue) {
dropdownval.getAt(i).click()
break
}
}
}

Not concrete enough. We need more information.

Is the URL of your target public to the Internet? If so, please share it to us.