如何更新 UITest 中的 UIProgrssView 值

问题描述

我试图为我的 UIProgressView 编写一个 UI 测试。

我可以得到这个价值

self.app = XCUIApplication()
let progressIndicator = app.progressIndicators[identifier].firstMatch
progressIndicator.value as? String

但是我无法更新进度值

我尝试设置 XCUIElement 的值属性,但我是只读的 我也试过

progressIndicator.typeText("")

progressIndicator.setValue("",forKey: [myAccessibilityIdentifier])

但是没有人在工作

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)