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
80
UltraTextEditor access Rigth Button
posted

Context :

I work with HP QTP (quick test pro) tool for testing. I am currently writing scripts to test a GUI created with infragistics.  I use vbscript to create the test scripts.

I trying  to find the way to click on the right button of the 'rightbuttons' collection  in the component UltraTextEditor

All help is appreciated.

Best Regards

Lino

Parents
  • 53790
    posted

    Hello Lino,

    I made small sample for you. Could you please take a look at the attached video file for more details and let me know if you have any questions.

    Here is the script from my test sample:

    SwfWindow("Form1").Move 545,177
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 186,21
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 186,21
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 186,21
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 150,162
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 95,160
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 61,162
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 68,196
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 187,23
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 206,23
    SwfWindow("Form1").Dialog("#32770").WinButton("OK").Click
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 229,24
    SwfWindow("Form1").Dialog("#32770").WinButton("OK").Click
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 230,24
    SwfWindow("Form1").Dialog("#32770").WinButton("OK").Click
    SwfWindow("Form1").SwfEditor("SwfEditor").SetCaretPos 0,16
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micReturn
    SwfWindow("Form1").SwfEditor("SwfEditor").Type "Test Text"
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micReturn
    SwfWindow("Form1").SwfEditor("SwfEditor").Type "Testttttttttttt"
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micBack
    SwfWindow("Form1").SwfEditor("SwfEditor").Type  micReturn
    SwfWindow("Form1").SwfEditor("SwfEditor").Type "Sample"
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 187,26
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 159,54
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 151,92
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 149,121
    SwfWindow("Form1").SwfWindow("SwfWindow").SwfObject("ultraCalculator1").Click 149,158
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 187,26
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 209,28
    SwfWindow("Form1").Dialog("#32770").WinButton("OK").Click
    SwfWindow("Form1").SwfObject("ultraTextEditor1풸1ꨀ牑").Click 228,25
    SwfWindow("Form1").Dialog("#32770").WinButton("OK").Click
    SwfWindow("Form1").Close

    Let me know if you have any questions.

    Regards

    Video020.rar
Reply Children
No Data