protractor

HTML

<button id="run">Run</button>

JavaScript

function compare() {
	console.log('sdf');
  expect(true).toBe(true);
}

$('#run').click(compare);