如何在CEF上填写密码字段?
我试试这个:
CodeStr := 'document.forms[0].form_password.value="hahaha";';
Chromium1.Browser.MainFrame.ExecuteJavaScript(CodeStr, 'mainFrame.GetURL()', 0);
但它不起作用......
源代码是:
<div class="field">
<input type="password" name="password" id="form_password" value="" size="20" regex="^.{6,}$" class="required" aria-required="true">
</div>