Micro Focus QTP (UFT) Forums
Error Object not found when using Descriptive Programming - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Error Object not found when using Descriptive Programming (/Thread-Error-Object-not-found-when-using-Descriptive-Programming)



Error Object not found when using Descriptive Programming - SaranKumarV - 09-15-2010

Hi All,

I am getting the following error "object was not found in the Object Repository" while running the following code.

Code:
strBrowserTitle =  Browser("micclass:=Browser").GetROProperty("title")
strPageTitle =  Browser("micclass:=Browser").page("micclass:=Page").GetROProperty("title")
Set User = Browser("title=:"&strBrowserTitle).Page("title:="&strPageTitle).SAPEdit("micclass:=SAPEdit","name:=j_user")

Please help me of this


RE: Error Object not found when using Descriptive Programming - Saket - 09-15-2010

you have done wrong operator assignment in this statement
Code:
Set User = Browser("title=:"&strBrowserTitle).Page("title:="&strPageTitle).SAPEdit("micclass:=SAPEdit","name:=j_user")
Browser("title=:"&strBrowserTitle). should be as Browser("title:="&strBrowserTitle)


RE: Error Object not found when using Descriptive Programming - rajvanan - 09-15-2010

Code:
Browser("title=:"&strBrowserTitle) should be changed to  Browser("title=:"&strBrowserTitle)

Note the diff.

:= and =: