在C#中打开网页并在文本框中复制文本 [英] Open a webpage in C# and copy a text in a textbox

查看:69
本文介绍了在C#中打开网页并在文本框中复制文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的参与者



我想实现一个控制台应用程序来读取文件(该文件的每一行都是一个网页网址)并打开一个网页IE浏览器。没关系,我可以轻松地完成这项工作,但我想在加载网页后在该页面的文本框中复制文本。我怎么能这样做?



非常感谢

Dear Participant

I want implement a console application that it read a file (each row of this file is a web page url) and open a web page in IE. It is OK and I can do this easily but I want to copy a text in a textbox of that page after loading the web page. How I can do this?

Thanks a lot

推荐答案

参见 this [ ^ ]链接。



警告:这使用WebBrowserControl,因此您需要构建一个WinForms / WPF应用程序。



/ ravi
See this[^] link.

Caveat: this uses a WebBrowserControl, so you'll need to build a WinForms/WPF app.

/ravi


您还可以使用 http://www.seleniumhq .org / [ ^ ]作为替代
you can also use http://www.seleniumhq.org/[^] as an alternate


这篇关于在C#中打开网页并在文本框中复制文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆