程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Appium Python client and selenium were downgraded from the latest version 4.1.0 to the old version

編輯:Python

【 Problem description 】
install appium-python-client when , The latest version is installed by default , The original selenium Version has also been upgraded to 4.1.0.selenium4.1.0 Grammar comparison of Selenium3 Something has changed , As a result, some previous code displays are crossed out . If you are not used to it selenium4, Consider using an older version that is more comfortable .

【 Solution 】

  1. see selenium and appium-python-client Version of
    pip show selenium
    pip show appium-python-client

  2. Uninstall the current selenium and appium-python-client
    pip uninstall selenium
    pip uninstall appium-python-client

  3. Install the specified version of appium-python-clien
    pip install appium-python-client==1.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
    Due to installation appium-python-client At the same time , The system will install matching selenium edition , So install the specified lower version directly here appium-python-client.
    appium It's like a service ,appium-python-client It's Jean python Connect appium A driver of services , That's one python Language encapsulation and appium api A library of communication .appium And inherited selenium Of webdriver, therefore appium-python-client The installation may be updated selenium.

  4. After successful installation , The system will prompt the installed appium-python-client、selenium edition .

【appium-python-client edition 】
Access address :https://pypi.org/project/Appium-Python-Client/#history


You can see appium-python-client Each version and release time of , So as to freely choose what you need !


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved