Pop up with a cancel and ok button seem to not register when clicked on

Hi, I am getting this error when using record and play on the web. Everything else seems to work but when I get this pop up on the page to install our software I am prompted with a pop up dialog that says “OK” or “Cancel” if I click those buttons I get this error:

2018-11-29 16:01:15.262 e[1;31mERRORe[0;39m e[36mc.k.k.core.keyword.internal.KeywordMain -e[0;39m e[31m? Unable to click on object ‘Page_Product Details - Freedom Scie/button_Cancel’ (Root cause: org.openqa.selenium.ElementNotVisibleException: element not interactablee[0;39m

Any ideas or workarounds would be greatly appreciated. Thank you

Try using WebUI.acceptAlert() for OK and WebUI.dismissAlert()