I would urge you to try nightmare[1], its a web scraper that uses electron as a headless browser, and they have a plugin called daydream[2] that records your webpage actions and convert it into a nightmare script. You have to do a couple of retries, but it does work.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;segmentio&#x2F;nightmare" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;segmentio&#x2F;nightmare</a>
[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;segmentio&#x2F;daydream" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;segmentio&#x2F;daydream</a>