How to double click hidden text in a browse (desktop application)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Desktop Testing
-
Script Tests
-
Test Creation
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to clarify, is "Unauthorised" an item in the list that is not visible, until you scroll down the list?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, as shown below. I need to scroll down to double click it.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So it looks like your application is developed in Delphi? I suggest you read through VCLObject Method, and the associated links in See Also.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
