Ask a Question

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

ARANA
Occasional Contributor

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.

 

ARANA_0-1683038678355.png

 

6 REPLIES 6
rraghvani
Champion Level 2

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

ARANA
Occasional Contributor

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

ARANA_0-1683041760733.png

 

rraghvani
Champion Level 2

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.

 

rraghvani_0-1683042535821.png

The same can be performed in Python

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

ARANA_1-1683103316776.png

 

ARANA_0-1683103213326.png

 

rraghvani
Champion Level 2

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
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.

 

ARANA_0-1683124587719.png

 

cancel
Showing results for 
Search instead for 
Did you mean: