このコード行を Instruments UIAutomation の logElementTree() に使用すると、 target.frontMostApp().mainWindow().logElementTree();
結果の戻り値はUIAElementNil
スクリプトを記録して画面をタップしても、記録される行はtarget.frontMostApp().tap();
このコード行を Instruments UIAutomation の logElementTree() に使用すると、 target.frontMostApp().mainWindow().logElementTree();
結果の戻り値はUIAElementNil
スクリプトを記録して画面をタップしても、記録される行はtarget.frontMostApp().tap();
メイン ビューのアクセシビリティを有効にしている可能性があります。
メイン ビューにアクセシビリティ ラベルを提供すると、子のアクセシビリティ ラベルは取得されません。メイン ビューのアクセシビリティを削除してみてください。完全な階層が得られます。
設定しないでくださいisAccessibilityElement = YES
。その場合、その要素のサブビューは非表示になります。
設定する必要がありますaccessibilityItentifier = @"xxxx"; isAccessibilityElement = NO;
「target.frontMostApp().mainWindow().logElementTree();」を使用しないでください。代わりに、常に「target.logElementTree()」を使用してください。現在の画面に存在するすべての要素が表示されます。
使用しないtarget.frontMostApp().mainWindow().logElementTree();
でくださいコードの代わりにこれに置き換えます:
var target = UIATarget.localTarget();
target.logElementTree();