Hoover over and Click an element

I want to hoover over an element and click on another element, glad if anyone can help me on this.

When you hoover over “Expires” element, you will see another arrow element for sorting items in ascending or descending order.

I want to click on arrow element in order to sort items in the column.

Can you paste HTML code block for that part ?


I want to click on the highlighted element in order to sort column items.

Hey Thushar,

If you right click on the element and select inspect, in the webconsole you should see the specific code which is the “sorting” button. You can define an object based on that element ID and let Katalon click on it.

@thushar.ameen, i think you can solve this by creating 2 test objects. One for Expires (without arrows), other for that down arrow.

WebUI.mouseOver(findTestObject( clean_expires_object_here ))

WebUI.waitForElementClickable(findTestObject( sorting_down_arrow_object_here ), 1)

WebUI.click(findTestObject( sorting_down_arrow_object_here ))