【发布时间】:2021-12-19 05:59:44
【问题描述】:
我正在使用 Appium 进行 UI 测试我的 iOS 应用程序。
我想知道加载到 UIImageView 的当前图像文件名(资产名称),因为图像文件会根据情况动态变化。
<XCUIElementTypeImage type="XCUIElementTypeImage" name="Accessbility id I set in Xcode" enabled="true" visible="false" accessible="false" x="668" y="498" width="17" height="17" index="1"/>
这是由 Appium 创建的部分 xml。
我希望像“value”或“image”或“src”这样的属性会出现在 xml 代码中,但它没有。
有没有办法知道图片资源名称?
【问题讨论】:
标签: ios xcode appium appium-ios xcuitest