ArtOfTest, Inc. - WebAii 1.1 Automation Infrastructure reference library
Find.ByContent(content) method
Namespaces > ArtOfTest.WebAii.Core > Find > ByContent(String)
Returns an element by searching its TextContent. The content must start with: 'l:' for exact match strings, 'p:' for partial strings or 'x:' for regular expression matches. If none are provided, the string will be matched using an exact match 'l:'. All searches are case-insensitive.
Examples
To find tags with innerText content is: 'foo bar' Example 1: ByContent("l:foo bar"); Example 2: ByContent("p:foo"); Example 3: ByContent("x:[*foo*]");
Syntax
C#
public Element ByContent (
	string content
)
Parameters
content (String)
The content to match
Return Value
The found element. The function returns null if no element is found

Assembly: ArtOfTest.WebAii (Module: ArtOfTest.WebAii)