0
<Application>
<Window>    
<AXScrollArea:"">
        <AXWebArea:"">
            <AXGroup>
               <AXGroup:"">
                  <AXButton:"NEW">

上面是我可以看到的元素树,我想点击按钮。任何人都可以帮我做吗?

window.activate() 
allUIElements=window.findAllR(AXRole='AXGroup') 
callListItems=allUIElements[0].AXChildren[0].AXChildren[0].‌AXChildren[0].AXChil‌​dren
buttonsInRow=callListItems[logic].findAllR(AXRole='AXButton‌​') 
4

0 回答 0