Simulate a tap event on a Div inside UIWebView

Mobile Testing, Android App Testing.
arthurva
Posts: 1
Joined: Wed Feb 06, 2013 1:22 pm

Simulate a tap event on a Div inside UIWebView

Post by arthurva » Wed Feb 06, 2013 1:33 pm

Hi,

I would like to know if you can simulate a tap event on a Div inside UIWebView.

My app is HTML5 app(built using sencha touch) which runs upon UIWevView. The buttons are not "input" fields but are constructed from "div"s. I know that it is possible to simulate a click on an input field, but as far i know it is not possible simulate a div click, hence i may not be able to use your framework to test my html5 app.
Am i mistaken? (I'm talking only about ios's UIWebView)

Thanks!

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

Re: Simulate a tap event on a Div inside UIWebView

Post by Support Team » Thu Feb 07, 2013 5:28 pm

Hello,

As soon as you can find this 'Div' tag using Spy, it is possible to click on it with Ranorex.
You might need to adjust the relative location of your click instead of 'Center'.

Could you please try it out?
If it is still not working, could you please post a Ranorex Snapshot and describe which 'Div' tag you want to click on?

Regards,
Markus (T)
.
Image