SlimerJS

SlimerJS allows you to interact with a web page through an external JS script