typing from screen on android

Experiences, small talk, and other automation gossip.
aswinip
Posts: 2
Joined: Tue Nov 17, 2015 10:32 am

typing from screen on android

Post by aswinip » Tue Nov 17, 2015 11:01 am

Can we create an user code for clicking and sending keys from on screen keyboard in android?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: typing from screen on android

Post by odklizec » Tue Nov 17, 2015 1:42 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

lucian.teodorescu
Posts: 82
Joined: Fri Oct 24, 2014 10:58 am
Location: Bucharest

Re: typing from screen on android

Post by lucian.teodorescu » Tue Nov 17, 2015 2:00 pm

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,
Lucian Teodorescu
NetSun Software

aswinip
Posts: 2
Joined: Tue Nov 17, 2015 10:32 am

Re: typing from screen on android

Post by aswinip » Tue Nov 17, 2015 4:25 pm

Thankx,,

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

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

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

Re: typing from screen on android

Post by Support Team » Fri Nov 20, 2015 2:54 pm

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)