Tell us what’s happening:
Hi, I’m trying to do the last 2 exercises of the " Quality Assurance and Testing with Chai" but I’m stuck, it says that “AssertionError [ERR_ASSERTION]: No open window with an HTML document”.
That error appears because the previous error says “browser” is not defined, when I put a new “const browser = new Browser();” the error changes so I don’t know what I can do.
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.96.36.199 Safari/537.36
Challenge: Quality Assurance and Testing with Chai - Run Functional Tests Using a Headless Browser II
Link to the challenge: