Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

the control could not be found by id

$
0
0

Hi, how are you!

I would run the script to process many script entries below, but this giving error: The control could not be found for id.The code does not go into loop. Run only one entry.

 

How can I run varies entries?

 

If Not IsObject(application) Then

  Set SapGuiAuto  = GetObject("SAPGUI")

  Set application = SapGuiAuto.GetScriptingEngine

End If

If Not IsObject(connection) Then

  Set connection = application.Children(0)

End If

If Not IsObject(session) Then

  Set session    = connection.Children(0)

End If

If IsObject(WScript) Then

  WScript.ConnectObject session,    "on"

  WScript.ConnectObject application, "on"

End If

session.findById("wnd[0]").maximize

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

session.findById("wnd[0]/usr/ctxtP_STCD").text = "201387"

session.findById("wnd[0]/usr/ctxtP_STCD").caretPosition = 6

session.findById("wnd[0]/tbar[1]/btn[8]").press

session.findById("wnd[1]/usr/btnBUTTON_1").press

 

Thank you so much!

 

Alysson


Viewing all articles
Browse latest Browse all 845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>