I\'m trying to click programmatically a button from a web page using chrome console.
(UPDATED)The code of the button looks like this :
<
regarding the following HTML:
you should be aware of:
> should be entity encoded >" or ') to delimit its value, all characters until the first space or > are interpreted as the value. In your case this means that name=BTN_CHOICE5/> translates to name="BTN_CJOICE5/">.If the exercise of clicking the button is meant to submit the , you should know that synthetic events like .click() do not trigger default actions. May I suggest submitting the form instead?
document.querySelector('form').submit()