SAP Table is recognized but fails to detect in run time

Ask general questions here.
rastek
Posts: 183
Joined: Wed Aug 06, 2014 12:00 pm

SAP Table is recognized but fails to detect in run time

Post by rastek » Tue Feb 16, 2021 1:04 pm

Hello,

I automate a SAP application, I finaly found way to enable scripting (by unchecking manifest exe) but this time I had another issue which I faced before few times.
gettting this error
Element for item 'GuiShell' does not exist (Failed to find item 'DemoRepository.QS11100SDOrderMonitorMainItemL.GuiShell'. Please check that your whitelist allows Ranorex to access the process. No element found for path '/form[@title>'QS1']/container[@caption='']//table[1]' at step 'container[@caption='']' after 111 attempts within 20s.). [/language]

I can recognize objects tables but Ranorex can not find in runtime... I do not understand how can I got some kind of basic problem ??

there is no explanation for this, I tried many things but no help. I hope there is a meaningful answer.
table is recognized but can not be found when I started the test
container[@caption='']//table[@type='GuiShell']

when I spy I noticed there is form with transaction name and I tried with transaction name but again no help
Failed to find item 'DemoRepository.try.GuiShell.Row0'. Please check that your whitelist allows Ranorex to access the process.
No element found for path '/form[@transaction='Z_SD_ORDER_MONITOR']//table[@type='GuiShell']/row[@index='0']' at step 'form[@transaction='Z_SD_ORDER_MONITOR']' after 149 attempts within 20s.

I tried to have folder with processname but didnt wotk
/form[@processname='saplogon']

also have tried with table with index number
container[@caption='']//table[1]

also tried to click on rows or cells, didnt help.
Attachments
GuiShell_Screenshot.png
GuiShell_Screenshot.png (41.25 KiB) Viewed 215 times
table.rxsnp
(122.82 KiB) Downloaded 11 times

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

Re: SAP Table is recognized but fails to detect in run time

Post by odklizec » Fri Apr 16, 2021 7:10 am

Hi,

Have you resolved this issue? My guess is, that there are different settings in Ranorex Studio and Spy, eventually, that one of them is started in Administrator mode and the other don't? Please try to update Ranorex with most recent 9.5. Then make sure both Spy and Studio use the same settings (export settings from Standalone Spy and load them in Studio).

If the problem still appears, please create a Ranorex snapshot or the topmost form (not just the table in question), both in standalone Spy and during runtime, using Create Snapshot action, added directly to recording (just before the failing action). And post them both here. Thanks.
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