我使用的是selenium java 2.42和mozilla fire fox-32.0.2版本,当我在eclipse上运行脚本来启动google时,它给了我错误。
org.openqa.selenium.firefox.NotConnectedException:
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox console output: 6.
我也尝试过将firefox版本降级,但错误仍然存在。
这是我的机器规格
Centos 7。内核3.10.0-514.21.1.el7.x86_64 geckodriver 0.17.0 Selenium + Java Mozilla Firefox 52.2.0
当运行程序时,firefox崩溃,给出下面的错误:I‘m the it using普通用户。
1500138350643 Marionette INFO New connections will no longer be accepted
[Child 3505] WARNING: pipe error (3): Connection reset by peer: f
我在使用Firefox和webdriver时遇到错误。
org.openqa.selenium.firefox.NotConnectedException: Unable to connect
to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox版本:28.0 Selenium-Java-2.37.0 selenium-server-standalone-2.53.0 Windows 7/ 64位
有没有人遇到了类似的问题,或者知道解决方案是什么。它在Chrome上运行得很好,但在Firefox上,没有URL被加载。
我下面有一个使用$_SERVER['HTTP_USER_AGENT']的脚本,因为get_browser()在服务器上不是活动的,并且所述服务器的管理员(hotgator)不会为我激活它。
也就是说,当我在兼容模式下运行IE 8时,我在Windows XP (虚拟机测试床)中运行的是IE 8。为什么?
<?php
//This is a script that will identify the OS and browser you are using.
// This also has a fix in where Chrome shows up as Chrome,
该网站声明不支持我的浏览器。
The system has detected that your browser/OS combination (/Firefox 25.0) may not be
supported. You will need Internet Explorer (at least version 6) or FireFox (at least
version 3.5) or SAFARI (at least version 3) in order to login to the site. See the
Technical Requirements link in
我将沿着NodeJS开始使用selenium,并设置一个简单的配置文件。
test.config.js
var webdriver = require('selenium-webdriver'),
By = webdriver.By,
until = webdriver.until;
var driver = new webdriver.Builder()
.forBrowser('firefox')
.build();
driver.get('http://www.yahoo.com');
当我运行$ node test.c
我正在尝试运行driver = webdriver.Firefox(capabilities={"marionette":False}),但收到以下消息:
WebDriverException: Message: Can't load the profile. Possible firefox version mismatch. You must use GeckoDriver instead for Firefox 48+. Profile Dir: /var/folders/yl/nmd8mk3102vd3c003pbfnvs1tfpjn2/T/tmpm66g_w_
我在firefox中运行Gherkin场景时遇到了很多困难。--这个例子在Chrome中运行得很好。
我的wdio.conf.js中的功能
capabilities: [{
// maxInstances can get overwritten per capability. So if you have an in-house Selenium
// grid with only 5 firefox instance available you can make sure that not more than
// 5 instance gets started at