This dialog appears because it seems you are filling out form and then refresh the browser, this is normal behavior and our generic dialog handler can easily work with the dialog. The tough part here is the moment when the dialog doesn't appear. Unfortunately I am not sure if there is a workaround even with coded step. The best part will be to completely avoid the dialog (if ActiveBrowser.Refresh(); is removed) or to make sure this dialog will always appear. Can you see if you can detect some pattern for example in what circumstances the dialog doesn't appear?
"the webpage I am refreshing has nothing to do with purchases or buying anything"
The dialog may mention that, but it's shown during a specific condition that may or may not be a shopping cart. Can you provide us with the webpage you are trying to test or with the test project itself so we can try to find the best possible solution for you.
Looking forward to hear from you.
All the best,
the Telerik team