This is a migrated thread and some comments may be shown as answers.

Test execution fails to select element on Ionic Popup dialogue

3 Answers 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Uroš
Top achievements
Rank 2
Uroš asked on 04 Dec 2015, 12:59 PM
I have a web application built with http://ionicframework.com/. On the test execution there is a problem with element selection on pop-up message (see video in att.). Element is successfully validated if in Live mode and also Simulate real click is enabled on the test step.

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 07 Dec 2015, 07:23 PM
Hi Uroš,

I think I see the problem. Notice the size and location of the target element in the first attached screenshot. Notice that the size is superwide, much wider than the containing div its put inside of. Test Studio is asking the browser for the rectangular coordinates of the element and this is what the browser is telling us.

The default behavior of Test Studio is to click on the absolute center of the target element as shown in the second attached screenshot. Unfortunately in this case the absolute center is outside of the containing div. All you need to do is to adjust the coordinates of the click as shown in the third attach screenshot.


Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Uroš
Top achievements
Rank 2
answered on 08 Dec 2015, 11:09 AM
Yes, adding the LeftCenter offset with 0,0 coordinates solved the issue. Thank you for assistance.
0
Cody
Telerik team
answered on 08 Dec 2015, 04:01 PM
Hello Uroš,

I'm glad I could help. I actually recommend setting the X value to a small positive number. By setting it to zero your instructing Test Studio to click on the exact edge of the element which may not work in all cases, all browsers. By setting it to a small positive number it will make Test Studio click just slightly to the right of the edge of the element which will be more reliable in all cases, all browsers.


Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Uroš
Top achievements
Rank 2
Answers by
Cody
Telerik team
Uroš
Top achievements
Rank 2
Share this question
or