硒 - 如何打开控制台,脚本和网络萤火虫 [英] Selenium - how to turn on firebug with console, script and net

查看:183
本文介绍了硒 - 如何打开控制台,脚本和网络萤火虫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个自定义的firefox配置文件,并在selenium RC启动时加载它。该配置文件已安装萤火虫,当我手动启动该配置文件的Firefox,萤火虫是活跃的。但是,当硒启动该配置文件时,萤火虫位于右下方,但未启用。如何确保启动时启用?或者,如何启用它(javascript或?) - 我正在使用Java API。

解决方案

是使用您的自定义配置文件打开Firefox。右键单击Firebug图标并选择为所有网页开。关闭Firefox,你应该很好去!我就是这么做的。


I have set up a custom firefox profile and load it when selenium RC starts. The profile has firebug installed, and when I manually launch firefox with that profile, firebug is active. However, when selenium launches that profile, firebug is in the lower right, but it is not enabled. How can I ensure it is enabled at launch? OR, how can I enable it (javascript or ?) - I am using the Java API.

解决方案

The way to do that is to open Firefox using your custom profile. Right-click on the Firebug icon and select "On for All Web Pages". Close Firefox and you should be good to go! That's how I do it.

这篇关于硒 - 如何打开控制台,脚本和网络萤火虫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆