在使用适用于Android移动设备的Appium和Selenium WebDriver的移动自动化中, capabilities.setCapability(CapabilityType.VERSION, "4.2")
和capabilities.setCapability("version", "4.2")
之间有什么区别?
both are same. CapatilityType.VERSION returns a constant which is version.
Yes. Both are exactly same. CapabilityType.VERSION
returns the version as a string constant. But as a practice we are using CapabilityType.VERSION
for "version"
.
两者都相同,首先我们使用“版本”库,第二次使用e
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.