Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Not Able to recognise the object in window application.
#1
Hi Ankur and All,

Pls. Sort out my problem,

QTP does not able to recognise the object in Window application. The applicatin in .Net. While writing Description Programming, I am facing prblem of creating object.

Code:
Set mywin = Description.Create () mywin("Class Name").value="Window" mywin("windowstyle").value="382337024" Set mywin1 = Description.Create () mywin1("Class Name").value="WinObject" Set winb = Description.Create () winb("Class Name").value="WinButton" winb("Name").value="Family History" Window(mywin).Activate Window(mywin).WinObject(mywin1).Static(winb).click
Winb object is not recognise by QTP. My dead line of 25/4/08. Pls. help me out.


Attached Files Image(s)
   
Reply
#2
whats the error message?...if it is something like "...object properties does not match..."

you need to include some more properties to uniquely identify the object(s).
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Hi Ankur,

Devlopers user Data Grid for family panel window(attached screen short). When I try to verify the object through Object Spy, It recognize the only panel window but not recognize the Linkes Like "Family History". Without kowning the object class, how I will make an object in description programming.

Pls. help me
Reply
#4
Hi,

This seems to be an issue with respect to the infragistics control. You need to integrate the Test Advantage tool with QTP to properly recognize the winclass you are looking for
Reply
#5
Hi,

The above code shud work after changing "Class Name" property to "MicClass"

i.e
Code:
Set mywin = Description.Create () mywin("MicClass").value="Window" mywin("windowstyle").value="382337024" Set mywin1 = Description.Create () mywin1("MicClass").value="WinObject" Set winb = Description.Create () winb("MicClass).value="WinButton" winb("Name").value="Family History" Window(mywin).Activate Window(mywin).WinObject(mywin1).Static(winb).click

Pls revert back if u need any other help.

Thanks,
Benak
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Webtable objects recognise as weblist in UFT 12.5 Sharad Kumar 0 1,533 12-06-2018, 04:57 PM
Last Post: Sharad Kumar
  Object doesn't support this property or method: 'window(...).window(...).winobject' senthil5683 1 4,150 07-04-2016, 07:08 PM
Last Post: venkatesh9032
  webfile web object not identified at runtime in a java application saila123 1 3,317 02-11-2015, 08:23 PM
Last Post: Kirill
  QTP highlights object incorrectly in INFOR EAM application akhandesh 0 2,527 01-24-2014, 12:22 PM
Last Post: akhandesh
  Clicking on Window object to make it a javaedit object indranilgoswamimcb 0 2,492 11-03-2013, 09:03 PM
Last Post: indranilgoswamimcb

Forum Jump:


Users browsing this thread: 1 Guest(s)