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

See what text "ContainsText" is searching?

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 26 Sep 2012, 02:52 PM
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)

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 01 Oct 2012, 08:44 AM
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
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or