当前位置:网站首页>selenium installation and environment configuration firefox
selenium installation and environment configuration firefox
2022-08-02 21:06:00 【Python machine learning model】
Table of Contents
I. Introduction
According to several articles, I summarized my operation process, mainly to record it.
2. Version
1. Check your version of Firefox, in the three horizontal lines in the upper right corner of the browser, help -> About Firefox
![](https://img-blog.csdnimg.cn/26536a18c38947d4ab29bc952e6372ba.png)
2. Select the corresponding selenium driver, my Firefox is the latestI don't know which version to choose. I downloaded the latest geckodriver
and successfully drove Firefox.
Driver download address: https://github.com/mozilla/geckodriver/releases/
Three, configuration environment
1. Put the downloaded geckodriver in the root directory of Firefox
2. Configure environment variables
Press the shortcut key win+R, enter "sysdm.cpl", press Enter, select Advanced, enter the environment variable, find the path and double-click to enter.
Copy and paste the downloaded geckivodrer file path into the new one to complete the configuration
Fourth, add selenium to pycharm
1.File—>settings, click the "+" in the upper left corner of the small box to find selenium
Click Install Package
Five, test the code, successfully open Baidu, then the configuration is successful
from selenium import webdriverdriver = webdriver.Firefox()driver.get("http://www.baidu.com")driver.find_element_by_id("kw").send_keys("python")#Locate Baidu's input box and enter pythondriver.find_element_by_id("su").click()
Dugua half-hour entry data analysis
边栏推荐
猜你喜欢
技术人生 | 如何画业务大图
redis总结_多级缓存
Playing in the cloud | The key technology of Tianyi cloud object storage ZOS high availability is revealed
开源一夏 | Web开发(七):登录实现及功能测试
How to build a quasi-real-time data warehouse?
LeetCode 2343. 裁剪数字后查询第 K 小的数字
[论文分享] VideoFlow: A Flow-Based Generative Model for Video
发挥云网融合优势,天翼云为政企铺设数字化转型跑道
TSF微服务治理实战系列(一)——治理蓝图
VSTO踩坑记录(1)- 从零开始开发outlook插件
随机推荐
Open Source Summer | [Cloud Native] DevOps (5): Integrating Harbor
洛谷P2880 Balanced Lineup G
golang源码分析(19)简单编译器-计算器
Go 语言快速入门指南:第二篇 变量与常量
固态硬盘接口类型介绍
一朵“云“如何带来产业新变革
2022最新彩虹表
共享平台如何提高财务的分账记账效率?
golang 源码分析(39)hystrix-go
golang刷leetcode 经典(2)拓扑排序
DevOps之代码检查
Sentinel vs Hystrix 限流对比,到底怎么选?
深入理解IO流(第一篇)
Openharmony - 基于ArkUI(TS)开发颜色选择器
selenium安装和环境配置Firefox
常用随机变量的数学期望和方差
注释
基于HDF的LED驱动程序开发(1)
IDEA相关配置(特别完整)看完此篇就将所有的IDEA的相关配置都配置好了、设置鼠标滚轮修改字体大小、设置鼠标悬浮提示、设置主题、设置窗体及菜单的字体及字体大小、设置编辑区主题、通过插件更换主题
无法超越的100米_百兆以太网传输距离_网线有哪几种?