Page 1 of 1

Identified Flash Elements are Shifted

Posted: Tue Jan 15, 2013 10:47 am
by Oksana
Hi!

During automation of flash application I have encountered with problem of identifying elements: red rectangles (that highlight borders of element) are shifted relative to the controls displayed in UI.
When the elements are large enough, it is not so critical, because identified area is only slightly shifted from real, and it is still possible to hit necessary item; but for small objects difference is very big, and identified area is entirely wrong.
You can see this on the screenshot in the attached file.
It is common situation for IE, Chrome and Firefox browsers.

Could please let me know how to get rid of such issue?

Regards,
Oksana.

Re: Identified Flash Elements are Shifted

Posted: Tue Jan 15, 2013 11:58 am
by Support Team
Hello,

Which Ranorex version are you using?
Which Technology (e.g. Flash/Flex) are you using in your application?
Please take a look at our 'General Troubleshooting' page in our User Guide.

Could you please post a Snapshot of your application in order to analyze this issue?
Please take a look at section 'Creating Ranorex Snapshot Files' in our User Guide.

Thanks in advance.

Regards,
Markus (T)

Re: Identified Flash Elements are Shifted

Posted: Tue Jan 15, 2013 2:27 pm
by Oksana
Ranorex Studio Version is 4.0.1.21107
Testing application uses Flash technology.
Snapshot is attached.

Regards,
Oksana.

Re: Identified Flash Elements are Shifted

Posted: Tue Jan 15, 2013 4:11 pm
by Support Team
Hello,

Please post the Snapshot of your application (it wasn't attached to your previous post).
Thank you.

Regards,
Markus (T)

Re: Identified Flash Elements are Shifted

Posted: Tue Jan 15, 2013 4:27 pm
by Oksana
Snapshot

Re: Identified Flash Elements are Shifted

Posted: Wed Jan 16, 2013 11:17 am
by Support Team
Hello,

Thank you for your snapshot.

Unfortunately, the 'Remember Me' object is not a 'Checkbox' control (looks like a shape).
Therefore, it's not possible to use this object for test automation.

The cause for your issue 'wrong geometry of objects in your application' is unknown.
It looks like incorrect settings in your application.
Is it possible to get the source code for the login page of your application in order to assist you in this case?

Thanks in advance.

Regards,
Markus (T)

Re: Identified Flash Elements are Shifted

Posted: Wed Jan 16, 2013 11:52 am
by Oksana
Thanks!

Re: Identified Flash Elements are Shifted

Posted: Wed Jan 23, 2013 8:17 am
by Oksana
Hello!

I have an update about this issue:

When "Ranorex Automation 4.0.1.21107" add-on is disabled in Firefox browser, then flash elements are identified at proper positions without any shift. But in this case structure of elements is wrong: almost all elements are displayed in the tree view on the same level of indentation.

For Chrome browser, when Ranorex plugin is disabled, it is not possible to identify any of flash elements at all.

So, are there some issues with "Ranorex Automation 4.0.1.21107" add-on or it requires someting in order to work well?

Sincerely,
Oksana.

Re: Identified Flash Elements are Shifted

Posted: Wed Jan 23, 2013 5:36 pm
by Support Team
Hello,

Unfortunately, we could not provide a solution for this issue.

Is it possible to get the source code for the login page of your application in order to assist you in this case?
If not is it possible to get a sample application?

Regards,
Markus (T)

Re: Identified Flash Elements are Shifted

Posted: Thu Jan 24, 2013 5:11 pm
by Oksana
Hello,

Please, see the attached file.

Sincerely,
Oksana.

Re: Identified Flash Elements are Shifted

Posted: Mon Jan 28, 2013 5:08 pm
by Support Team
Hello,

Thank you for your files.
Currently, we are working on a fix for this issue.
As a workaround, could you please replace our 'Preloader for Flash/Flex' as shown in the steps below?

- Close Ranorex Studio
- Please open the path 'C:\Program Files (x86)\Ranorex 4.0\Bin' in Windows Explorer.
- Rename the 'RanorexAutomation.swf' into 'RanorexAutomation.swf.backup'.
- Copy the file 'RanorexAutomation.swf' from the attached 'RxPreloader.zip' file into this folder.
- Open Spy and track elements of your application.

Please let us know if it works.
Thank you in advance.

Regards,
Markus (T)

Re: Identified Flash Elements are Shifted

Posted: Tue Jan 29, 2013 7:53 am
by Oksana
Thanks!

This workaround works.

Re: Identified Flash Elements are Shifted

Posted: Wed Jan 30, 2013 12:59 pm
by Support Team
Hello,

You are welcome :-)

Regards,
Markus (T)