What the better way to access UIKBKeyView

Mobile Testing, Android App Testing.
User avatar
FelixK98
Posts: 54
Joined: Fri Apr 08, 2016 6:28 am

What the better way to access UIKBKeyView

Post by FelixK98 » Tue Jun 07, 2016 5:25 am

Hi Everyone,

I got a problem with iOS native numeric keyboard which got each number as object of the UIKBKeyView class.
I have to use it twice: 1) for login pin and 2) for entering patient ID.
Can someone suggest what is the best way to access this keyboard?

I attached the snapshot of app with UIKBKeyView objects.

Thanks,
Felix.
You do not have the required permissions to view the files attached to this post.

User avatar
FelixK98
Posts: 54
Joined: Fri Apr 08, 2016 6:28 am

Re: What the better way to access UIKBKeyView

Post by FelixK98 » Wed Jun 08, 2016 12:43 am

Hi Everyone,

I got some additions to my original post.
I tried to use the following XPath:

Code: Select all

form//container[@platformclass='UIKBKeyplaneView']/container[4]
And I am facing a new problem:
Ranorex can see it and make a Touch function, but during runtime I am getting the following error:
Cannot synthesize touch event because elment with ID <1631756960> was not found
Show/Hide Stacktrace
at Ranorex.Plugin.Mobile.XmlRpc.XmlRpcProtocolChannel.Call(MethodCall mc, TimeSpan responseTimeout) at Ranorex.Plugin.Mobile.Device.Channels.AppLogicChannel.Touch(String loc, Int32 elementIdentifier, Boolean isLongClick, Int32 duration) at Ranorex.Plugin.Mobile.Device.Channels.AppLogicChannel.Touch(IElementWithId element, TouchEvent evt) at Ranorex.Plugin.Mobile.RxIntegration.Elements.MobileFlavorElement.Touch(TouchEvent evt) at Ranorex.Touch.Tap(Element element, Int32 pointer, Location location, Duration touchDuration) at Ranorex.Adapter.Touch() at GidgetMobile.UserLoginSucess.Ranorex.Core.Testing.ITestModule.Run() in f:\Code\gidget\source\automation\GidgetMobile\UserLoginSucess.cs:line 91 at Ranorex.Core.Testing.TestModuleLeaf.RunInternal(DataContext parentDataContext)
Any idea to how to get other it?

Thanks,
Felix.

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

Re: What the better way to access UIKBKeyView

Post by Support Team » Thu Jun 09, 2016 2:15 pm

Hi Felix,

Unfortunately we would need to analyze this "Cannot synthesize touch event because element with ID" error directly on our system. May I ask you if you could send a non-instrumented copy of your application and the Ranorex Project to [email protected]?

Thank you in advance.

Sincerely,
Markus (S)

User avatar
FelixK98
Posts: 54
Joined: Fri Apr 08, 2016 6:28 am

Re: What the better way to access UIKBKeyView

Post by FelixK98 » Tue Jun 14, 2016 8:14 am

Hi Markus,

Thank you for reply. Unfortunately, I can't provide you with non-instrumented copy of our app due to some copyright/IP issues.
But, I found workaround and now it works good.

Thanks,
Felix.