Created
January 27, 2019 10:40
-
-
Save slawekradzyminski/3e6e07711cfcf25ae11c030475d5a63e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private long getEventValue(PerformanceEvent event) { | |
String script = String.format("return window.performance.timing.%s;", event); | |
return executeScript(script).getLongResult(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment