Page 1 of 1

How to clean user name field on login form?

Posted: Fri Jun 09, 2017 5:14 pm
by ngrishakin
I'm trying to use Ranorex IDE for the first time. My user name field when I'm trying to login has last login name.
I want to clean this field and type in new user name. Using API I would do just PressKeys("{END}{SHIFT DOWN}{HOME}{SHIFT UP}{DELETE}") and type a new one. Any idea how do I insert the action that would do the same thing? I inserted a screen shot. If I try to type this keys in the field it does not work :(
Thanks a lot,
Nik

Re: How to clean user name field on login form?

Posted: Fri Jun 09, 2017 5:29 pm
by ngrishakin
Also instead Step 3 I called a user code:

public void CleanUserName()
{
repo.LoginSalesforce.Username.Element.Actions.Clear();
}

It did not work either

Re: How to clean user name field on login form?

Posted: Fri Jun 09, 2017 7:06 pm
by odklizec
Hi,

I would suggest to use Ctrl+A shortcut to select everything in username input and then simply replace (or delete) selected text with new one (using key sequence action). Hope this helps?

Re: How to clean user name field on login form?

Posted: Fri Jun 09, 2017 8:33 pm
by ngrishakin
Thank you! Got that resolved

Re: How to clean user name field on login form?

Posted: Mon Jun 12, 2017 8:16 am
by Stub
I ended up right-clicking and choosing Select All from the context menu. Hadn't thought about using a keyboard short-cut!