Page 1 of 1

typing from screen on android

Posted: Tue Nov 17, 2015 11:01 am
by aswinip
Can we create an user code for clicking and sending keys from on screen keyboard in android?

Re: typing from screen on android

Posted: Tue Nov 17, 2015 1:42 pm
by odklizec
Hi,

I would suggest you to examine Mobile Key Press action described here...
http://www.ranorex.com/support/user-gui ... tions.html
If you want user code, then simply convert the recorded/manually added Mobile Key Press action to user code. Just right click the action in recording module and from the appeared menu select View Code or Convert to User Code.

Re: typing from screen on android

Posted: Tue Nov 17, 2015 2:00 pm
by lucian.teodorescu
Hi,

No, there is no support for soft-keyboard of [virtual] mobile devices, except the 11 'action-keys' that can be found under Add New Action > Mobile Key Press menu.

But you could use a combination of actions like <Set Value + mobile action key> or, on virtual device <Click on text control + key sequence + mobile action key>.

It worked for me in most of the cases (as for exceptions, I have some image based tests)

Cheers,

Re: typing from screen on android

Posted: Tue Nov 17, 2015 4:25 pm
by aswinip
Thankx,,

worked with code for mobile key press , but i am now stuck at inputing '@' symbol in emailid.

error returned ;;; - -- Unknown key KEYCODE_@

Re: typing from screen on android

Posted: Fri Nov 20, 2015 2:54 pm
by Support Team
Hi aswinip,

Please ensure that your method for text input looks like the following
repo.App.EditText.Element.SetAttributeValue("Text", "[email protected]");
Please let me know if this solved your problem.

Regards,
Markus (S)