If done by selecting you have a few solutions, none are perfect.
In this case i would recomend, create a seperate workflow to click the alert, make timeout high, like 0:0:8 … call this workflow using “invoke openrpa” BEFORE assigning the value and set “wait until complete” to false.
This way the exstra workflow is constantly searching for the message box and will find it when you set the value, and your main script can continue