flagpole
flagpole copied to clipboard
Using "not" throws "TypeError: Converting circular structure to JSON"
const div = await context.exists("div");
context.assert("Should be a div", div).not.equals(null);
provides
✕ TypeError: Converting circular structure to JSON --> starting at object with constructor 'BrowserContext' | property '_browser' -> object with constructor 'Browser' --- property '_defaultContext' closes the circle