Micro Focus QTP (UFT) Forums

Full Version: Object doesn't support this property or method: 'window(...).window(...).winobject'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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..