I have a script that runs through Edge and when it clicks a button to update data its set to click OK from the step if a pop up occurs. Below is pop up 1, which I haven't had issues with so far, its clicked each time. But after the ok it reloads and brings another pop up with the step still in progress and doesn't continue unless i click OK. Is there a way to click OK? based on the steps I cant grab those as they aren't attached to the html browser steps get and UI wont pick it up either
This pop up below is what comes up after the above OK is clicked and causes site reload:

I need a way around this, any help is appreciated!
Edit: spelling and additional info added