[WebUI] Get Number Of Total Option

This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/webui-get-number-of-total-option.html

must it be uerd SELECT tags ?
what i can do if i want to use it to others tag

Iā€™m here with the same problem.

facing below exception

com.kms.katalon.core.exception.StepFailedException: Unable to get total options of object

1 Like

I am also facing this issue.

Is the element a select tag? The command, getNumberofTotalOptions, only works on them. If the element is not a select tag, there are other ways to get the total number of options.
Edit: Also, if there is a blank option, that will also be included in the count total.