When you look into doing this the first avenue you may come across is the Selenium preference
To have the functionality described in the previous paragraph set the
browserName property to
Using the official Selenium servers that come with Chrome or Firefox this will work without any extra configuration or installation required.
This repository on github shows a setup using the nightwatch testing framework.