Forum Discussion

tvklovesu's avatar
tvklovesu
Frequent Contributor
2 years ago
Solved

how to use getText method using keyword test

Hello all,

I am new to this community and also for TestComplete. I have experience with selenium. Currently I am trying to test a scenario where there is a record and clicking on that record opens a frame with details for that record. So I need to compare the details. For that I need to get the name in the record on first step where I click and then validate the frame to verify that details belong to that name in my following step. To do that I am looking how to use getText of that object and save it in a variable. I am looking for Keyword test mode steps. 

Please let me know how to resolve this

 

Thanks 

  • You can use Set Variable Value, then choose Object Property, then Onscreen Object. The wizard will walk you through picking the property you want and it will be stored in your chosen variable.

     

     

     

     

     

     

2 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    You can use Set Variable Value, then choose Object Property, then Onscreen Object. The wizard will walk you through picking the property you want and it will be stored in your chosen variable.