Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Selenium启动Firefox,但未连接到它_C#_Azure_Firefox_Selenium - Fatal编程技术网

C# Selenium启动Firefox,但未连接到它

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

上下文:Microsoft Azure;VS2015社区;C#;Selenium.WebDriver.2.52.0;FirefoxPortableLegacy35;控制台(即不在IIS下运行)

(浏览器移动代理提供
端口
。)

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