In-app webview

Mobile Testing, Android App Testing.
eafojas
Posts: 8
Joined: Wed Nov 06, 2013 8:27 am

In-app webview

Post by eafojas » Mon Nov 18, 2013 11:57 am

Hello,

I made a very simple iOS app where there is just a webview that loads google.com. I made a recording that touches that search field and then inputs sa search value then press search button (via keyboard). When i run my recording, ranorex manages to set the value of the textfield but can't continue on with pressing enter key. The error was device communication timed-out, I've tried it several times but I still get the same result. I' using iOS 7 with ranorex v 4.1.2.161. Thanks!
Attachments
Reports.zip
Reports
(514.92 KiB) Downloaded 176 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: In-app webview

Post by Support Team » Tue Nov 19, 2013 3:38 pm

Hello eafojas,

Thank you for the report file.
Can you please try to increase the search timeout?
I can see in your report that you execute the 'Set Value' action on the 'VoyagerRanorexWebViewTest.LstIb' element, but the keyboard '{ENTER}' action is executed on the 'VoyagerRanorexWebViewTest.UIWindow'.
Maybe you are using the wrong Repository element.
Can you please post a Ranorex Snapshot file?

Regards,
Bernhard
.
Image

eafojas
Posts: 8
Joined: Wed Nov 06, 2013 8:27 am

Re: In-app webview

Post by eafojas » Wed Nov 20, 2013 9:56 am

Hello Bernhard!

Thank you for your reply! I see that the element that I used was a UIWindow and I think you a right that I was using the wrong element. But the problem is that I want to search using the iOS keyboard's "Enter/Search" button after I set the value of the search field. Based on my understanding, correct me if I'm wrong, the setValue instruction does not display the keyboard of the device, so I think that's the reason why ranorex can't find the UIKBKeyView ("Search/OK" button of the keyboard, I got its ranoreXpath using spy). Is my assumption correct? Should I just use the search button in the web view rather than the "Search/OK" button of the keyboard? I'm just trying to know the limitations with regards to in-app webViews. Thank you very much!! :D

I attached the snapshot and report of my application. Again thank you for your time! :D

Regards,
Edgar
Attachments
ranorex snapshot.rxsnp
(59.91 KiB) Downloaded 155 times
Reports.zip
(192.32 KiB) Downloaded 153 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: In-app webview

Post by Support Team » Thu Nov 21, 2013 5:36 pm

Hello Edgar,

Yes, you are correct.
A workaround is to add a touch action on the 'VoyagerRanorexWebViewTest.LstIb' element before the keyboard {ENTER} action. If you do this, the keyboard should appear and the {ENTER} button should be found.

Regards,
Bernhard
.
Image