2016-09-25 122 views
-2

我想嘗試WebDriver來測試我的Windows 10 JS/HTML應用程序。我知道Microsoft爲其Edge瀏覽器發佈了Microsoft WebDriver,但代碼示例暗示它直接運行Edge而不是使用EdgeHTML的應用程序。WebDriver for Windows 10 Store JS應用程序?

從示例代碼片斷從Edge blog

driver = new EdgeDriver(); 

// Navigate to Bing 
driver.Url = "https://www.bing.com/"; 

// Find the search box and query for webdriver 
var element = driver.FindElementById("sb_form_q"); 

element.SendKeys("webdriver"); 
element.SendKeys(Keys.Enter); 

Console.ReadLine(); 

是否有任何指導,或者是它甚至可能使用webdriver的測試適用於Windows 10 JS應用程序?

回答

1

是否有任何指導,或者甚至可以使用Windows 10 JS應用程序的WebDriver測試?

WebDriver只支持Web應用程序測試。如果你想測試Windows應用程序,你可以使用WinAppDriver

這裏是介紹WinAppDriver的視頻:UI Test Automation for Browsers and Apps Using the WebDriver Standard

+0

謝謝你給我正確的WinAppDriver。我已經承認有一個名爲「WinAppDriver」的工具,但不知何故[我得到了另一個不支持Windows 10的工具](https://github.com/imsardine/winappdriver/wiki/Getting-Started)。再次感謝你! –

+0

此外,該視頻在18:30說Selenium.Appium.iOS名稱空間適用於Windows應用程序,這很有趣:D –