I ran this script more than 50 times and 2-3 times I was able to run this script error free. But most of the times it fails at step #12 where is supposed to verify an element after Modal pop-up is closed. Attached zip contains error log . I tried "wait", increased wait time, added tilde to frame but still it's failing. I noticed that after modal pop closes, the browser kind a refreshes and the text field that I filled in would get empty so I change the order of script. Before I used to fill out all text field then add primary contact (modal pop-up opens - then closes) but I noticed that browser is deleting data so I tried switching it. see attachment.