How to access web element in atomac?

320 views Asked by At
<Application>
<Window>    
<AXScrollArea:"">
        <AXWebArea:"">
            <AXGroup>
               <AXGroup:"">
                  <AXButton:"NEW">

Above is the element Tree which I can see, I want to click the button. Can anyone please help me to do it?

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

There are 0 answers