I\'m trying to click programmatically a button from a web page using chrome console.
(UPDATED)The code of the button looks like this :
<
Like Rakesh said, $('#btnId').click(); works.
$('#btnId').click();
Easy mode, though, is to right click the element in the browser, click inspect (or find it in the elements selector, then select it), then simply fire the event on the selected element:
$0.click();