I have a test which requires switching from the main window to an iframe, then back to the main window, then a different iframe and finally back to the main window. The last expectation works great and the test passes, but the browser doesn't close each time I run the test (chrome and firefox). Also other tests don't start...it's as if the test/browser is blocked/crashed. Has anybody else had this experience? I've also noticed that at the end it says "Loading web page" before it hangs up. Here's some code (a lot has been omitted for readability)
.click('#paymentButtons > a')
I start testcafe with
testcafe -e chrome test/payment.test.js
After some more testing, I discovered that the last button press (.paybutton) causes a redirect to happen...and then the browser hangs.
I have been trying for a while now to get this solved, but I'm out of ideas. If anybody has an idea or has had a the same or similar issue, please let me know.
Any help is much appreciated