我目前正在尝试自动化一个包含SFSafariViewController的iOs应用程序,在其中我想点击一个textfield,它有一个HTML,也有一个来自应用程序的AccessibilityIdentifier。我现在的问题是如何编写正确的uia命令,因为一个普通的tap_mark或触摸是没有帮助的,因为AccessibilityIdentifier是因为SFSafariViewController而找不到的。我的uia命令现在如下所示:uia("UIATarget.localTarget().frontMostApp().document.getElementById('Identifier').click()")
这是我在执行命令时遇到的错误:
RuntimeError: uia action failed because: Input:
UIATarget.localTarget().frontMostApp().document.getElementById('Identifier').click().
Error: TypeError: undefined is not an object (evaluating 'UIATarget.localTarget().
frontMostApp().document.getElementById') eval codehttps://stackoverflow.com/questions/38697378
复制相似问题