0
atomac UI 자동화 도구를 알고 있는데, 내 Mac 응용 프로그램에서 버튼에 액세스하려고 할 때마다 응용 프로그램 버튼이 UIElement 트리가 변경되어로드 될 때마다 내 코드에서 다시 사용할 수 없기 때문에 변경되었습니다. 아래 코드는 내 코드입니다.atomac/python에서 동적으로 변경되는 UIElements를 처리하는 방법은 무엇입니까?
allButtons= allUIElement[5].findAllR(AXRole='AXButton')
print allButtons
position = allButtons[1].AXPosition
print position
size = allButtons[1].AXSize
print size
clickpoint = ((position[0] + size[0]/2), (position[1] + size[1]/2))
print clickpoint
test20Window.clickMouseButtonLeft(clickpoint)
당신은 내가 [5] 동적 때문에 내가 원하는 버튼의 6,7 또는 1 때 응용 프로그램로드 다음에 말을 바꿀 것이다 UIElement에서 버튼에 액세스하려고 내 코드에서 볼 수 있듯이 클릭이 발생하지 않습니다.