Public Vars

Back

get-logs (clj)

(source)

function

(get-logs driver) (get-logs driver logtype)
Have `driver` return Javascript console log entries. Each log entry is a map with the following structure: ```Clojure {:level :warning, :message "1,2,3,4 anonymous (:1)", :timestamp 1511449388366, :source nil, :datetime #inst "2017-11-23T15:03:08.366-00:00"} ``` Supported by Chrome only: - Returns all recorded logs. - Clears the logs once they have been read. - JS console logs have `:console-api` for `:source` field. - Entries about errors will have SEVERE level. Chrome/Edge specific extension.

Examples