<p>我最近继承了一些Selenium Webdriver代码,是用Python 2.7编写的。它将大量数据记录到Ubuntu上的/tmp中,以至于它成为了一个问题。我想把它关掉(或者至少关小点)。</p>
<p>我一直在尝试RTFM,但这是Selenium(2.19.0)的新版本,手册还没有写好!</p>
<p>我可以看到有一个名为<a href="http://selenium.googlecode.com/svn/trunk/docs/api/py/selenium/selenium.selenium.html" rel="noreferrer">^{<cd1>}</a>的方法听起来很有前途,但是要实现它,我需要实例化一个<code>selenium.selenium.selenium</code>对象。否则我不需要实例化其中一个,它需要很多参数(哪个主机?哪个港口?)我不想提供。</p>
<p>显然,我有点误会。</p>
<p>有人能解释一下(a)如何关闭日志记录,或者(b)selenium.selenium.selenium.selenium.selenium是什么服务吗(我可能已经忘乎所以了,对不起!)想谈谈吗?</p>
<p/><hr/>
相关问题:<a href="https://stackoverflow.com/questions/327252/in-selenium-how-do-i-turn-off-logging">In Selenium, how do I turn off logging?</a>
这是Selenium的一个旧版本,我相信它是从脚本语言调用的。