Forum Discussion

ARANA's avatar
ARANA
Occasional Contributor
10 months ago

How to double click hidden text in a browse (desktop application)

Hi 

In my scenario, I've to select a hidden text(Unauthorised) from the list and then double click it. How can I achieve it please? I'm trying to write automation script in Python. I tried OCR.Recognise but that does not work as it is not visible.

 

 

6 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Just to clarify, is "Unauthorised" an item in the list that is not visible, until you scroll down the list?

    • ARANA's avatar
      ARANA
      Occasional Contributor

      Yes, as shown below. I need to scroll down to double click it. 

       

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    For example, use the Object Spy tool to capture the combo list box (as shown in red), then use ClickItem() method to select the item in the list.

     

    The same can be performed in Python

    • ARANA's avatar
      ARANA
      Occasional Contributor

      Hi 

      When I'm using ClickItem() method , I'm getting below error. Just to mention I didn't find the ClickItem()method option so I just typed in and it didn't complain

       

       

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    So it looks like your application is developed in Delphi? I suggest you read through VCLObject Method, and the associated links in See Also

    • ARANA's avatar
      ARANA
      Occasional Contributor

      Yes, application is developed in Delphi. 

      As of now, below solution is working but it is not ideal as I want to make it generic function which can be used in multiple windows, so will keep trying...Thanks for your help.