cOptions.addArguments("–user-agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5");//iPhone 4 driver = new ChromeDriver(cOptions); driver.get("http://www.google.com driver.quit();