Is it possible to get html source of the page or element?
.source() protocol is there, but I didn't manage to get it running, the docs confused me.
Using Nightwatch's wrapper for selenium function source (DOC), this can be accomplished relatively easily.
EX:
.url("http://www.google.com")
.source(function (result){
// Source will be stored in result.value
console.log(result.value);
})
thanx!
Most helpful comment
Using Nightwatch's wrapper for selenium function
source(DOC), this can be accomplished relatively easily.EX: