Forum Discussion

meghaphophalia's avatar
meghaphophalia
Occasional Contributor
2 years ago

Want to select on checkbox whose xpath is not captured in object spy

Working on delphi application,Wanted to select a checkbox in a column whose object cannot be find out using object spy and we cannnot spy that column ,column next to can be spy .So is there any way to click on that particular checkbox.

 

3 Replies

  • Hi meghaphophalia 

     

    You mention its not clickable until its active. 


    what triggers it to be active? 

     

    Is it just clicking / double clicking on the "P270" object

     

    If yes you could have an operation that triggers the object to be active. 

     

    KR

    Vinnie

  • meghaphophalia's avatar
    meghaphophalia
    Occasional Contributor

    On clicking any of the cell it active the whole row .On clicking P-270 it highlight the row as it display in the picture. But I cannot spy the checkbox icon so not able to click directly on it using click command .What is that operation you are talking about 

    • vinniew's avatar
      vinniew
      Staff

      Hi meghaphophalia 

       

      Thanks, it was just a general question on how to activate it. 

       

      So based on what you provided the easiest way to this is via OCR actions. 

       

      This supports "ClickNextTo" methods

       

      Using OCR actions you would specify the text content you want to use so in your example it would be "P-270" next, you will use the ClickNextTo method and specify dircetion toLeft

       

      See attached 

       

      Hope that helps 

       

      Vinnie