Forum Discussion

prabhakarkallam's avatar
prabhakarkallam
Occasional Contributor
8 years ago

unable to get getText of java swing textbox using c#

Hi,

   iam unable to get text of java swing textbox using c#,please let me know the solution.

Regards,

Prabhakar k.

2 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    1) Have you tried with wText as it s in-build function of Test Complete for text field [reference]. 

    2) Some of the custom text objects doesn't support getText() hence better to try with getString() or toString().

    3) If above 2 points not resolved, Try to see the text that expecting from the text object are available in the object property AWTComponentAccessibleName or AWTComponentName.

     

    If nothing is working, post screenshot of the Object and Code you are trying to get it.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    What code or keyword operations have you tried? Please post sample code and/or screenshot of your test