草庐IT

Firefox3

全部标签

javascript - 如何监控 node.js 上的网络,类似于 chrome/firefox 开发者工具?

在开发客户端javascript应用程序时,开发者网络面板对于调试网络问题非常有用:创建NodeJS应用程序的开发人员如何监控从nodejs应用程序到http/https服务器的网络流量?比如如何调试以下网络流量?varhttp=require('http');varreq=http.request...req.write...req.send()我的代码正在调用第三方https服务器,因此我无法使用wireshark或类似的数据包嗅探工具。有关详细信息,我要调查的问题是here.编辑:这里有类似的问题,询问如何用其他语言做同样的事情:Python:HowcanIseetheentir

python - 使用 Python 在 Firefox (win) 选项卡上启动网页

我正在尝试以这种方式使用python在新选项卡中启动网站url,但这两种方式都不起作用:方法一:os.system('C:\ProgramFiles\MozillaFirefox\Firefox.exe-new-tabhttp://www.google.com/');和方法2:os.startfile('C:\ProgramFiles\MozillaFirefox\Firefox.exe-new-tabhttp://www.google.com/');如果我不添加参数(-new-tabhttp://www.google.com/),它会起作用,打开默认页面。

python - 使用 selenium webdriver 在 Windows 上设置 firefox 二进制文件的路径

我正在尝试构建一个实用函数来将漂亮的汤代码输出到浏览器我有以下代码:defbs4_to_browser(data):fromseleniumimportwebdriverdriver=webdriver.Firefox(path="F:\FirefoxPortable\Firefox.exe")driver.get("about:blank")data='test'#supposedtocomefromBeautifulSoupdriver.execute_script('document.body.innerHTML="{html}";'.format(html=data))retu

用于Firefox扩展的python?

我可以在Firefox扩展中使用python吗?有用吗? 最佳答案 是,通过Mozilla的扩展,Python扩展(pythonext)。最初托管于mozdev,PythonExt项目已移至Google代码,您可以在PythonExtinGooglecode中看到它。 关于用于Firefox扩展的python?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/1302567/

Python:Selenium Firefox Webdriver 失败并出现错误: 'Can' t 加载配置文件...WARN addons.xpi...”

我正在尝试运行以下Python代码以通过Selenium创建一个FirefoxWebdriver窗口:fromseleniumimportwebdriverdriver=webdriver.Firefox()driver.get("http://www.google.com")虽然这段代码在几周前运行良好,但它现在会产生以下不祥的消息:Traceback(mostrecentcalllast):File"test.py",line2,indriver=webdriver.Firefox()File"c:\python27\lib\site-packages\selenium\webdr

python - 无法从 AWS 机器上的 python 中的 selenium 调用 firefox

我正在尝试使用python中的selenium来使用javascript抓取一些动态页面。但是,按照pypi页面(http://pypi.python.org/pypi/selenium)上的selenium指令后,我无法调用firefox。我在AWSubuntu12.04上安装了firefox。我得到的错误信息是:In[1]:fromseleniumimportwebdriverIn[2]:br=webdriver.Firefox()---------------------------------------------------------------------------W

java - 将 Firefox 配置文件设置为使用 Selenium 和 Java 自动下载文件

我想使用SeleniumWebDriver和Java验证文件下载。下载的文件为PDF格式。当WebDriver点击AUT中的“下载”链接时,Firefox会打开以下下载确认窗口:我希望Firefox自动下载文件而不显示上面的确认窗口,所以我使用了以下代码:FirefoxProfilefirefoxProfile=newFirefoxProfile();firefoxProfile.setPreference("browser.download.folderList",2);firefoxProfile.setPreference("browser.download.manager.sh

java - 在浏览器(chrome/firefox)中运行本地java小程序 "Your security settings have blocked a local application from running"

我正在尝试运行JavaApplet(html文件),但浏览器一直提示:"Yoursecuritysettingshaveblockedalocalapplicationfromrunning"我尝试过使用Chrome和Firefox,但我得到了同样的错误。我已经升级到最新版本的Java,但Chrome仍然在中说chrome://plugins/"DownloadCriticalSecurityUpdate"即使我可以运行Java小程序(不是本地)我正在使用Ubuntu13.0464位 最佳答案 看完Java7Update21Secu

java - 在 PATH 中找不到 firefox 二进制文件。确保已安装 Firefox。操作系统似乎是 : VISTA

我无法在任何浏览器中运行我的脚本。以下是我为Firefox得到的错误。安装firefox的位置是正确的。不知道怎么回事。我使用的是Firefox15。SeleniumJava2.2.0和EclipseJuno我的测试用例如下:importstaticorg.junit.Assert.*;importorg.junit.After;importorg.junit.Before;importorg.junit.Test;importorg.openqa.selenium.By;importorg.openqa.selenium.WebDriver;importorg.openqa.sele

java - Firefox 浏览器未使用 selenium webbrowser 代码打开

这个问题在这里已经有了答案:SeleniumusingJava-Thepathtothedriverexecutablemustbesetbythewebdriver.gecko.driversystemproperty(6个回答)关闭6年前。需要以下指导和帮助。执行以下代码时,出现错误。我正在使用最新版本的java、eclipse、firefox和WebDrivejar文件。packagefirsttest1;importorg.openqa.selenium.WebDriver;importorg.openqa.selenium.firefox.FirefoxDriver;publ