我使用C#綁定硒,試圖讓微軟邊緣一個簡單的自動化測試工作。硒與微軟的邊緣司機無法完成初始化
class Program
{
static void Main(string[] args)
{
EdgeOptions options = new EdgeOptions();
options.PageLoadStrategy = EdgePageLoadStrategy.Eager;
RemoteWebDriver driver = new EdgeDriver();
driver.Url = "http://bing.com/";
}
}
但程序暫停在EdgeDriver的初始化,邊瀏覽器啓動,但URL從未更改爲「bing.com」。
有其他人遇到此?
什麼'selenium'包的版本你有安裝? – alecxe
@alecxe我目前使用的版本是2.53.0 c#bindings –
請確保你已經下載了與你的'Os build number'兼容的'edgeDriver' .....檢查你的os內部版本號使用這個命令'systeminfo | findstr/B/C:「操作系統版本」 –