Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UITesting:两个元件具有相同的可访问性_Ios_Swift_User Interface_Testing - Fatal编程技术网

Ios UITesting:两个元件具有相同的可访问性

Ios UITesting:两个元件具有相同的可访问性,ios,swift,user-interface,testing,Ios,Swift,User Interface,Testing,下面是我正在使用的图片;“当前没有挂起的请求。”和“刷新请求”具有与“当前没有挂起的请求”相同的访问权限。但我需要点击“刷新请求”,然后 不起作用,因为它只点击那个精确的静态文本,而不点击“刷新请求”。我应该如何解决这个问题?我完全是Swift的初学者,所以任何东西都会很感激的。多谢各位 将可访问性标识设置为唯一值。将可访问性标识设置为唯一值 let app = XCUIApplication() app.tables["There are currently no pending reques

下面是我正在使用的图片;“当前没有挂起的请求。”和“刷新请求”具有与“当前没有挂起的请求”相同的访问权限。但我需要点击“刷新请求”,然后

不起作用,因为它只点击那个精确的静态文本,而不点击“刷新请求”。我应该如何解决这个问题?我完全是Swift的初学者,所以任何东西都会很感激的。多谢各位


可访问性标识设置为唯一值。

可访问性标识设置为唯一值

let app = XCUIApplication()
app.tables["There are currently no pending requests."].tap()