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: 

GuiXT Script different name on Development and SandBox

0 Kudos

Hi GuiXT Script Expert,

While doing recording of GuiXT Script, getting different-2 element name for Development and SandBox System. Initially I recorded script in Sandox adn everything is working fine in Sandbox but when tried to run same script in Development system then getting error.

In SandBox getting below line during record and this recording is for t-code OX10

session.findById("wnd[0]/usr/ctxt[0]").text = "5504"

But in development getting

session.findById("wnd[0]/usr/ctxtV_T001W-NAME1").text = "5504"

now due to different-2 recording, system is throwing error when trying to executing same script in Development.

Please help how to resolve above problem.

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

It's not GuiXT, it's "sap gui scripting" 😉

Sandra_Rossi
Active Contributor
0 Kudos

There was exactly the same question in the forum (https://scn.sap.com/thread/3529951), and proposed to use findByName to avoid these incompatibilities between systems

session.findById("wnd[0]").findByName("V_T001W-NAME1","GuiTextField").text

Could you check on both systems if it works?