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.
cancel
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.

Thanks.

  • SAP Managed Tags:
1 REPLY 1

former_member27
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:

Profile https://developers.sap.com/tutorials/community-profile.html

Tips for Questions: https://community.sap.com/resources/questions-and-answers

Consider taking our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html.

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

All the best,

Dedi

Regards,
Dedi Metser
  • SAP Managed Tags: