Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Can't recognize the WinObject second time
#1
Not Solved
Hi All,

When i run my script after recording or deug, QTP do not recognize the object. Following is the codeSadin BOLD)

Window("SiPass integrated -- AUSYDW221").Dialog("Cardholder").WinButton("Add Card").Click

a = Window("SiPass integrated -- AUSYDW221").Dialog("Cardholder").ActiveX("CardsView").WinObject("WindowsForms10.EDIT.app.0.225e691").GetROProperty ("text")

Please help,

Thanks,

Ajit
Reply
#2
Not Solved
Check if you get the same object properties for WinObject everytime it is opened. If not use regular expression.
Reply
#3
Not Solved
Hi Again,

What i found is, the WinObject is not being focused on by QTP. When i click on this winobject script continues.

Now how can i make QTP focused on this object?

Thanks,

Ajit
Reply
#4
Not Solved
Hi Try following code.

Setfocus method should be useful for getting the RO text property.

Code:
Window("SiPass integrated -- AUSYDW221").Dialog"Cardholder").WinButton("Add Card").Click


Window("SiPass integrated -- AUSYDW221").Dialog("Cardholder").ActiveX("CardsView").WinObject("WindowsForms10.EDIT.app.0.225e691").setfocus

a = Window("SiPass integrated -- AUSYDW221").Dialog("Cardholder").ActiveX("CardsView").WinObject("WindowsForms10.EDIT.app.0.225e691").GetROProperty ("text")
Reply
#5
Not Solved
Sorry, didn't work. saying object not in repository. the only way it works is when u manually click on the WinObject

Please help.
Ajit
Reply
#6
Not Solved
Try:
Code:
Window("SiPass integrated -- AUSYDW221").Dialog("Cardholder").ActiveX("CardsView").WinObject("WindowsForms10.EDIT.app.0.225e691").Activate

a = Window("SiPass integrated -- AUSYDW221").Dialog("Cardholder").ActiveX("CardsView").WinObject("WindowsForms10.EDIT.app.0.225e691").GetROProperty ("text")
Reply
#7
Not Solved
Hi,
Could you try using descriptive programming and adding several more properties of the object.
Also you can use ".Activate " to activate win object and then try to identify the object using more properties.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to perform operations on objects under WinObject in .net app ramakant 0 1,917 11-10-2015, 07:56 PM
Last Post: ramakant
  Does QTP recognize C++ Objects? Babita01 0 3,503 05-15-2012, 03:09 PM
Last Post: Babita01
  QTP doesnot recognize Java objects. Babita01 0 3,890 05-15-2012, 11:41 AM
Last Post: Babita01
  QTP "Can't recognize object" error Ansh123 3 3,447 12-28-2011, 02:59 PM
Last Post: sshukla12
  Does QTP Recognize IBM Work place forms 2.7??? nit_naresh 0 2,335 09-04-2011, 10:43 AM
Last Post: nit_naresh

Forum Jump:


Users browsing this thread: 4 Guest(s)