Tested 2024-11-21 01:53:01 using Chrome (script). .(runtime settings).
module.exports = async function ( context, commands ) {
commands.meta.setTitle( 'Test visiting multiple pages' );
commands.meta.setDescription( 'First hit the portal page with an empty browser cache and then visit Main_Page' );
await commands.navigate( 'https://www.wikipedia.org/' );
await commands.wait.byTime( 21000 );
await commands.js.run( 'document.body.innerHTML = ""; document.body.style.backgroundColor = "white";' );
return commands.measure.start( 'https://en.m.wikipedia.org/wiki/Main_Page' );
};