Thanks for you answers
the same problem with object tree refresh
example:
Call refreshobjects(1)'-------------------------check for exists Sys.process("iexplore").Window("IEFrame", "*", 1).Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1).Page("*").document.frames.frame("InlineFrame").document.all If not exists then object tree refresh-------------------------------------------------
if Sys.process("iexplore").Window("IEFrame", "*", 1).Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1).Page("*").document.frames.frame("InlineFrame").document.all.exists = true then
Set line = Sys.process("iexplore").Window("IEFrame", "*", 1).Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1).Page("*").document.frames.frame("InlineFrame").document
Set linenext = line.all
Call pageLoad(line)'-------script check object document property readyState for the status "complete"----------------------------------
Call Find(linenext, "Button")'-----here script want to find object which have innertext "Button"
When is calling Find procedure some time frow the error
After procedure Find frow the exeption to the TC log:
exeption:
An exception occurred in the "TEST" unit at line 798:
Microsoft VBScript runtime error
Object doesn't support this property or method: 'row.Child(...).innerText'
Microsoft VBScript runtime error:
Object doesn't support this property or method: 'row.Child(...).innerText'
Unit: "TEST" Line: 798 Column: 5.