![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
selenium配置和使用
JSon liu
分享一些个人的工作经历和成长历程。
展开
-
`mobilecommand.py`文件
mobilecommand.py文件 class MobileCommand: # Common GET_SESSION = 'getSession' GET_ALL_SESSIONS = 'getAllSessions' GET_LOCATION = 'getLocation' SET_LOCATION = 'setLocation' GET_AVAILABLE_IME_ENGINES = 'getAvailableIMEEngines' IS_原创 2020-10-18 12:13:33 · 138 阅读 · 0 评论 -
selenium 键盘常用操作
selenium 键盘常用操作 from selenium import webdriver #引入Keys 模块 from selenium.webdriver.common.key import Keys driver = webdriver.Firefox() driver.get("http://www.baidu.com") # 输入框输入内容 driver.find_element_by_id("kw").send_keys("selenium") # 删除多输入的一个 m dirver.fin原创 2020-09-18 10:35:27 · 185 阅读 · 0 评论 -
windows下selenium安装使用以及“selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘“错误解决方案
1. 安装selenium模块 安装selenium pip/pip3 install selenium==版本号 查看是否安装完成 2. 查看浏览器版本 找到“帮助”---->点击“帮助中心” 3. 根据流浪器版本下载对应webdriver版本驱动 输入https://npm.taobao.org/mirrors/chromedriver(或http://chromedriver.storage.googleapis.com/index.html) 点击对应浏览器版本号进行下载 对下原创 2020-08-23 23:47:56 · 381 阅读 · 0 评论