C#控件浏览器(C# control browser)

请建议如何编写c#来控制浏览器转到url并自动填写特定元素

Please suggest how can write c# to control browser to go to url and auto fill in specific element

最满意答案

为什么不在C#中使用WebBrowser Control? 将Control从工具栏拖到表单中。 然后做webBrowser1.Navigate("http://www.example.com/bla"); 像这样填写你想要的元素: webBrowser1.Document.getElementById("yourID").innerHTML = "some content";

希望这可以帮助, 亚历克斯

Why don't you use WebBrowser Control in C#? Drag the Control from the Toolbar to your Form. Then do webBrowser1.Navigate("http://www.example.com/bla"); fill in the element you want like this: webBrowser1.Document.getElementById("yourID").innerHTML = "some content";

hope this helps, Alex

C#控件浏览器(C# control browser)

请建议如何编写c#来控制浏览器转到url并自动填写特定元素

Please suggest how can write c# to control browser to go to url and auto fill in specific element

最满意答案

为什么不在C#中使用WebBrowser Control? 将Control从工具栏拖到表单中。 然后做webBrowser1.Navigate("http://www.example.com/bla"); 像这样填写你想要的元素: webBrowser1.Document.getElementById("yourID").innerHTML = "some content";

希望这可以帮助, 亚历克斯

Why don't you use WebBrowser Control in C#? Drag the Control from the Toolbar to your Form. Then do webBrowser1.Navigate("http://www.example.com/bla"); fill in the element you want like this: webBrowser1.Document.getElementById("yourID").innerHTML = "some content";

hope this helps, Alex