Assert HTML Element
assertElement method compares the actual value of a html element name with the expected target value. Here the attType param gives additional information about the html element on with the assertion has to be made.
Syntax
boolean assertElement(String htmlElementName, String attType, String targetValue)
Name | Type | Description |
htmlElementName | String | HTML element name |
attType | String | Type of the attribute |
targetValue | String | The actual value of the html element |
Code snippet
Last updated