I looked at the post at
https://github.com/cefsharp/CefSharp/issues/828 and used the code below to set the "username" and "password" and it worked.
- Code: Select all
chromeBrowser.ExecuteScriptAsync("$('input[name=username]').val(\"USERNAME\")");
chromeBrowser.ExecuteScriptAsync("$('input[name=password]').val(\"PASSWORD\")");
But can't figure out how to simulate the "Submit" button code below.
<input id="submitbutton" type="submit" value="Login">
I tried this code
- Code: Select all
chromeBrowser.ExecuteScriptAsync("$('input[id=submitbutton]').submit();");
but doesn't work. Any ideas?