Configuring the browser, os and mobile os in the capability factory