cancel
Showing results for 
Search instead for 
Did you mean: 

How to use TAB and then select the text in Global Send Keys

SiddharthAbiram
Level 3
I am working on a webpage automation and I have connected to it using attach and detach.

I send the command to tab twice {TAB 2} in order to switch to a field. And then I need to select the value.

Please find the Navigate page I use below
36822.png

Please find the application on which I am using this below.
36823.png
1 BEST ANSWER

Helpful Answers

Hi Siddharth,

I would like to suggest always first activate the application window using a 'Win32' element as the first action by using 'Activate' function, 'Global Click On Center' function on the 'UIA', 'AA' or 'Browser' element that you want to click on before providing tabs and then using 'Global Send Keys' function on the 'Application Root' node you need to use the same command that you've used.

Let us know if that helps!
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

View answer in original post

3 REPLIES 3

Hi Siddharth,

I would like to suggest always first activate the application window using a 'Win32' element as the first action by using 'Activate' function, 'Global Click On Center' function on the 'UIA', 'AA' or 'Browser' element that you want to click on before providing tabs and then using 'Global Send Keys' function on the 'Application Root' node you need to use the same command that you've used.

Let us know if that helps!
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

SiddharthAbiram
Level 3
Hi @devneetmohanty07,

Thank you so much for the response. I have implemented the same. It works as expected.

But could you please tell me if can I also copy the text and store it in clipboard after this step ?​ Thanks in advance. 

(Example -  I want to copy the value of Purchase leader that is displayed after the command {TAB 2}.

Hi Siddharth,

You can use the read stage first on the spied element from where you can read the text and store it inside a data item. This value you should ideally pass out as an output parameter from your created action in the business object that you are creating for your application.

In the Process Studio, when you call this action via Action stage, you can store the read text from that application in a data item and then use another action stage after this called as: 'Set Clipboard' from 'Utility - Environment' VBO. Here, you will require to pass the data item which consists of the value that you read and stored from your business object previously.

After this if you want to use the clipboard text, you can either use the 'Get Clipboard' action from the same 'Utility - Environment' VBO or you can also use the GetClipboard() function present in your Calculation stage and Decision stage for any operation you want to perform with it.

Hope it clears your doubt.
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.