The relationship between AppiumBy, MobileBy and selenium.webdriver.common.by

As can be seen from the figure below, AppiumBy is the imported selenium.webdriver.common.by package, and the inherited By

Appium.webdriver.common.appiumby package imported by MobileBy, inherited by AppiumBy

That is to say, using AppiumBy and MobileBy in the actual code is the same, but it is clearly stated in MobileBy that MobileBy is deprecated in version 2.1.0, and it is best to use AppiumBy
insert image description here

 """
 deprecated:: 2.1.0
     Please use 'from appium.webdriver.common.appiumby import AppiumBy' instead of 'MobileBy'.
 """

Guess you like

Origin blog.csdn.net/qq_36562656/article/details/128405304