I deal with this code. Here I want to click on a button but then a box appears that I am not able to deal with.
<input type="image" name="senden" src="/img/misc/b_go.gif" alt="Go"
title="Go" value="submit"
onclick="return confirm('Willst du wirklich jetzt deine Aufstellung und Taktik festlegen?');">
First, button click:
Set ButtonAufstellung = objIE.document.getElementsByName("senden")(0)
ButtonAufstellung.Click
Second, the popup appears and I get asked if I am really sure. I can click Ok or Cancel but I always want to click Ok. I could not find any solution that works.
I tried some solutions, but was not able to implement them.
Here somebody had a simillar problem but I did not understand: How to click a JavaScript confirm popup via excel vba
Edit:
Solutions that do not work:
Element.onclick = "Submit()"
Element.onclick = "True"
Element.onclick = "OK"
Element.onclick = "SendKeys{ENTER}"