Unable to capture the Button element when it having Onclick = void(0)

You cannot click on a button with an onclick handler that calls void().

If you insist on being so tight-lipped about your code we are not going to be able to help you.

Please read this: