private async void btnTestBaidu_Click(object sender, EventArgs e)
{
await browser.LoadUrlAsync("https://www.baidu.com/");
Thread.Sleep(1000);
var script = @"
document.getElementById('kw').value = '山地自行车';
document.getElementById('su').click();
";
browser.ExecuteScriptAsyncWhenPageLoaded(script);
}
CefSharp 模拟点击百度
最新推荐文章于 2024-01-21 23:28:16 发布