相关疑难解决方法(0)

使用Selenium Python API绑定从Chrome获取console.log输出

我正在使用Selenium通过Python API绑定在Chrome中运行测试,而我无法确定如何配置Chrome以使console.log加载测试的输出可用.我看到WebDriver对象上有get_log()log_types()方法,我看过Get chrome的控制台日志,它显示了如何用Java做事.但我没有LoggingPreferences在Python API中看到相当于Java的类型.有没有办法完成我需要的东西?

python logging selenium google-chrome

55
推荐指数
2
解决办法
5万
查看次数

标签 统计

google-chrome ×1

logging ×1

python ×1

selenium ×1