Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

SAP GUI Scripting - Validating GuiButton Object

0 Kudos

Hi dear community!

I'm trying to validate if a GuiButton Object is hidden or not.

This is my code:

    If session.findById("wnd[0]/tbar[1]/btn[39]").Text = "" Then
Status = "Hidden"
GoTo Status
End If

I got a 619 error on the If when the button is not showed.

I appreciate any help.


  • SAP Managed Tags:

Community Manager
Community Manager
0 Kudos

Hi flaviovich,

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get the most out of your community membership, please consider including a profile picture to increase user engagement & additional resources to your reference that can really benefit you:


Tips for Questions:

Consider taking our Q&A tutorial at:

I hope you find this advice useful, and we're happy to have you as part of the SAP Community!

All the best,


Dedi Metser
  • SAP Managed Tags: