selenium 在电脑浏览器中用手机模式打开
2024-10-20 04:13:37
import requests
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.chrome.options import Options url = 'http://www.baidu.com'
mobile_emulation = {"deviceName":"iPhone 6"}
options = Options()
options.add_experimental_option("mobileEmulation", mobile_emulation)
driver = webdriver.Chrome(chrome_options=options) driver.get(url)
最新文章
- VBA 获取Sheet最大行
- h.264的POC计算
- 【转】 Android ListView与Button的显示----不错不错
- coco2d-html5制作弹弓射鸟第一部分---橡皮筋
- VirtualBox 上安装CentOS 6.5
- gdb的user-define command
- Elasticsearch5.4常见问题总结
- Jupyter Notebook的快捷键
- Java内存泄漏分析系列之二:jstack生成的Thread Dump日志结构解析
- MapReduce时mapping内存不足
- return 返回值的用法
- 去除input获取光标时的默认样式
- 【SVN技巧】如何协同开发LabVIEW代码 1
- Android 自动化测试——Monkey测试
- .Net Excel操作之NPOI(一)简介
- Ubuntu安装ss
- Docker 学习笔记 (一)Dockerfile 创建本地镜像
- Django 1 创建项目
- python celery rabbitmq--- pypi image from ustc
- Java 输入/输出流
热门文章
- maven项目启动报错;class path resource [com/ssm/mapping/] cannot be resolved to URL because it does not exist
- VS调试dll详细过程记录
- mysql备份与恢复-xtracebackup
- oracle /*+ SYS_DL_CURSOR */ 这个hint
- 苹果笔记本充不进电怎么办_macbook充不进电解决办法
- 18位身份证验证(Java)
- sublime3 快速创建html模板
- day24,25组合 封装 多态
- 尚硅谷面试第一季-15Mysql什么时候建索引
- error C4996: Function call with parameters that may be unsafe – this call relies on the caller to ch