По какой-то причине querySelector и get element by class возвращают null на существующие элементы.PhantomJS/SlimerJS не находит элементов через document.querySelector()
PhantomJS/SlimerJS
page.open('file:///Users/yeahsame/Desktop/index.html', function(status)
{
console.log("Starting execution");
document.querySelector("input")[0].value = "not working whatsoever";
phantom.exit();
});
HTML:
<!doctype html>
<body>
<input class="form-control email input-lg"></input>
<button class="btn" onclick="location.href='notexist.html'">submit</button>
</body>
Run в slimerjs возвращается "document.querySelector (...) равна нулю"