You are capable of using the .evaluate() method so that you can then run vanilla JS code, in which you could use a JQuery command to accomplish what you need...
var test = new Nightmare()
.goto("https://www.google.com")
.evaluate(function() {
$("#selectorID").remove();
});
0
scott
On
var test = new Nightmare()
.goto("https://www.google.com")
.evaluate(function() {
var element = document.getElementById(elementId);
element.parentNode.removeChild(element);
});
You are capable of using the .evaluate() method so that you can then run vanilla JS code, in which you could use a JQuery command to accomplish what you need...