Spy: how to find soft keyboard in Android App in SPY

Ranorex Spy, Recorder, and Studio.
jjiang1
Posts: 10
Joined: Tue Oct 18, 2016 1:03 am

Spy: how to find soft keyboard in Android App in SPY

Post by jjiang1 » Fri Sep 08, 2017 12:23 am

Hello, All
I have a question on how to find the soft keyboard item in SPY. Usually, When I input a text and this time some devices soft keyboard shows up but some are not. In order to make my script for both situations, I want to do a check if the keyboard is visible, press BACK key, else do nothing.
I try to find the element in SPY, but it can't see it. Is there any one who knows how to find the soft keyboard in my sitatuion?

Thank you
Jiali

qwertzu
Posts: 179
Joined: Wed Jan 25, 2017 11:08 am

Re: Spy: how to find soft keyboard in Android App in SPY

Post by qwertzu » Mon Sep 11, 2017 1:36 pm

Hello Jjang1,

What soft keyboard exactly would you like to automate? The basic Windows On-Screen keyboard can be tracked perfectly fine using Ranorex Spy.
However, please open the soft keyboard, create a Ranorex Snapshot and upload it to this thread.
This would help us identifying your issue in more detail.

regards,
qwertzu

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Spy: how to find soft keyboard in Android App in SPY

Post by krstcs » Mon Sep 11, 2017 2:51 pm

He is specifically asking about ANDROID, not WINDOWS.

If you can see it with SPY then there SHOULD be a way to manipulate/identify it in a test. But I don't work with mobile devices, so don't take my word for it.
Shortcuts usually aren't...

jjiang1
Posts: 10
Joined: Tue Oct 18, 2016 1:03 am

Re: Spy: how to find soft keyboard in Android App in SPY

Post by jjiang1 » Wed Sep 13, 2017 6:38 pm

Sorry, I was planning to upload the snapshot but got told that not allowed to do any screenshot by company rules.
Last edited by jjiang1 on Fri Sep 15, 2017 6:32 pm, edited 2 times in total.

qwertzu
Posts: 179
Joined: Wed Jan 25, 2017 11:08 am

Re: Spy: how to find soft keyboard in Android App in SPY

Post by qwertzu » Thu Sep 14, 2017 1:39 pm

hi jjang1,

sorry, I did not look at the title of this thread so I thought you were talking about windows.
As far as I know, it is not possible to identify the keyboard of a device.
However, if you simply like to enter something in a text field, you may use a set value action on the specific element.
This should work on devices on which a keyboard pops up and also on devices where the keyboard is not shown.

regards,
qwertzu