VB script for automatically autospying all the childobjects in a screen ,adding them to object repository automatically for SAP Automation using QTP? -


i have used following code: able retrieve child objects using childobjects function,but while using addobject function in qtp, throwing general error in addobject line:

set child_object = sapguisession("session").sapguiwindow("sapeasyaccess").childobjects set myrep = createobject("mercury.objectrepositoryutil") myrep.load "n:\automation\object repository\po.tsr" set parent = myrep.getobjectbyparent("sapguisession(""session"")","sapguiwindow(""sapeasyaccess"")") set parentofparent=sapguisession("session") myrep.addobject parent ,parentofparent myrep = nothing 

please me general error in addobject method in qtp. using qtp 12.53.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -