This function calls "Page.addScriptToEvaluateOnNewDocument" which normally returns an identifier, which can later be used to remove the script via "Page.removeScriptToEvaluateOnNewDocument".
However "public function addPreScript" doesn't return this identifier and removePreScript() is missing, so currently there is no way to remove scripts.
This function calls "Page.addScriptToEvaluateOnNewDocument" which normally returns an identifier, which can later be used to remove the script via "Page.removeScriptToEvaluateOnNewDocument".
However "public function addPreScript" doesn't return this identifier and removePreScript() is missing, so currently there is no way to remove scripts.