![](/img/trans.png)
[英]Does not contain a constructor that takes 1 argument even though there is a constructor that takes 1 argument
[英]HtmlDocument does not contain a constructor that takes 1 argument
我似乎無法理解為什么這行不通。 我不斷收到一個錯誤,說HtmlDocument
不包含一個接受 1 個參數的構造函數,任何幫助將不勝感激
//Create the Browser Window
BrowserWindow broWin = new BrowserWindow();
broWin.SearchProperties[UITestControl.PropertyNames.Name] = "Execute Automation";
HtmlDocument doc = new HtmlDocument(broWin);
您應該使用命名空間Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
的 HtmlDocument(UITestControl) 構造函數
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.