簡體   English   中英

如何使用Windows Phone和Selenium?

[英]How I can use Windows Phone and Selenium?

我是Selenium的新手,我需要在Windows Phone中使用Selenium WebDriver。 我點擊此鏈接https://winphonewebdriver.codeplex.com/

當我單擊“ StartWindowsPhoneDriver.cmd”時,我的仿真器在空白頁上運行良好,但是我不知道如何插入C#代碼對其進行控制。

任何人都可以幫忙給我一個例子(或一個例子的鏈接)嗎?

最好的祝福,

夏魯納

您可以將其放在MainPage.xaml.cs構造函數中:

RemoteWebDriver driver = RemoteWebDriver(new Uri("http://______:______"), DesiredCapabilities.InternetExplorer());

driver.Navigate().GoToUrl("https://winphonewebdriver.codeplex.com/");

我現在讀到的是,您必須從控制台中打印的StartWindowsPhoneDriver.cmd獲取IP地址。 在初始化RemoteWebDriver時將其放置,並且必須可以工作。

問候!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM