Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Object not found when using Descriptive Programming
#1
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
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)

Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
Code:
Browser("title=:"&strBrowserTitle) should be changed to  Browser("title=:"&strBrowserTitle)

Note the diff.

:= and =:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 861 04-23-2020, 07:08 PM
Last Post: BGunay
  Descriptive PROGRAMMING sandeepm1989 0 2,018 01-21-2016, 11:46 AM
Last Post: sandeepm1989
  Intermitent "Object not visible" error erodpr 5 3,288 01-14-2016, 10:55 AM
Last Post: vinod123
  login object not found in object repository Akram 2 2,985 06-01-2015, 07:47 PM
Last Post: babu123
  object was not found in the Object Repository reynard 0 6,652 03-17-2015, 10:54 PM
Last Post: reynard

Forum Jump:


Users browsing this thread: 1 Guest(s)