当前位置:网站首页>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
边栏推荐
- How to ensure the security of smart factories?
- How to mitigate the attack of corporate account hijacking?
- Remember the stuck analysis of an industrial automation control system in .NET
- AtomicInteger详解
- KunlunBase 1.0 发布了!
- 判断文件属主
- golang源码分析(33)pollFD
- KunlunBase 1.0 is released!
- Open Source Summer | [Cloud Native] DevOps (5): Integrating Harbor
- T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
猜你喜欢
随机推荐
2022最新彩虹表
Electronic Industry Inventory Management Pain Points and WMS Warehouse Management System Solutions
golang刷leetcode 经典(2)拓扑排序
shell中awk命令的if条件语句引入外置变量
魔豹联盟:佛萨奇2.0dapp系统开发模式详情
LeetCode 2336. 无限集中的最小数字(SortedSet)
天翼云4.0分布式云赋能千行百业数字化转型
Interviewer: can you talk about optimistic locking and pessimistic locks
pydev debugger: warning: trying to add breakpoint to file that does not exist: /tmp/xxx
golang刷leetcode滑动窗口(9) 颜色分类
危及安全的常见物联网攻击有哪些?
C#里如何简单的校验时间格式
54.【system系统互动函数大总结】
E-Surfing Cloud 4.0 Distributed Cloud Enables Digital Transformation of Thousands of Industries
HDF驱动框架的API(2)
WIFi 开关控制实现-ESP8266 物联网 android studio arduino QT多线程服务器
Go 语言快速入门指南: 介绍及安装
golang刷leetcode 经典(1) LRU缓存机制
浅谈混迹力扣和codeforces上的几个月
Endanger the safety of common Internet attacks have?









