Alert command handles pop-up alerts. It supports two arguments “dismiss” and “accept”.
alert dismiss dismisses the alert popup
alert accept clicks ok on the popup
Select ALERT command from the action drop down, leave Screen name blank, give accept or dismiss in the Element key and leave the parameter section blank as shown below:
After completing this step, the test step will look as below: