Returning a DOM element with Webdriver in Javascript
- by ehmicky
How do I return a DOM Element with Webdriver in Javascript?
I am using the wd.js Javascript bindings:
require("wd")
.remote("promiseChain")
.init()
.get("http://www.google.com")
.elementById("mngb")
.then(function(element) { console.log(element); });
I am getting this weird object that is not a standard DOM Element (for example I…