Пример #1
0
 /// <summary>
 /// Search for the specified string/text in the current page
 /// </summary>
 /// <param name="pattern">string to be searched</param>
 /// <param name="useSitemapId">By default element id will be picked from sitemaps, false to use the control Id directly</param>
 /// <param name="sourceType">Default mentions the element is of Id type</param>
 /// <returns>
 /// true if string found, false otherwise
 /// </returns>
 public bool SearchText(string pattern, bool useSitemapId = true, FindType sourceType = FindType.ById)
 {
     return(_client.IsTextPresent(pattern));
 }