1 import chalk from "chalk";
2 import createDriver from "./createDriver.js";
4 export async function runSelenium(
7 { debug, headless, verbose } = {}
9 if ( debug && headless ) {
10 throw new Error( "Cannot debug in headless mode." );
13 const driver = await createDriver( {
20 await driver.get( url );
21 await driver.executeScript(
22 `return new Promise( ( resolve ) => {
23 QUnit.on( "runEnd", resolve );
27 if ( !debug || headless ) {