Stuck on Quality Assurance - "Run Functional Tests using a Headless Browser"

Hi,im trying to do the last 2 exercises of the " Quality Assurance and Testing with Chai" but im 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 dont know what i can do.
Thanks.

Your project link(s)

solution: https://replit.com/@gonzaloescuder2/boilerplate-mochachai

Challenge: Run Functional Tests using a Headless Browser

Link to the challenge:

Hello!

You didn’t change the URL for the project:

const Browser = require('zombie');
Browser.site = 'https://sincere-cone.gomix.me'; // Your URL here

Which should be https://boilerplate-mochachai.gonzaloescuder2.repl.co/. And new Browser() is also required

I changed that but the program still dont works.now says “Unexpected end of input”,its related to the “});” ?

Yes, it is. If you hit the auto format button at the top right of the editor on repl.it, it should show you where the problem lies :slight_smile:, so yes, you’re missing a });.

Yeah,i used that button but the problem is still there ( “AssertionError [ERR_ASSERTION]: No open window with an HTML document” ) .

Looks like the problem starts when i use “.fill(‘surname’, ‘Colombo’)” on browser,anyway i use console.log(browser) and the site url is correct.

I readed on the forum that this lesson and the next have some errors so maybe i need skip and start next section.Thanks anyway.

1 Like

Yeah, it will be updated soon though :slight_smile:.

Edit: by the way, check the GitHub page of zombie and not zombie.js.org for the documentation (for some reason they haven’t updated the site).

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.