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.
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)) {
WebUI.delay(5)
WebUI.click(findTestObject('Datalocker/Dataset/deleteDataset'))
} 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.
Yes…great…it is working now… Thank you so much…