Micro Focus QTP (UFT) Forums
QTP Not Able to recognise the object in window application. - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP Not Able to recognise the object in window application. (/Thread-QTP-Not-Able-to-recognise-the-object-in-window-application)



QTP Not Able to recognise the object in window application. - Sudipta Gusain - 04-24-2008

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.


RE: QTP Not Able to recognise the object in window application. - Ankur - 04-24-2008

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).


RE: QTP Not Able to recognise the object in window application. - Sudipta Gusain - 04-25-2008

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


RE: QTP Not Able to recognise the object in window application. - vaibhav_gandhi - 04-25-2008

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


RE: QTP Not Able to recognise the object in window application. - Benak - 04-17-2013

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