Ask a Question

how to use getText method using keyword test

SOLVED
tvklovesu
Contributor

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 

2 REPLIES 2
Marsha_R
Community Hero

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.

 

Marsha_R_0-1664834937178.png

 

Marsha_R_1-1664835024032.png

Marsha_R_2-1664835055530.png

 

 

 

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Hi @Marsha_R ,Thanks for the response. That helped me what I am looking for.

cancel
Showing results for 
Search instead for 
Did you mean: