This is a migrated thread and some comments may be shown as answers.

Best method for text verification

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lauren
Top achievements
Rank 1
Lauren asked on 15 Dec 2014, 08:00 PM
Hi I'm having a ton of problems verifying text on my web application. Is there a best way to go about verifying text that isn't always going to be in the exact same spot?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 18 Dec 2014, 05:47 PM
Hello Lauren,

Can you give me some more details what you mean by "ton of problems verifying text"? If I know what errors are being reported in our test log then I can assist you with the right way to overcome those errors.

When yous state "isn't always going to be in the exact same spot" are you referring to it's location on the screen or it's hierarchical location in the browsers DOM? I ask because when Test Studio is looking for a target element to act on it's not looking at screen coordinates. It's looking for some static property of the element such as it's ID, or it's tag index in the DOM.

The short answer to your question "Is there a best way to go about verifying text..." is to make sure the Find Expression for the target element meets the needs of your testing requirements. Since every application is unique and custom made, it's impossible to say what exactly will meet your needs. We have to look at the DOM for your specific application to be able to figure this out.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Lauren
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or