Is it possible to implement a function that checks the change of the URL in the browser during the tests (window.location.href)? I tried to use a ClientFunction to do so. But I wasn't able to use async/await inside the ClientFunction. The other way around I wasn't able to get information with window.location.href in an async function. Is there another way to get to the information? :) I want to check whether the correct article is put into the basket of our shop. So I wanted to implement a function that always runs when an article is put into the basket and the program switches to the basket page. I used a setTimeout for that but I wasn't very successful with that. :D
Thank you so much!
Stefan