Skip to content

Instantly share code, notes, and snippets.

@jamesr2323
Last active December 3, 2018 23:54
Show Gist options
  • Save jamesr2323/3bc0057de51c328feac3c5952231b016 to your computer and use it in GitHub Desktop.
Save jamesr2323/3bc0057de51c328feac3c5952231b016 to your computer and use it in GitHub Desktop.
network_check = driver.execute_script("""
return performance.getEntries()
.filter(e => e.entryType==='navigation' || e.entryType==='resource')
.map(e=> ([e.name, e.transferSize]));
""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment