webbrowser控件c#查找以下文本的发生情况

webbrowser控件c#查找以下文本的发生情况,c#,webbrowser-control,C#,Webbrowser Control,我想做一个测试,看看下面的文字是否显示在我的webbroswer控件上 <form method="post" action=""><table border="0" class="formPage"><tr><td colspan="2" class="msg">Link submitted and awaiting approval.<br />Submit another link.</td></tr>

我想做一个测试,看看下面的文字是否显示在我的webbroswer控件上

<form method="post" action=""><table border="0" class="formPage"><tr><td colspan="2" class="msg">Link submitted and awaiting approval.<br />Submit another link.</td></tr>
链接已提交并等待批准。
提交另一个链接。

我正在寻找“链接已提交并等待批准”的文本。

我相信您可以使用以下内容:

if(webBrowser.DocumentText.Contains("Link submitted and awaiting approval.")) {
    // Do something.
}

你能把问题的措辞改一下吗?您是否在询问HTML是否有效?或者如何在Web浏览器控件中显示此HTML?