mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
2da872c93f
Implements https://github.com/acreskeyMoz/browsertime_on_android_scripts changes to mach perftest and prototype Differential Revision: https://phabricator.services.mozilla.com/D69801 --HG-- extra : moz-landing-system : lando
18 lines
486 B
JavaScript
18 lines
486 B
JavaScript
module.exports = async function(context, commands) {
|
|
let rootUrl = "https://www.bbc.com/";
|
|
|
|
await commands.navigate(rootUrl);
|
|
|
|
// Wait for browser to settle
|
|
await commands.wait.byTime(10000);
|
|
|
|
// Start the measurement
|
|
await commands.measure.start("pageload");
|
|
|
|
// Click on the link and wait for page complete check to finish.
|
|
await commands.click.byClassNameAndWait("block-link__overlay-link");
|
|
|
|
// Stop and collect the measurement
|
|
await commands.measure.stop();
|
|
};
|