cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass ( ) into Send keys

sapna_soni0290
Level 5

Hi,

I want to pass my shared drive path into send keys
C:/ABC/XYZ (R drive)/Randon values/Random Values.xlsx but because of ( ) its not able to write values & throw exception as group delimeters are not balanced.

Please suggest how can i pass my values . I am using Env variable data type to pass this.

5 REPLIES 5

harish.m
Level 12

Hi  sapna soni,

Try to use copy and paste clipboard instead of using global send keys

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

sapna_soni0290
Level 5

Hi Harish ,
How can i use Copy clipboard action . Please elaborate steps & syntax.

harish.m
Level 12

Hi Sapna Soni,

You can pass the text from the input parameter by using below VBO

VBO: Utility - envioronment
Action:
1) Clear Clipboard
 
2) Set Clipboard(set the data item that you want in the Clipboard)

3) you can use Global Send Keys: ^v to paste the data in the desired place.

For the step 3 you can try Global send keys if it is not working then you might need to create C# or vb.net code to escape special characters 

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

sapna_soni0290
Level 5

HI,

Has someone passed ( ) into send keys in navigate stage. If yes, plz let me know how to bypass this delimiter?
C:/ABC/XYZ (R drive)/Randon values/Random Values.xlsx

LakshmiNarayan3
Level 6

Hi

I hope you have already solved your issue

Still you can check this by enclosing in this way {(} , {)}

so if you are long text then you can use replace function to replace ( with {(} and ) with {)} in calculation stage

Regards
Lakshmi Narayana