Selenium 查看版本
>>> import selenium
>>>> help(selenium)
Selenium 更新版本
python -m pip install --upgrade selenium
╰─➤ python -m pip install --upgrade selenium
Requirement already satisfied: selenium in /opt/homebrew/lib/python3.10/site-packages (4.6.0)
Collecting selenium
Downloading selenium-4.10.0-py3-none-any.whl (6.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.7/6.7 MB 12.3 MB/s eta 0:00:00
Requirement already satisfied: trio-websocket~=0.9 in /opt/homebrew/lib/python3.10/site-packages (from selenium) (0.9.2)
Requirement already satisfied: certifi>=2021.10.8 in /opt/homebrew/lib/python3.10/site-packages (from selenium) (2022.9.24)
Requirement already satisfied: trio~=0.17 in /opt/homebrew/lib/python3.10/site-packages (from selenium) (0.22.0)
Requirement already satisfied: urllib3[socks]<3,>=1.26 in /opt/homebrew/lib/python3.10/site-packages (from selenium) (1.26.12)
Requirement already satisfied: idna in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (3.4)
Requirement already satisfied: sortedcontainers in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (2.4.0)
Requirement already satisfied: sniffio in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (1.3.0)
Requirement already satisfied: exceptiongroup>=1.0.0rc9 in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (1.0.4)
Requirement already satisfied: outcome in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (1.2.0)
Requirement already satisfied: attrs>=19.2.0 in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (22.1.0)
Requirement already satisfied: async-generator>=1.9 in /opt/homebrew/lib/python3.10/site-packages (from trio~=0.17->selenium) (1.10)
Requirement already satisfied: wsproto>=0.14 in /opt/homebrew/lib/python3.10/site-packages (from trio-websocket~=0.9->selenium) (1.2.0)
Requirement already satisfied: PySocks!=1.5.7,<2.0,>=1.5.6 in /opt/homebrew/lib/python3.10/site-packages (from urllib3[socks]<3,>=1.26->selenium) (1.7.1)
Requirement already satisfied: h11<1,>=0.9.0 in /opt/homebrew/lib/python3.10/site-packages (from wsproto>=0.14->trio-websocket~=0.9->selenium) (0.14.0)
Installing collected packages: selenium
Attempting uninstall: selenium
Found existing installation: selenium 4.6.0
Uninstalling selenium-4.6.0:
Successfully uninstalled selenium-4.6.0
Successfully installed selenium-4.10.0
文章来源地址https://www.toymoban.com/news/detail-697839.html
文章来源:https://www.toymoban.com/news/detail-697839.html
到了这里,关于Selenium 更新版本的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!