selenium打开firefox问题

1、打不开firefox游览器

解决:卸载firefox,重新安装firefox(默认路径安装)

2、

#encoding:gbk

require ‘selenium-webdriver‘

ie=Selenium::WebDriver.for :firefox

脚本打开firefox后,默认打开导入向导

打开发现会到导入向导页面。

解决:

a.在C盘搜索profiles.ini

b.profiles.ini里,将IsRelative=1修改为IsRelative=0

再次启动即可正常打开。

时间: 2024-08-29 09:18:53

selenium打开firefox问题的相关文章

谁说selenium打开firefox不用驱动的???!!!!

selenium3下写自动化脚本,使用firefox(48) 要下载驱动了 geckodriver 就是这个,和其他驱动放一个地方~~~

selenium,在Eclipse中打开fireFox浏览器报错:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

1. 相信很多同学刚接触selenium时,在Eclipse中打开fireFox浏览器是报报错:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:...(异常代码太多此处省略) 在网上找了好多方法都是不能解决问题,结果是焦头烂额! 2.其实这是selenium的jar包和

selenium启动firefox打开导入向导问题解决

操作系统:win8-64位 火狐版本:40.0.2 问题描述:selenium启动firefox时,每次启动都提示我导入其他浏览器的页签,如下图所示 解决方法一: 到firefox的profiles.ini所在文件中修改IsRelative=1->IsRelative=0 C:\Users\{用户名}\AppData\Roaming\Mozilla\Firefox\profiles.ini 再次启动即可正常打开. 备注:这种解决方案,火狐浏览器一旦重新启动后,又会出现烦人的导入向导,并不能彻底解

python+selenium自动化环境搭建之后,能打开firefox,却不能执行自动化操作

python+selenium自动化环境搭建之后,选择执行,能够打开firefox,但是却不能继续执行后续操作.原因是selenium的版本与firefox的版本不兼容. 解决办法: 1.将firefox降到与selenium相对应的版本.例如我使用selenium版本是3.3.3,那我对应的firefox版本是52.0.2,如果firefox继续升级,也会出现不兼容的情况.建议可以在firefox的工具--选项--高级中设置为不检查更新,以免软件自动更新出现问题. 2.安装该浏览器版本对应的g

解决selenium与firefox版本不兼容问题

Python环境下类比 个人使用 32位环境 Python 2.7.12 Selenium 2.53.6 Firefox 47.01 安装selenium可用pip选择对应版本,参考另一教程. 因为在用java打开firefox浏览器的时候报错 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms 在网上查阅了说是兼容问题

解决Selenium与firefox浏览器版本不兼容问题

因为在用java打开firefox浏览器的时候报错 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms 在网上查阅了说是兼容问题 然后就开始找selenium版本与对应firefox版本匹配的记录 各firefox版本下载地址 http://ftp.mozilla.org/pub/firefox/releases/ 各s

运行selenium 出现 Firefox can't find the file at chrome://src/content/.....

今天在跑selenium 自动化测试,运行了后台之后,想在火狐打开目的页面,结果火狐可以运行可是无法打开页面,还显示了标题的字符串:Firefox can't find the file at chrome://src/content/..... 谷歌找了很久得到的原因如下:火狐版本太新....(因为selenium rc是被历史淘汰的东西,现在都是用selenium 2.0了,所以selenium 1.0所用到的selenium rc 新版本的火狐支持不太好,在40+上的版本运行都会比较不愉快

Selenium设置Firefox启动

1.如果按照firefox的时候,不是选择默认路径,在Selenium中就无法打开Firefox浏览器,需要指定路径来实现 System.setProperty("webdriver.firefox.bin", "D:\\Program Files\\Mozilla Firefox\\firefox.exe"); driver = new FirefoxDriver();

Selenuim和Python测试网站,只能打开firefox却不能打开网页的解决方法

最开始我使用的Selenium版本为2.48,Firefox版本为37,自动化打开网站的时候,可以正常打开. 后来由于Firefox的自检测更新,版本更新为47,导致版本不兼容,自动化打开网站浏览器时,始终不能正常打开网站.后来上网找解决方案,始终没解决,后来使用当时最开始下载的版本为37的Firefox的安装包,重新安装就好了. 所以,如果自动化环境搭建ok的话,一定要确保Firefox设置为不检查更新(选项-高级里边),要不然自动更新成高级版本到时候又版本不兼容了. Selenium的下载地