none
How to detect the control in QTP? RRS feed

  • Question

  • I have used CustomControl in QTP when i try to spy the control it will generate the following code,

    Custom control

    SwfWindow("Form1").SwfObject("customControl1").Click 72,49

    Also, i have tested the panel and button. Please refer the below code, Panel

    SwfWindow("Form1").SwfObject("panel1").Click 72,34

    Button 

    SwfWindow("Button").SwfButton("Button").Click "Button"

    How can i achieve like button in HP-QTP?

    Thanks in advance.


    Mohanraj G


    Thursday, September 7, 2017 6:41 AM

All replies

  • Hi Mohanraj,

    This forum is for Coded UI testing issues, and you are using QTP, which the latest version is not called UFT, you may ask this kind of issue on it own community, where you will get more professional and quick answer. I found its forum for you:

    https://community.saas.hpe.com/t5/Functional-Testing-UFT-etc/ct-p/sws-Fun_Test

    Thanks for your understanding.

     

    Best regards,

    Fletcher


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    • Edited by Fletch Zhou Friday, September 8, 2017 2:23 AM
    • Proposed as answer by Fletch Zhou Tuesday, September 19, 2017 2:45 AM
    Friday, September 8, 2017 2:23 AM