How to click on drop down item on this kind of drop down

I want click on “Delete” option in below drop down

I tried with available methods in katalon doc.. but still can’t click on it.

As it is not HTML select box but a kind of UI framework implementation, you can still use click() on the option you want.

Finally I used this code also… but it is not working.

if (WebUI.waitForElementClickable(findTestObject('Datalocker/Dataset/deleteDataset'), 30)) {
} else {
    throw new com.kms.katalon.core.exception.StepFailedException('cant click on the delete button')

it is showing this kind of error

Is your XPath correct? Please share a screenshot of expanded div dropdown-item element.

yes …i think no issues with xpath… using xpath i verified the element clickable or not. that step is passed. I think it means xpath is correct. Only thing is can’t click on it.

I’d recommend this XPath for Delete button:

//div[@class="dropdown-item" and text()="Delete"]

I can’t locate the element using the XPath displayed in exception.

1 Like

Yes…great…it is working now… Thank you so much… :grinning: :slight_smile:

Hi Team,

please assist with an xpath to this option menu list:

i want to select this option one using this xpath without success