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

javascript - Image onload event not firing in firefox -

android - getbluetoothservice() called with no bluetoothmanagercallback -

database connection - ImportError: No localization support for language 'eng' in python -