Skip to content
Advertisement

Protractor / Jasmine timing out on headless chromium – Error: Timeout – Async callback

Hi all so I am trying to run headless chromium with protractor and jasmine. I have everything setup and working for both firefox and chrome with a head. When I run firefox headless it works… when I try running chromium headless it ends up timing out. Looking for some help to solve this problem.

The error I get is :

JavaScript

Now I’ve read a million article online and have tried increasing the timeout time and adding done into the function as well…

Here is my current code:

Conf.js – this has a bunch of added args and settings that I’ve found online. I’ve tried pretty much every variation and had no success..

JavaScript

Spec.js – straight off of their website with console.logs. All of the console.logs print out in the following order 3,1,2. This is something I’m unsure is correct? Should the describe be waiting for the it to finish? It almost feels like my it is never returning…

JavaScript

Following this some other discoveries I have found… when I go to the localhost:9222 I see

JavaScript

The data:text/html,<html></html> is a link and if clicked on takes me to the remote chrome debugger that is loading … data:text/html,. This is where I think the problem is. Why is this never actually loading the angular site?

Maybe I’m off base but does anyone know how to make sense of this?

EDIT: Additional useful information. I am using chromium 79.0.3945.130 chromedriver 79.0.3945.36

jasmine v3.5.0 jasmine-core v3.5.0

Protractor 5.4.3

Thanks

Advertisement

Answer

Config that ended up working for me

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement