StoreConfirmation always gives error "there were no Confirmations"

I ve been trying to use StoreConfirmations and StoreAlerts and both of them dont seem to work in any case were alerts and confirmations are used. This is the code Im using now.

Assert Confirmation works, but store confirmation does not.

open https://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm
selectFrame index=0
chooseOkOnNextConfirmation
click //button[@onclick='myFunction()']
assertConfirmation Press a button!
storeConfirmation confirmation

Hi German,

Follow up with your previous post. This error was caused by the confirmation popup never actually showed up on the UI so KR cannot capture and store the confirmation. You’d have to get attribute confirmation text and the store it.

Hope this helped!
Liam

Liam B said:

Hi German,

Follow up with your previous post. This error was caused by the confirmation popup never actually showed up on the UI so KR cannot capture and store the confirmation. You’d have to get attribute confirmation text and the store it.

Hope this helped!
Liam

I just tried this again, removing chooseOkOnNextConfirmation and AssertConfirmation which makes the confirmation visible and Im still getting the same error.

You’d have to get attribute confirmation text and the store it.

Im not sure what you mean with “get attribute confirmation text” sorry.

Thank you for answering