See what text "ContainsText" is searching?

2 posts, 1 answers
  1. Steve
    Steve avatar
    2 posts
    Member since:
    Aug 2012

    Posted 26 Sep 2012 Link to this post

    I'm doing some validation my my test to verify certain text exists on a page and it's always failing. Is there a property to see what text the "ContainsText" method is searching? (e.g. Manager.ActiveBrowser.Text)

  2. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 01 Oct 2012 Link to this post

    Hello Steve,

    The ContainsText method is searching for the text in the pages's source, so I believe the property you are looking for is ViewSourceString(Manager.ActiveBrowser.ViewSourceString). This property returns the source of the page currently loaded in the browser.

    Kind regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top