A quick google based on the error msg you got led me to this fix https://github.com/oblador/loki/issues/51#issuecomment-385312871
Can you help give it a try? Basically initialize the window URL before each test to something, anything rather than the default, which is ‘about:blank’.