C# 如何使用Windows Phone和Selenium?

C# 如何使用Windows Phone和Selenium?,c#,selenium,windows-phone-8,C#,Selenium,Windows Phone 8,我是Selenium新手,需要在Windows Phone中使用Selenium WebDriver。我关注这个链接 当我点击“StartWindowsPhoneDriver.cmd”时,我的模拟器在空白页面上运行良好,但我不知道如何插入控制它的C代码 任何人都可以帮助我,给我一个例子(或与一个例子的链接),请 致以最良好的祝愿 Xialuna您可以将其放在MainPage.xaml.cs构造函数中: RemoteWebDriver driver = RemoteWebDriver(new Ur

我是Selenium新手,需要在Windows Phone中使用Selenium WebDriver。我关注这个链接

当我点击“StartWindowsPhoneDriver.cmd”时,我的模拟器在空白页面上运行良好,但我不知道如何插入控制它的C代码

任何人都可以帮助我,给我一个例子(或与一个例子的链接),请

致以最良好的祝愿


Xialuna

您可以将其放在MainPage.xaml.cs构造函数中:

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

driver.Navigate().GoToUrl("https://winphonewebdriver.codeplex.com/");
我现在读到的是,您必须从控制台中打印的StartWindowsPhoneDriver.cmd获取IP地址。在初始化RemoteWebDriver并且必须工作时将其放置


你好

我没有使用IP地址,几秒钟后我的模拟器就可以工作了!谢谢:)