ClassAssertContent
Assert the content of an HtmlControl
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class AssertContent : BaseControlAssert<HtmlControl>
Inheritance: objectBaseControlAssert<HtmlControl>AssertContent
Inherited Members
Constructors
AssertContent(HtmlControl)
Create a new AssertContent
Declaration
public AssertContent(HtmlControl control)
Parameters
control
The control to perform assert against.
Methods
InnerMarkup(StringCompareType, string)
Assert the InnerMarkup of the element.
Declaration
public bool InnerMarkup(StringCompareType compareType, string expectedValue)
Parameters
compareType
The string compare type.
expectedValue
The expected value.
Returns
True if the values match else will throw an AssertException.
InnerText(StringCompareType, string)
Assert the InnerText of the element.
Declaration
public bool InnerText(StringCompareType compareType, string expectedValue)
Parameters
compareType
The string compare type.
expectedValue
The expected value.
Returns
True if the values match else will throw an AssertException.
OuterMarkup(StringCompareType, string)
Assert the OuterMarkup of the element.
Declaration
public bool OuterMarkup(StringCompareType compareType, string expectedValue)
Parameters
compareType
The string compare type.
expectedValue
The expected value.
Returns
True if the values match else will throw an AssertException.
StartTagContent(StringCompareType, string)
Assert the StartTagContent of the element.
Declaration
public bool StartTagContent(StringCompareType compareType, string expectedValue)
Parameters
compareType
The string compare type.
expectedValue
The expected value.
Returns
True if the values match else will throw an AssertException.
TextContent(StringCompareType, string)
Assert the TextContent of the element.
Declaration
public bool TextContent(StringCompareType compareType, string expectedValue)
Parameters
compareType
The string compare type.
expectedValue
The expected value.
Returns
True if the values match else will throw an AssertException.