Best method for text verification

2 posts, 0 answers
  1. Lauren
    Lauren avatar
    1 posts
    Member since:
    May 2012

    Posted 15 Dec 2014 Link to this post

    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!
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 18 Dec 2014 Link to this post

    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!
Back to Top