Traditionally, to respond an button click event, we could use some code like this
<button onclick="myFunction()">Click me</button>
Nowadays button click processing seems to use some kind of link/observer. This is "Add Question" button from Quora.
Here is part of its HTML
<div class="q-click-wrapper qu-active--textDecoration--none qu-focus--textDecoration--none base___StyledClickWrapper-lx6eke-1 lokDfm puppeteer_test_add_question_button qu-ml--small qu-borderRadius--pill qu-alignItems--center qu-justifyContent--center qu-whiteSpace--nowrap qu-userSelect--none qu-display--inline-flex qu-bg--red qu-tapHighlight--white qu-textAlign--center qu-cursor--pointer qu-hover--textDecoration--none" type="button" tabindex="0" role="button" style="box-sizing: border-box; direction: ltr; font: inherit; outline: none; padding: 5px 15px; max-width: 100%; border-width: 0px; color: inherit;">
I guess the key is puppeteer_test_add_question_button
, how do I get the real button click processing html/javascript code?