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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -