Object is recognized just via XPath

Ask general questions here.
dugovic.milan
Posts: 41
Joined: Wed Jun 29, 2016 1:19 pm
Location: Frankfurt, Germany
Contact:

Object is recognized just via XPath

Post by dugovic.milan » Tue Aug 02, 2016 9:57 am

Hi. I'm having this issue with DataFlavor Java-Object recognition, namely it is possible to recognize the object from repository, but unfortunately not from module itself. Whenever I run the Suite/Module Ranorex is searching for the object and can't trough, but with just simple use of XPath-highlight it works smoothly. Is there any know issue in the region of Java DataFlavor recognition? Hope my description is understandable. Thanks
Last edited by dugovic.milan on Tue Aug 02, 2016 12:27 pm, edited 1 time in total.
Ranorex 8.3.0

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

Re: Object is recognized only from repo (not from code module)

Post by odklizec » Tue Aug 02, 2016 11:19 am

Hi,

I'm afraid, there is not enough info in your post to provide a reasonable answer.
Could you please post your Ranorex version, repository and code xpath of the element in question as well as the snapshot of the element? Also, please post the code you are using and exact error message you are getting. Thank you.
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

dugovic.milan
Posts: 41
Joined: Wed Jun 29, 2016 1:19 pm
Location: Frankfurt, Germany
Contact:

Re: Object is recognized just via XPath

Post by dugovic.milan » Tue Aug 02, 2016 12:23 pm

In other words like mentioned earlier:
Failed to wait for item to exist.
Failed to find item "XXX"
No element found for path


I use Ranorex 6.0.1
Anyhow, how can I make a snapshot without an ability of finding this element?

EDIT:
To be precise the object can not be identified in repo either (highlight directly from there), but the XPath has to be opened and the last element of the path selected to recognize/highlight the object at all.
Ranorex 8.3.0

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

Re: Object is recognized just via XPath

Post by odklizec » Tue Aug 02, 2016 12:34 pm

Hi,

I'm sure the failure in report contains the repo name and even full (failing) xpath for the repo item? So please, post "exact" error message as displayed in report.

Additionally, please post the xpath used in code and exact code you are using.

As for the snapshot, you can definitely create a snapshot for the item stored in repo and for which, according to you, the highlight works? So please, create and post the snapshot for repository item.

EDIT: OK, I'm now lost ;) So you can't highlight the element from repository either? So the path stored in repo must be, in my opinion, wrong. Please post the xpath used in repo and code and take the snapshot of last found element while using the xpath used in repo or code. Are you using some indexes in you xpath?
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