Hi!
I faced the same problem, the workaround I use is as follows:
- Is the statusbar wisible (wnd[0]/sbar) ?
- If yes, click on it.
- After the click, if the statusbar is empty, nothing will happen, otherwise a new window should appear named "Performance Assistant"
- If this window appeared, you can see items on it with XPath values /root/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/pane[1]/text[${index}] (where ${index} can be any number from 1 to let's say 12. I only use the 2 last ones, so if there are 6 items, then I use the 5th and 6th. On the screen these are the first 2 messages, they appeares in backward order.
- So I get these 2 last items value, and these are my status bar messages.
Also, for the "Performance Assistant" window, you need to go into the setup, to tell the SAP, you want these statusbar messages in the "Performance Assistant" window.
- To close the "Performance Assistant" window, send an Esc or F3 key.
Hope this hepls.
Kind regards
István
------------------------------
István Nagy
------------------------------
Original Message:
Sent: Sun January 01, 2023 02:58 AM
From: 傑仁 柯
Subject: How to Get Value from SAP GUI Status Bar?
Hello guys,
I tried to use command Get Value to get the result from SAP GUI Status bar like below screenshot. But when I used the XPath or id as selector both were not work. Can anyone tell me how to get the sap status bar value ? Thank you.
------------------------------
傑仁 柯
------------------------------