node.js - how to execute custom javascript code in webdriverjs -
how execute custom javascript code in webdriverjs ( https://code.google.com/p/selenium/wiki/webdriverjs ) found execute method it`s purpose completly different.
here go:
var yourclientjsfunction = function (param1, param2) { // js code want run in browser } driver.executeasyncscript(yourclientjsfunction, param1, param2).then(function (res) { // deal response });
Comments
Post a Comment