I am in search of a JavaScript API that can be used to screen scrape page flow, including button clicks. While WebDriver of Selenium would have been a good choice if it were on the server side, we specifically want the screen scraping to occur within the client browser. The pages we need to scrape are part of a transaction process (including logging into a third-party website, completing transaction steps 1 and 2, and final confirmation). Is there any JavaScript API available for this purpose?
As far as I know, both Node.js and PhantomJS do not have the capability to click buttons on the scraped page.
Thank you in advance, Abbas