emulation

Python and Selenium mobile emulation

Python and Selenium mobile emulation Question: I’m trying to emulate Chrome for iPhone X with Selenium emulation and Python, as follow: from selenium import webdriver mobile_emulation = { “deviceName”: “iphone X” } chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option(“mobileEmulation”, mobile_emulation) driver = webdriver.Chrome(r’C:UsersAlexPythonDevchromedriver’) driver.get(‘https://www.google.com’) However, nothing happens: my page is still a normal browser page, and I don’t …

Total answers: 3