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