开发者

Check if a loaded webpage contains certain text?

开发者 https://www.devze.com 2023-03-01 18:19 出处:网络
Using VB.Net, how would I go about checking if a loaded page in a Web Browser ob开发者_如何学运维ject contains a certain line of text? Sorry if theres an obvious answer for this, I\'m used to programm

Using VB.Net, how would I go about checking if a loaded page in a Web Browser ob开发者_如何学运维ject contains a certain line of text? Sorry if theres an obvious answer for this, I'm used to programming in Java.


The Web Browser object has a DocumentText property that allows you to get or set the HTML contents. You can search the HTML for the text.

See more on the WebBrowser class: http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消