Cannot identify desktop items during execution

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
chidambaram0705
Posts: 2
Joined: Thu Oct 22, 2020 1:40 pm

Cannot identify desktop items during execution

Post by chidambaram0705 » Thu Oct 22, 2020 1:50 pm

Hi,

XPath: /desktop[@processname='explorer']//listitem[@text='Diagnosis Files']
On Spy, the parent and child elements gets highlight without any issue, but during execution it fails to identify.
No just above object, all the desktop items fails during execution.

Ranorex Version : 9.3.2+git.9da16f76
Snapshot Attached: DesktopItem.rxsnp

Regards
Chida
Attachments
DesktopItem.rxsnp
(4.53 MiB) Downloaded 6 times

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

Re: Cannot identify desktop items during execution

Post by odklizec » Thu Oct 22, 2020 9:53 pm

Hi,

How did you take the snapshot? Manually via Spy or from recording module? I'm asking, because the snapshot apparently does not show/contain anything under Desktop element? And this is most probably also why the xpath fails.

At first, try to update Ranorex with most recent 9.3.3 and the add 'explorer' process to Ranorex whitelist.
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

chidambaram0705
Posts: 2
Joined: Thu Oct 22, 2020 1:40 pm

Re: Cannot identify desktop items during execution

Post by chidambaram0705 » Tue Oct 27, 2020 9:00 am

-Verified Whitelist and explorer is added to whitelist.
-Yes, I saved the snapshot via Spy.

Still no success in making the click work on the desktop items.
Observation:
1. If record and playback, the action of clicking the desktop item works fine.
2. If Same item (Same Xpath) is accessed via new repository created (not created by recording) in user code module, the click doesn't work.

Xpath: /desktop[@processname='explorer']//listitem[@text='Support Tool']

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

Re: Cannot identify desktop items during execution

Post by odklizec » Tue Oct 27, 2020 10:56 am

Hi,

Well, then there is most probably a problem with code module? Any chance you can share your code?
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