简体   繁体   中英

Launch the Firefox browser using Web Application with Selenium

I can able to launch Firefox browser using Windows Application.

But I can't able to launch Firefox browser using ASP.NET Web Application with same code.

I am getting following error.

Unable to bind to locking port 7054 within 45000 ms

I have used following code in Window and Web Application,

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?

你为什么不尝试

driver.Navigate().GoToUrl("http://www.gsmarena.com");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM