{"ScriptPreparationCode":"/*your preparation JavaScript code goes here\r\nTo execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/\r\nasync function globalMeasureThatScriptPrepareFunction() {\r\n // This function is optional, feel free to remove it.\r\n // await someThing();\r\n}","TestCases":[{"Name":"QuerySelectorAll","Code":"const allDivs = document.querySelectorAll(\u0022div\u0022)","IsDeferred":false},{"Name":"getElementByXpath","Code":"function getElementsByXPath(xpath) {\r\n const result = document.evaluate(xpath, document, null, XPathResult.ANY_TYPE, null);\r\n const elements = [];\r\n let node = result.iterateNext();\r\n while (node) {\r\n elements.push(node);\r\n node = result.iterateNext();\r\n }\r\n return elements;\r\n}\r\n\r\nconst xpath = \u0022//div\u0022; // \r\nconst selectedElements = getElementsByXPath(xpath);","IsDeferred":false}],"UseTinyBench":false}