如何在 XCTest 中设置 UItextfield 文本
How to set a UItextfield text in XCTest
我想使用 xctest 为我的 UITextField 设置文本
app.textFields["enter "].tap()
app.textFields["enter "].text = "xyz"
但是它抛出错误,我没有找到任何替代方法。
尝试
app.textFields["enter "].typeText("xyz")
我想使用 xctest 为我的 UITextField 设置文本
app.textFields["enter "].tap()
app.textFields["enter "].text = "xyz"
但是它抛出错误,我没有找到任何替代方法。
尝试
app.textFields["enter "].typeText("xyz")