草庐IT

firefox-addon-restartless

全部标签

java - Selenium WebDriver Firefox 错误 - 连接失败

我已完成研究并发现了其他相关问题。没有人有帮助。到目前为止:拥有最新版本的selenium安装了旧版本的firefox我在Windows7上安装了eclipse,我创建了一个.war并在localhost:8080/JSPprojectServlets(在W7上)下的eclipse中进行了测试,它工作正常。selenium打开firefox,获取url,然后获取源代码。然后我将.war文件放入tomcat7/webapps下的linux(ubuntu)机器中,并尝试使用192.168.1.102:8080/JSPprojectServlets下的Windows7机器访问它,但它不起作用

firefox_profile has been deprecated, please use an Options object

selenium代码中加载firefox的默认配置文件fromselenium.webdriver.firefox.firefox_profileimportFirefoxProfileprofile_path=r'C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profiles\y1uqp5mi.default'default_profile=FirefoxProfile(profile_path)driver=webdriver.Firefox(service=service,options=options,firefox_pr

Mozilla 发布火狐浏览器 Firefox 117 稳定版:引入本地翻译

8月29日消息,Mozilla今天发布了Firefox117稳定版,新版本最值得关注的改进,就是引入了本地自动翻译功能。下载地址:http://ftp.mozilla.org/pub/firefox/releases/117.0/IT之家此前就曾报道过,Firefox117版本已支持翻译成多种语言,Mozilla也表示后续会添加扩展更多语言。用户访问任意页面,通过点击地址栏上的翻译图标,或者在菜单中选择“翻译页面”选项,在跳出的对话框中可以选择进行翻译。Mozilla表示整个翻译过程都在本地完成,因此测试下来发现翻译速度并不快。在设置面板中还新增了“翻译”区域,您可以安装离线翻译的语言,设置语

selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for firefox using

意思大概是:selenium获取不到firefox的驱动(geckodriver.exe)错误原因:1.firefox(或者其他的selenium浏览器驱动--e.g.webchrome、safari等)放置的位置不正确。今天傻羊在用selenium爬虫的时候发现,原来能用的firefox突然就报错说用不了,刚开始的时候针对版本不匹配的问题进行更改,包括降低版本、重新配置环境等一系列问题。其中火狐的各历史版本:Firefox各历史版本链接火狐各驱动历史版本:Firefox_selenium驱动各版本谷歌的各历史版本:Chrome各历史版本其中关于如何查找浏览器对应的、合适的selenium版本

java - 从Firefox复制并在Ubuntu中使用Java读取时,剪贴板内容困惑

背景我正在尝试使用Java以HTML数据格式获取剪贴板数据。因此,我将它们从浏览器复制到剪贴板。然后我正在使用java.awt.datatransfer.Clipboard来获取它们。在Windows系统中可以正常使用。但是在Ubuntu中有一些奇怪的问题。最糟糕的是从Firefox浏览器将数据复制到剪贴板。重现行为的示例Java代码:importjava.io.*;importjava.awt.Toolkit;importjava.awt.datatransfer.Clipboard;importjava.awt.datatransfer.DataFlavor;publicclass

python - selenium 不适用于 Firefox 或 Chrome

我正在尝试学习python网络抓取,但我无法让selenium与任一浏览器一起使用。fromseleniumimportwebdriverbrowser=webdriver.Firefox()这是我所有的代码,我得到这个是为了一个错误。Traceback(mostrecentcalllast):File"C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py",line64,instartstdout=self.log

python - Py2exe 和 selenium - IOError : [Errno 2] No such file or directory: '\\dist\\main.exe\\selenium\\webdriver\\firefox\\webdriver_prefs.json'

我写了一个简单的应用程序,它使用selenium浏览页面并下载它们的源代码。现在我想让我的应用程序Windows可执行。我的setup.py文件:fromdistutils.coreimportsetupimportpy2exe,sys,ossys.argv.append('py2exe')setup(options={'py2exe':{'bundle_files':1,"dll_excludes":['w9xpopen.exe','MSVCP90.dll','mswsock.dll','powrprof.dll','MPR.dll','MSVCR100.dll','mfc90.dl

使用 TOR 获取代理的 Python selenium 适用于 firefox,但不适用于 chrome

在过去的几天里,我一直在玩弄python,从youtube学习,并决定创建一些我喜欢自动化的东西。我发现了一个小问题-当我在Firefox浏览器上使用我的python脚本时,我可以在后台打开Tor浏览器并使用此代码:profile=webdriver.FirefoxProfile()profile.set_preference("network.proxy.type",1)profile.set_preference("network.proxy.socks",'127.0.0.1')profile.set_preference("network.proxy.socks_port",9

python - PIL : Image resizing : Algorithm similar to firefox's

我从PIL的所有4种算法中得到了大致相同的不好看调整大小>>>data=utils.fetch("http://wavestock.com/images/beta-icon.gif")>>>image=Image.open(StringIO.StringIO(data));image.save("/home/ptarjan/www/tmp/metaward/original.png")>>>>>>image=Image.open(StringIO.StringIO(data));image.resize((36,36),Image.ANTIALIAS).save("/home/ptar

python - selenium webdriver sendkeys() 使用 python 和 firefox

我正在使用selenium2.25.0、firefox3和python2.6.6。我正在尝试运行一个使用sendkeys()的selenium函数:Webdriver.find_element_by_name('j_username').clear()webdriver.find_element_by_name('j_username').send_keys("username")这段代码可以在我的机器上运行。然而,从另一台机器运行时,用户名字段留空并继续执行脚本的其余部分(不报告任何错误)。我可以看到在尝试发送用户名之前该字段已被清除,因此我知道查找按钮/按钮命名没有问题。我试过在清