Cocoa Accessibility API를 사용하여 타사 응용 프로그램에서 정보를 얻어야합니다. 타사 응용 프로그램은 WebView를 사용하여 사용자 인터페이스 (AXWebArea
역할)를 표시합니다. 이 AXUIElement에는 자식이 없습니다.접근성 API : AXWebArea 하위 요소 (또는 HTML 소스)
if ([role isEqualToString:@"AXWebArea"])
{
NSArray *names;
AXUIElementCopyAttributeNames(foundElement, (CFArrayRef *)&names);
NSLog(@"%@", names);
}
이 코드 출력 :
AXRole,
AXSubrole,
AXRoleDescription,
AXChildren,
AXHelp,
AXParent,
AXPosition,
AXSize,
AXTitle,
AXDescription,
AXValue,
AXFocused,
AXEnabled,
AXWindow,
AXSelectedTextMarkerRange,
AXStartTextMarker,
AXEndTextMarker,
AXVisited,
AXLinkedUIElements,
AXSelected,
AXBlockQuoteLevel,
AXTopLevelUIElement,
AXLinkUIElements,
AXLoaded,
AXLayoutCount,
AXLoadingProgress,
AXURL
AXChildren
가 비어 있으므로 제가 AXWebArea
UI 요소 내부 HTML 요소에 액세스 할 수있다. 어떻게 액세스 할 수 있습니까?