How to use task BrowserEvaluate

I need help figuring out how to use the BrowserEvaluate task.

I have a web project that uses the Javascript Jasmine test framework. Today I open a browser, type an url, press enter and look at the result. I thought why not use gradle for this. So i found the BrowserEvalute task but the documentation is not enough for me.
Can any of help understand how to use this task?

Regards Kec2