Do not try and click the button. That’s impossible. Instead… only try to realize the truth…
There is no button.
You’ll see, that it is not the button that clicks, it is the functionality of that said button that needs to be invoked directly.
solved Programmatically clicking a button that is not yet existing in DOM (jQuery) [closed]