当前位置:网站首页>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
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
边栏推荐
- 2022最新彩虹表
- 企业云成本管控,你真的做对了吗?
- Openharmony - 基于ArkUI(TS)开发颜色选择器
- 监控易火星版即将亮相:分布式运维帮助TOP3000大企业跨越管理鸿沟
- 中断向量表概述
- redis总结_多级缓存
- How to ensure the security of smart factories?
- Data Governance: The Evolution of Data Integration and Application Patterns
- How to deal with security risks posed by machine identities
- Dream weaving prompt information prompt box beautification
猜你喜欢
随机推荐
SQL Alias 别名
如何确保智能工厂的安全?
在线文档Sheet技术解析
cache2go-源码阅读
发挥云网融合优势,天翼云为政企铺设数字化转型跑道
「日志」深度学习 CUDA环境配置
LeetCode 1947. 最大兼容性评分和(状态枚举DP)
知识点滴 - 什么是iAP2 (上)
多聚体/壳聚糖修饰白蛋白纳米球/mPEG-HSA聚乙二醇人血清白蛋白纳米球的制备与研究
From the technical panorama to the actual scene, analyze the evolutionary breakthrough of "narrowband high-definition"
详细教学——1688关键词搜索API操作流程
编译型语言与解释型语言的区别
[深入研究4G/5G/6G专题-49]: 5G Link Adaption链路自适应-5-上行链路自适应ULLA-PUSCH信道
共享平台如何提高财务的分账记账效率?
Endanger the safety of common Internet attacks have?
针对时间的功能测试点,这里给你总结全面了
HDF驱动框架的API(2)
Redis总结_实战篇
SQL Alias Aliases
KunlunBase 1.0 is released!









