mobile_emulation = {'deviceName': 'iPhone 6'} options = webdriver.ChromeOptions() options.add_experimental_option("mobileEmulation", mobile_emulation) browser = webdriver.Chrome(executable_path='chromedriver.exe', chrome_options=options) browser.get("http://www.baidu.com") browser.implicitly_wait(2) |
selenium+python 用手机模式打开浏览器
猜你喜欢
转载自blog.csdn.net/sinat_34209942/article/details/81127444
今日推荐
周排行