Some elements in iOS web application are not touched

Mobile Testing, Android App Testing.
Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

Some elements in iOS web application are not touched

Post by Oksana » Mon Jul 29, 2013 2:12 pm

Hello,

There is a difficulty with touching some elements in iOS web application. These elements can be easily found by Ranorex Spy. In the report we get 'Success' for Touch operation. But in fact nothing is touched.
I've tried to touch by coordinates (using values from ScreenRectangle property of necessary element), but nothing helps.
One more issue can be related with such strange behaivor: all that elements (which are not touched) are located inside form element, that is defined with Ranorex Spy (and Repository respectively) as a form, but when I try to find some elements in it with Find method, I get such error message:

Item *** is no Form.
The element does not support the required capability 'form'.

Defining form xpath with 'element' instead of 'form' enable to avoid such error message, but elements inside the form still are not touched.

Do you now probable reasons of such problem and how to solve it?

Ranorex version is 4.0.4

Thanks,
Oksana.

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

Re: Some elements in iOS web application are not touched

Post by Support Team » Tue Jul 30, 2013 1:47 pm

Hello,

It seems that your element is not identified correctly.

Could you please post or send us ([email protected]) a Ranorex Snapshot of your application?
This would help to analyze your issue.
Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Thank you in advance.

Regards,
Markus (T)

Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

Re: Some elements in iOS web application are not touched

Post by Oksana » Mon Aug 12, 2013 6:46 am

Hello!

I have new information about this problem.
Not only some specific elements on the web page are not actually touched (still Ranorex report have 'success' result for such actions), but even button Go in Ranorex browser. Here is a piece of code:

repo.TestRxBrowser.RxBrowser.wndBrowser.txtURL.Element.SetAttributeValue("Text", url);
repo.TestRxBrowser.RxBrowser.wndBrowser.ToolBar.btnGo.Touch();

After its execution I have URL address entered, and button Go is either not touched or (sometimes) it is highlighted for a moment, but nothing happens, in any way necessary page is not opened.
I've tried to press Go button manually after execution ot this code, but button was not touched too for several times and only after 5 or 6 try it reacted on the touch.

One note about recording
When I try to record these actions, element that is touched is not recognized properly. In Ranorex recording module appears actions for touching toolbar, not a Go button.

Version of Ranorex Studion: 4.1.0
Version of Ranorex browser project: RxBrowser_410
Device is connected to machine with Ranorex via network.

Have you any suggestions regarding this problem?

Sincerely,
Oksana.

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

Re: Some elements in iOS web application are not touched

Post by Support Team » Wed Aug 14, 2013 4:02 pm

Hello,

Do you face this issue with other elements beside of the toolbar?
Is it possible to get access to your webpage in order to reproduce your issue?
This would be a great help.

Regards,
Markus (T)

Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

Re: Some elements in iOS web application are not touched

Post by Oksana » Thu Aug 15, 2013 9:06 am

Hello,

This problem is not only for Ranorex browser toolbar. For instance, for such structure:

- myForm: (RXPath=form[@name='_formname'])
-- myInput: (RxPath=p/input[@name='_somename'])
-- myButton: (RxPath=button[@type='submit'])

All these elements can be found in Ranorex 'Path Editor', for each of them there is only 1 element in 'Browser & Results'.

And when I work with this form:
1) call Touch() for myInput (no matter where in code or from recording module) - Ranorex reports success result, but element is not actually touched (keyboard doesn't appear);
2) Touch() myButton (no matter where in code or from recording module) - Ranorex reports error 'Item * is no Button. The element does not support the required capability 'button'';
3) When I change in repository myButton RxPath to 'element[@type='submit']' - Ranorex reports success result, but element is not actually touched;
4) When I try to find myInput inside myForm in code:
InputTag myInput
myForm.Self.TryFindSingle<InputTag>(@"p/input[@name='_somename']", out myInput);
I get an error, that myForm is no form. Changing of myForm RxPath from 'form' to 'element' in repository allow to find necessary input tag inside it, but still element is not touched.

5) When I record touching on the elements, Ranorex recognizes wrong elements (from page head tag, that are always invisible), playing recorded actions doesn't reproduce real actions.

I'll appreciate any suggestions and propositions how to solve this problem.

Sincerely,
Oksana

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

Re: Some elements in iOS web application are not touched

Post by Support Team » Mon Aug 19, 2013 4:07 pm

Hello,

In order to help you with your issues we would need your app (address of the website you are testing) and the used Ranorex solution.
Could you please send it to [email protected]?

Thanks,
Markus