I need to click button which has some action in JS listener, normally I would do
document.getElementsByClassName('bttn')[0].click();
in developer mode console, but this must be automated in PHP. After clicking button, page content changes, and i need to download this new source code. Page isn't mine.