C# Selenium启动Firefox,但未连接到它
上下文:Microsoft Azure;VS2015社区;C#;Selenium.WebDriver.2.52.0;FirefoxPortableLegacy35;控制台(即不在IIS下运行) (浏览器移动代理提供C# Selenium启动Firefox,但未连接到它,c#,azure,firefox,selenium,C#,Azure,Firefox,Selenium,上下文:Microsoft Azure;VS2015社区;C#;Selenium.WebDriver.2.52.0;FirefoxPortableLegacy35;控制台(即不在IIS下运行) (浏览器移动代理提供端口。) webserver配置文件在C:\Users\Bruce\AppData\Roaming\Mozilla\Firefox\profiles.ini中定义为 [General] StartWithLastProfile=1 [P
端口
。)
webserver
配置文件在C:\Users\Bruce\AppData\Roaming\Mozilla\Firefox\profiles.ini
中定义为
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=Profiles/eracklz4.default
[Profile1]
Name=webserver
IsRelative=1
Path=Profiles/webserver.default
FirefoxProfileManager
中的ExistingProfiles
列出webserver
,因此fpm
变量不为空
Firefox 3.5.19发布。但是,Selenium在45秒后超时,并显示以下消息:
Exception thrown: 'OpenQA.Selenium.WebDriverException' in WebDriver.dll
Failed to start up socket within 45000 milliseconds. Attempted to connect to the following addresses: 127.0.0.1:7055
我已经研究了以前关于这个主题的大部分帖子。然而,许多都是在IIS的上下文中。这是一个控制台应用程序
我在这方面哪里出了问题
以后
我应该试着安装最新的Firefox。它安装了一个WebDriver扩展,现在我可以和Firefox对话了
叹气…您的主机运行的Azure服务是什么?WebJob,云服务,VM?VM,如果我没记错的话。我将RDP导入其中,就像桌面一样。
Exception thrown: 'OpenQA.Selenium.WebDriverException' in WebDriver.dll
Failed to start up socket within 45000 milliseconds. Attempted to connect to the following addresses: 127.0.0.1:7055