I'm using Selenium to run tests in Chrome via the Python API bindings, and I'm having trouble figuring out how to configure Chrome to make the console.log
output from the loaded test available. I see that there are get_log()
and log_types()
methods on the WebDriver object, and I've seen Get chrome's console log which shows how to do things in Java. But I don't see an equivalent of Java's LoggingPreferences
type in the Python API. Is there some way to accomplish what I need?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Ok, finally figured it out:
Entries whose
source
field equals'console-api'
correspond to console messages, and the message itself is stored in themessage
field.