简体   繁体   English

Selenium错误-无法运行Firefox

[英]Selenium Error— Can't be able to run Firefox

I am trying to run Selenium in Eclipse. 我正在尝试在Eclipse中运行Selenium。 When running as TestNG it is not able to open Firefox. 当以TestNG运行时,它无法打开Firefox。 It closes as soon as it opens. 打开后即关闭。 It shows "Server not found" in the Firefox and the session is null in console. 它在Firefox中显示“找不到服务器”,并且控制台中的会话为null How to solve this? 如何解决呢?

This error occurs when either: 在以下情况之一时发生此错误:

-The version is incompatible -版本不兼容

OR 要么

-The installation path given in the code is wrong -代码中给出的安装路径错误

OR 要么

-The path to firefox has spaces in between (for selenium 3.0 above) -Firefox的路径之间有空格(对于硒3.0以上)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在带有硒3.3.1的Firefox 50.1.0上运行硒脚本 - Could not able to run selenium scripts on Firefox 50.1.0 with selenium 3.3.1 无法通过Selenium Web驱动程序在Firefox中运行我的程序 - Not able to run my program in Firefox through selenium web driver Selenium WebDriver无法打开Firefox配置文件 - Selenium WebDriver can't open Firefox profile 无法在Firefox和Chrome中使用硒打开控制台 - can't open console in selenium in firefox and chrome Java Selenium 找不到 Firefox - Java Selenium can't find Firefox 无法使用 Selenium(3.11)、GeckoDriver(0.24.0)、Firefox(57 version) 运行 selenium java 脚本 - Not able to run selenium java script using Selenium(3.11), GeckoDriver(0.24.0), Firefox(57 version) 在Selenium的Firefox浏览器窗口中运行某些测试时出现“找不到配置文件目录”错误 - “Can't find profile directory” error while running some tests in a Firefox browser window by Selenium 使用自签名SSL证书时,无法使用远程Selenium WebDriver + Jenkins + FireFox在Java上运行自动测试 - Can't run autotests on Java using remote Selenium WebDriver + Jenkins + FireFox when using self-signed SSL certificate WebDriver无法在Firefox 4及更高版本上运行测试 - WebDriver can't run tests on Firefox 4 and higher Selenium Firefox WebDriver错误 - Error with selenium firefox webdriver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM