python代码进入谷歌浏览器手机模式
from selenium import webdriver mobileEmulation = {‘deviceName‘ :‘Galaxy S5‘} option = webdriver.ChromeOptions() option.add_experimental_option(‘mobileEmulation‘,mobileEmulation) charome = webdriver.Chrome(options=option)
from selenium import webdriver mobileEmulation = {‘deviceName‘ :‘Galaxy S5‘} option = webdriver.ChromeOptions() option.add_experimental_option(‘mobileEmulation‘,mobileEmulation) charome = webdriver.Chrome(options=option)