如何获取Webbrowser控件加载的html控件的值 [英] How to retrive values of html controls loaded with webbrowser control

查看:69
本文介绍了如何获取Webbrowser控件加载的html控件的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.net winform中有一个webbrowser控件,并在webbrowser控件中加载了一些Intranet网址.

I have a webbrowser control in the .net winform and some intranet url is loaded in the webbrowser control.

现在我想使用UIAutomation从主窗口访问html页面的控件

Now i want to access the controls of the html page from the main window using UIAutomation

可以吗?关于如何解决此问题的任何建议

Is is possible? Any suggestion on how to approch this problem

推荐答案

假设Web浏览器控件是.NET的常用控件,则应该可以正常工作. ;您将使用通常的技术来成为UI自动化客户端.

Assuming the webbrowser control is the usual one for .NET, this should work fine.  You use the usual techniques for being a UI Automation client.

这里有很好的参考资料:
http://msdn.microsoft.com/en-us/library/ee684021 (v = VS.85).aspx

There's a good reference here:
http://msdn.microsoft.com/en-us/library/ee684021(v=VS.85).aspx

谢谢,
迈克尔

Thanks,
Michael


这篇关于如何获取Webbrowser控件加载的html控件的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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