c#应用程序写入浏览器窗口 [英] c# application write to browser window

查看:72
本文介绍了c#应用程序写入浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我试图将一些字符写入我的浏览器(互联网上的网站)的文本框中。

如何在此文本框中写入值,或者如何设置输出将是文本框聚焦的位置?

谢谢

Hello,
Im trying to write some chars into a textbox which in my browser( a website on the internet).
How can I write values into this textbox,or how can I set the output would be where the textbox is focused?
Thanks

推荐答案

据我所知,你想自动化一个浏览器。好吧,自动化所有浏览器很复杂,但你可以针对一些:

Internet Explorer: http ://harness.codeplex.com/ [ ^ ]

Chrome: http://markcz.wordpress.com / 2012/02/18 / automating-chrome-browser-from-csharp / [ ^ ]



但您可以考虑使用其他方法,例如 HttpClient [ ^ ] class,或 Google API [ ^ ]根据您的评论。
As I understand, you want to automate a browser. Well, automating all browsers is complicated, but you can target some:
Internet Explorer: http://harness.codeplex.com/[^]
Chrome: http://markcz.wordpress.com/2012/02/18/automating-chrome-browser-from-csharp/[^]

But you might consider using other approaches, like HttpClient[^] class, or Google API[^] according to your comments.


这篇关于c#应用程序写入浏览器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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