vbscript - "Object cannot be identified" or "Object not visible" Run Error in QTP? -
winobj either cannot identified or not visible when run script.
but when click "debug" button in error message box appears, open object repository , highlight in application winobj, winobj gets highlighted. , when resume running script, script runs fine --- error doesn't occur anymore.
how can prevent error happening?
update: code goes this:
public function gettext( winobjobject, textarray ) dim textholder textholder = winobjobject.getvisibletext() '' error occurs textarray = split(textholder, vbcrlf) end function
for more specific answer, need see code. there thousand reasons why occurring. work around, can prevent error happening moving manual error handling.
it sounds letting application perform error handling, move past this, @ top of function/sub/segment of code, set "on error resume next" , perform error handling manually. take @ following links more information on how handle errors.
Comments
Post a Comment