简体   繁体   English

使用带有Selenium的Web应用程序启动Firefox浏览器

[英]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.

相关问题 如何使用 Selenium 在 Firefox 中打开浏览器 4 - How to open browser in Firefox using Selenium 4 如何使用Selenium FirefoxDriver启动多个Firefox可移植实例 - How to launch multiple instances of Firefox portable using Selenium FirefoxDriver 如何使用 ZD7EFA19FBE7D2372FD5ADB6024 在 firefox 浏览器的新 window 中启动 url - How to launch a url in the new window of firefox browser using C# 无法使用带有C#的Selenium Webdriver启动IE浏览器 - Not able to launch IE browser using Selenium webdriver with c# 如何在Selenium Web驱动程序中打开任何其他浏览器之前停止Firefox浏览器的调用跨浏览器测试 - How to stop invoking of Firefox browser before opening any othre browser in selenium web driver cross browser testing 在浏览器中启动应用程序 - Launch an application within a browser 使用Selenium自动化Trading Web应用程序 - Automating the Trading Web Application using Selenium 使用桌面应用程序控制Web浏览器 - Controling a web browser using a desktop application 附加现有的Web浏览器以在C#中自动使用Selenium - Attach an existing web browser to automate using Selenium in C# 如何使用Selenium Web Driver和C#清除浏览器cookie - How to clear browser cookies using Selenium Web Driver and C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM