Micro Focus QTP (UFT) Forums
Object doesn't support this property or method: 'window(...).window(...).winobject' - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Object doesn't support this property or method: 'window(...).window(...).winobject' (/Thread-Object-doesn-t-support-this-property-or-method-window-window-winobject)



Object doesn't support this property or method: 'window(...).window(...).winobject' - senthil5683 - 04-26-2016

When i try to run  the script, UFT throws the below error.

Object doesn't support this property or method: 'window(...).window(...).winobject'

my statement is
Line (3): "window("text:=McKesson").window("text:=McKesson Horizon Login").winobject("nativeclass:=WindowsForms10.EDIT.app.0.3d90434","window id=104").type "8889"

Please let me know, how can i overcome thuis issue


RE: Object doesn't support this property or method: 'window(...).window(...).winobject' - venkatesh9032 - 07-04-2016

the text of the object can be changed try the below snippets

"window("text:=.*").window("text:=.*").winobject("nativeclass:=WindowsForms10.EDIT.*","window id=.*").type "8889"

///Note: i have used temporary soloution by adding (.*) as a regular expression..