c# - How to set a checkbox to "checked" using mshtml? -
I can do most things with MSMTM, but I have a situation here to "check" a checkbox input element. ..
IHTMLElementCollection Input Elements = (IHTMLElementCollection) doc.all.tags ("Input"); Foreign currency (IHTMLElement L in input elements) {string elementHtml = el.outerHTML; String wordoffservevientifier = "id = chakoots_ 2"; // Select the terms of service checkbox if (elementHtml .resource (termsOfServiceIdentifier)) {HTMLInputElement chkTOS = (HTMLInputElement) el; ChkTOS @ Checked = true; // This is the solution thanks wen} Else {// nothing - we have no interest in this element}} Thanks in advance for any help!
Gregg
Highlight the checked property as a boolean < / P>
Comments
Post a Comment