mobile_emulation={"deviceMetrics":{"width":360,"height":840,"pixelRatio":3.0},"userAgent":"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"}options=webdriver.ChromeOptions()options.add_experimental_option("mobileEmulation",mobile_emulation)self.driver=webdriver.Chrome(executable_path=driver_path+"\\"+"chromedriver.exe",options=options)