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
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