Skip to content

How do I close an overlay on the screen

This example demonstrates closing an overlay.

In the solution shown below, you will see that the "Birthday To Age Calculator" popup is closed in HICC by passing "Keys.ESCAPE" as value to the "sendKeys" command.

Solution:

# Command Target Value
Closing the "Birthday To Age Calculator" popup
1 sendKeys
xpath=(//div[@class='birthdaypopupClose'])[1] Keys.ESCAPE 

Tips, Tricks, Gotchas & Best Practices:  

  • If "Keys.ESCAPE" action doesn't work, as an alternative use click command.


Feedback and Knowledge Base