cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue in taking Action on one of the control via Surface Automation (Citrix Automation)

JIGARPARIKH
Level 4
Hi , We need one help . We are working on one of the Client Project where we have below control. We have to implement this automation under Citrix Environment so we are using Global Key\Mouse Events along with Surface Automation. We are struggling to implement the logic at one place. We have below control on one of the page. So, as per the value in the input file, we need to search that text 1st and where ever we found the text we need to click on the radio button. To search the value, we can only use Control + F button so it highlight particular value. There is a scrollbar in that control so, when we search the value, it do the scrolling automatically as you can see in the below screen shot. Value which we need to search will be exact search so that will not be an issue. Queries €¢ Challenge 1: How to get to that position as it is not the cursor? If we get the X and Y coordinates, we can hit Radio button by deducting Y access. €¢ Challenge 2: For some of the values, we do not have radio button. How to identify that? Can some one please assist here.
1 REPLY 1

Denis__Dennehy
Level 15
You need to use Image Recognition and dynamic regions for what you are trying to do - this is explained in the SA training, so it may be worth revisiting it. To get the cursor to a specific position you first need to find the position you want to click. This is done using image recognition to find the posiiton you want to click (this can be looking for an image or a colour within the screen). Once you have found the image or colour you need to send a Global Click Event to your dynamic region at the ofset where you want to do something. For your second challage you would need to do similar. Find the option/radio button using image recognition. This can be within a specific area of the screen rather than the entire screen (if there are multiple option buttons on the screen)