how to button.click

You might need to provide more context. Can you provide a reproducible example?