Skip to main content

[WebUI] Is Element Not Has Attribute

Last updated: August 2026
Prerequisites

This keyword is available from Katalon Studio version 11.2.0+.

Description​

Check whether the found element's named attribute is null within a specified timeout.

Keyword name: isElementNotHasAttribute

A condition that is not satisfied normally returns false and does not fail the test step. Unexpected execution errors apply the configured failure handling. If execution continues after an error, the keyword returns false.

The element must be found before its negative state is evaluated. A missing element returns false. Use WebUI.isElementNotPresent to check whether an element is absent.

Parameters​

ParameterParameter TypeRequiredDescription
toTestObjectYesRepresents the web element to evaluate.
attributeNameStringYesSpecifies the name of the attribute to evaluate.
timeOutintYesSpecifies the maximum time, in seconds, to wait for the condition. A negative value uses the configured WebUI element timeout.
flowControlFailureHandlingNoSpecifies the failure handling behavior for execution failures. When omitted, this parameter uses the project default failure handling.

Returns​

Return TypeDescription
booleanReturns true when the found element's named attribute is null; otherwise, returns false.

Examples​

boolean result = WebUI.isElementNotHasAttribute(findTestObject('Page_Main/element'), 'class', 10)

boolean handledResult = WebUI.isElementNotHasAttribute(findTestObject('Page_Main/element'), 'class', 10, FailureHandling.CONTINUE_ON_FAILURE)
Was this page helpful?