var span = htmlDocument.GetElementById("spanidsi");
if (span != null) {
span.InvokeMember("onclick");
}