Unanswered question

I have JS Function and i want to execute it in library JS of Neoload, the issue is that the function contains "document.createElement("form")" and "document.body.apprendClid(variable)".How can i execute it?