[英]Launch the Firefox browser using Web Application with Selenium
I can able to launch Firefox browser using Windows Application. 我可以使用Windows应用程序启动Firefox浏览器。
But I can't able to launch Firefox browser using ASP.NET Web Application with same code. 但是我无法使用具有相同代码的ASP.NET Web应用程序启动Firefox浏览器。
I am getting following error. 我收到以下错误。
Unable to bind to locking port 7054 within 45000 ms 在45000毫秒内无法绑定到锁定端口7054
I have used following code in Window and Web Application, 我在Window和Web应用程序中使用了以下代码,
IWebDriver driver = new FirefoxDriver();
ISelenium sel = new WebDriverBackedSelenium(driver, "http://www.gsmarena.com");
sel.Start();
sel.Open("/");
It is possible to launch the Firefox browser using Web Application with Selenium? 是否可以将Web应用程序与Selenium一起启动Firefox浏览器?
你为什么不尝试
driver.Navigate().GoToUrl("http://www.gsmarena.com");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.