Hi
I'm trying to use the following method in my workflow, in JS activity: createElement
When I start the workflow and check the logs I get the error: document.createElement is not a function.
How do I use it?
I'm trying to scan certain deliveries, within their HTML source code, for all the links and check the HTTP Response of them before starting the delivery.
I need to create a DOM in order to use it later with querySelectorAll
var doc = [];
doc = document.createElement("div");
doc.innerHTML = fromDB; //getting the HTML source from the DB
doc.querySelectorAll("a[href]")...