Identified Flash Elements are Shifted

Ask general questions here.
Oksana
Posts: 64
Joined: Tue Jan 15, 2013 10:20 am

Identified Flash Elements are Shifted

Post by Oksana » Tue Jan 15, 2013 10:47 am

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.
Attachments
IdentifyIssue.jpg
IdentifyIssue.jpg (3.47 KiB) Viewed 921 times

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

Re: Identified Flash Elements are Shifted

Post by Support Team » Tue Jan 15, 2013 11:58 am

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)
.
Image

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

Re: Identified Flash Elements are Shifted

Post by Oksana » Tue Jan 15, 2013 2:27 pm

Ranorex Studio Version is 4.0.1.21107
Testing application uses Flash technology.
Snapshot is attached.

Regards,
Oksana.

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

Re: Identified Flash Elements are Shifted

Post by Support Team » Tue Jan 15, 2013 4:11 pm

Hello,

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

Regards,
Markus (T)
.
Image

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

Re: Identified Flash Elements are Shifted

Post by Oksana » Tue Jan 15, 2013 4:27 pm

Snapshot
Attachments
Bingo.zip
(3.45 MiB) Downloaded 155 times

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

Re: Identified Flash Elements are Shifted

Post by Support Team » Wed Jan 16, 2013 11:17 am

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)
.
Image

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

Re: Identified Flash Elements are Shifted

Post by Oksana » Wed Jan 16, 2013 11:52 am

Thanks!

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

Re: Identified Flash Elements are Shifted

Post by Oksana » Wed Jan 23, 2013 8:17 am

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.

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

Re: Identified Flash Elements are Shifted

Post by Support Team » Wed Jan 23, 2013 5:36 pm

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)
.
Image

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

Re: Identified Flash Elements are Shifted

Post by Oksana » Thu Jan 24, 2013 5:11 pm

Hello,

Please, see the attached file.

Sincerely,
Oksana.
Attachments
build.zip
(795.01 KiB) Downloaded 166 times

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

Re: Identified Flash Elements are Shifted

Post by Support Team » Mon Jan 28, 2013 5:08 pm

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)
Attachments
RxPreloader.zip
(21.93 KiB) Downloaded 175 times
.
Image

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

Re: Identified Flash Elements are Shifted

Post by Oksana » Tue Jan 29, 2013 7:53 am

Thanks!

This workaround works.

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

Re: Identified Flash Elements are Shifted

Post by Support Team » Wed Jan 30, 2013 12:59 pm

Hello,

You are welcome :-)

Regards,
Markus (T)
.
Image