tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

perftest_politico_link.js (822B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 async function test(context, commands) {
      6  let rootUrl = "https://www.politico.com/";
      7 
      8  await commands.navigate(rootUrl);
      9 
     10  // Wait for browser to settle
     11  await commands.wait.byTime(10000);
     12 
     13  // Start the measurement
     14  await commands.measure.start("pageload");
     15 
     16  // Click on the link and wait for page complete check to finish.
     17  await commands.click.byClassNameAndWait("js-tealium-tracking");
     18 
     19  // Stop and collect the measurement
     20  await commands.measure.stop();
     21 }
     22 
     23 module.exports = {
     24  test,
     25  owner: "Performance Team",
     26  name: "Politico Link",
     27  description: "Measures time to load Politico homepage",
     28 };