If you look for how to pass a function as a parameter in javascript you will find solutions like this: bar(function(){ foo(“Hello World!”) }); This week I learned how to use bind which I found more readable than the method above. The bind structure is: function.bind(thisArg,arg1,arg2,…) thisArg – set the value of “this” to an specific object. This […]

https://azevedorafaela.wordpress.com/2017/02/18/passing-a-function-as-parameter-protractor-javascript/