sitasrikanth
12 years agoContributor
Drop-down box cannot be closed...
Hi,
I have a drop -down and each item has a checkbox. When selecting a item in the drop-down using the method ClickItem, Item is getting selected sucessfully.
But Issue here is once item is selected in drop-down test complete is displaying the message "waiting until drop-down box closes" and after that error is posted to test complete log "The drop-down box cannot be closed. "
FYI - With Manual operation, once item is selected in drop-down we've to click some where to close the drop-down.
Can anyone please tell me how to handle such situation in Automation?
I have a drop -down and each item has a checkbox. When selecting a item in the drop-down using the method ClickItem, Item is getting selected sucessfully.
But Issue here is once item is selected in drop-down test complete is displaying the message "waiting until drop-down box closes" and after that error is posted to test complete log "The drop-down box cannot be closed. "
FYI - With Manual operation, once item is selected in drop-down we've to click some where to close the drop-down.
Can anyone please tell me how to handle such situation in Automation?
- Create OnLogError event handler - see Creating Event Handlers.
The handler code should be like this:
function OnLogError(Sender, LogParams)
{
if (LogParams.MessageText == "The drop-down box cannot be closed.")
LogParams.Locked = true; // tells to suppress this message
}