Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用仪器运行许多自动化测试,并针对许多文本字段进行断言,但是我希望能够检索图像(文件)名称以断言已根据页面上的信息填充了正确的图像, 这可能吗?
经过这个周末的反复试验,我设法找到了答案window.mainWindow().images()[0].name()
window.mainWindow().images()[0].name()
您是否尝试过 iOS 测试工作室(http://www.telerik.com/automated-testing-tools/ios-testing/ios-application-testing.aspx)?我认为它可以帮助您解决 iOS 中各种与自动化相关的问题。