Multiple variables in Sequence field

Ask general questions here.
VictorE
Posts: 4
Joined: Wed Oct 24, 2012 8:04 pm

Multiple variables in Sequence field

Post by VictorE » Fri Oct 26, 2012 4:04 pm

I am trying to map two variables to one action.

For example:
I want to put $varFirstName + $varLastName in the sequence field on a Key Sequence action. When I do this it ends up typing "$varFirstName + $varLastName"

Looking at the .cs file I see its adding the quotation marks.
repo.CustomerSignUp.BillingFullName.PressKeys("$varFirstName+$varLastName");

I can manually change it in the .cs file but that would mean I have to convert it to usercode.
repo.CustomerSignUp.BillingFullName.PressKeys(varFirstName+varLastName);

How can I do this via the Ranorex in the sequence filed on the .rxrec file?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Multiple variables in Sequence field

Post by Support Team » Tue Oct 30, 2012 1:39 pm

Hello,

It is not possible to combine variables in a recording action.
You could split it up into two actions (one for each variable).

Another way is to write a function in user code as you mentioned.

Regards,
Markus (T)