Unable to click context menu item with Katalon Studio

I want to do automated tests with Katalon Studio. The problem is that I cannot click the context menu item because when I do that, the click event does not hit the item, but what is below. So if there is a button in my context menu, that button will be clicked instead of the context menu.

+3


source to share


1 answer


Additional information would be helpful to solve your case (screenshot, video, DOM information of this element).
Here I will try to give you a general solution: you need to add a timeout to wait for the context menu to appear on the screen.



  • You can do this using the Wait For Element Visible keyword to test the visibility of the specified element, or use the Wait For Element Attribute Value keyword to wait for a specific attribute that may indicate the visibility of this element.
  • If these keywords fail, you can add a hard delay using the delay keyword before trying to click on that context menu.
+3


source







All Articles