Image Text verification which changes dynamically

Ask general questions here.
User avatar
subodh4u7
Posts: 71
Joined: Tue Jan 06, 2015 8:26 am

Image Text verification which changes dynamically

Post by subodh4u7 » Tue Sep 15, 2015 12:30 pm

Hello Ranorex Experts,

I have one situation w.r.t ranorex spy and this goes as below:

I have one area where image will be displayed and these images are sent periodically along with some text on it. Since the area keeps on refreshing with new content, I am not able to track/highlight the text part on it. I am able to track it but since this is kind of dynamic and content keeps on refreshing i m losing the rxpath and there are no chances that i can perform some operation on it.

Can you please any one guide me how can i handle this situation.

I want to verify whether the image which are displayed in that area contains the text.

I am adding the screenshot of the repository in which the element i want to access dynamically. I wont be able share them because of company policy.
You do not have the required permissions to view the files attached to this post.
Regards,
Subodh

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Image Text verification which changes dynamically

Post by odklizec » Tue Sep 15, 2015 3:20 pm

Hi,

It's pretty hard to provide something helpful without the possibility to analyze snapshot. Screenshot is unfortunately not helpful here.

From the screenshot it looks that your app under test is automation unfriendly ;) If I understand you right, the automationid of selected Text '18' is not persistent? So if there is no other unique attribute for given Text, you are probably out of luck? In some cases, it's possible to construct a relative path using neighboring elements. But looking at the structure of your app, it's probably not this case? Again, it's pretty hard to say something conclusive without examining the snapshot.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration