我想模拟点击第三方网站的链接
a href="javascript:void(0)" onclick="$find('ct100_m_g_02foobar').exportReport('XML');"
在 C# 中,我使用的是 WebBrowser WinForms 控件。
var x = webBrowser.Document.InvokeScript("find", new object[] { "ct100_m_g_02foobar" });
我不熟悉 JavaScript,但我想我需要将 find 函数的结果与 exportReport 函数联系起来。我需要做什么来模拟上面的链接?我的 x 变量为空,所以我什至不确定我是否在使用这个 InvokeScript 的正确轨道上。我会很感激任何帮助。