当前位置:网站首页>Selenium driver installation
Selenium driver installation
2022-04-22 08:08:00 【Short man code】
1.pycharm Add selenium package
2. Download a webdriver drive
3. hold webdriver The documents are stored in Folder in Library
from selenium import webdriver
import time
import os
# Get drive path
current_path = os.path.dirname(__file__) # Get the current path
driver_path = os.path .join(current_path, '../driver/chromedriver.exe') # Put the current path +chromedriver Path connection
driver = webdriver.Chrome(executable_path=driver_path)
driver.get('https://www.jd.com')
driver.maximize_window()
driver.find_element_by_class_name('link-login').click()
版权声明
本文为[Short man code]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220629421013.html
边栏推荐
- LDAP用户登录认证校验及查询
- Supersocket is Use in net5 - websocket server
- mysql安装采坑
- adb logcat 日志
- .Net5 Log4Net启动一段时间后记录日志到数据库中失败问题
- Web automation: 5.2 selenium mouse operation principle: actionchains delay call
- Help 2021 Hangzhou network security publicity week | collection of wonderful activities of Shiping information
- 【Mock数据】fastmock根据传入参数动态返回mock内容
- selenium 驱动安装
- China network security industry panorama of ccsip 2021 listed by Shiping information
猜你喜欢

.net WebAPI访问授权机制及流程设计(header token+redis)

初级测试:普通 VS 优秀

【世平信息】刻录内容保密检查与合规管控解决方案

IDE-IDEA-问题

Shiping information participated in the enterprise roadshow of Hengyang "Chuanshan forum", talked about data security and helped collaborative innovation

SuperSocket在.Net5中使用——WebSocket Server篇

VS Code 设置换行

The exchange meeting on the interpretation of the data security law and the application of security and confidentiality technology was successfully held in Beijing

lnmp mysql 允许远程访问

通用测试技术【一】测试的分类
随机推荐
laravel 新建路由文件
js 实现new
世平信息董事长王世晞荣获2020年度新锐人物奖
Focusing on data security, Shiping information is listed in the six sub areas of the panorama of China's network security industry
Android面试
Web automation: 6 Operation of selenium drop-down selection box - Select
TP5 发送邮件(2020-05-27)
高级排序-快排
SuperSocket在.Net5中使用——AppSession和SuperSocketService篇
Focus on scientific and technological innovation 𞓜 Shiping information appears in the technology roadshow of science and innovation China - special session on information technology and security
Postman interface automation-4-tests assertion 4: custom interface execution order
Shrio study notes (II)
jmeter 模拟 get 请求
Flash data model migration error
Navicat误删了连接,如何恢复数据库
实验5 组件及事件处理
php 使用redis简单实例
systemctl启动prometheus+grafana环境
utgard连接opcserver报错Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied. [0x800
Implement data compliance and ensure data security