Setting user-agent for remote chromedriver in Selenium

Harald Schult Ulriksen

Setting the user-agent in .net is not straight forward. Using the chrome webdriver directly this can be done using chromeoptions var ios6ua = "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25" var…