0
<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‌​') 
Vasily Ryabov
  • 9,386
  • 6
  • 25
  • 78
  • window.activate() allUIElements=window.findAllR(AXRole='AXGroup') callListItems=allUIElements[0].AXChildren[0].AXChildren[0].AXChildren[0].AXChildren buttonsInRow=callListItems[logic].findAllR(AXRole='AXButton') – jithendra k.s Sep 06 '16 at 12:12
  • Please post additional required information in your question by clicking the "edit" button below your question, not as a comment. – Mad Physicist Sep 06 '16 at 13:53
  • Please use proper spelling and punctuation. Even if English is not your first language, the effort to make it pleasant to read helps a lot. – Ajean Sep 09 '16 at 00:45
  • Did you manage to do it? @jithendrak.s – Elamir Ohana Nov 28 '19 at 09:09
  • Yes one needs to enter into webarea and then get into tree structure – jithendra k.s Feb 03 '21 at 06:43

0 Answers0