Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Not able to create a object
posted

Not able to create a Object. Below is the code.

set Rect =Javawindow(Windoname).JavaObject(objectname).CreateObject("java.awt.Rectangle"1020)


Please let me know if these is any error in the code.


Thanks in Advance

  • 26785
    Offline posted

    Hello Suma,

    Thank you for contacting Infragistics. Which platform are you testing with UFT?

    Note, Java is not a supported platform. If you are testing Windows Forms application the type name for windows should be SwfWindow. If you are testing a WPF application the type name should be WPFWindow.

    For more details on UFT/Test Advantage help please visit our online documentation at:

    https://www.infragistics.com/support

    Let me know if you have any questions.