hey
Please let me know where the value return by getNumberOfTotalOption is stored. I write the script:
TotalOptions = WebUI.getNumberOfTotalOption(findTestObject(‘By index/Page_Devnagri/select_Hindi - Punjabi - Tam’))
println(‘No of Roles are :’ + TotalOptions)
‘Verifying the number of Options in the dropdown with Expected result’
WebUI.verifyEqual(TotalOptions, 8)
This does not show any error. But where it is showing the value which is stored in variable TotalOptions