Can not copy by clicking copy button

It seems the normal “HTML-click” is ignored. You need to simulate a real-user click with XClick. So replace Click with XClick. If that alone does not work, use XClick plus image:

XClick | image