MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / get

Method get

javascript/selenium-webdriver/lib/webdriver.js:2465–2475  ·  view source on GitHub ↗

* Fetches available log entries for the given type. * * Note that log buffers are reset after each call, meaning that available * log entries correspond to those entries not yet returned for a given log * type. In practice, this means that this call will return the available log * ent

(type)

Source from the content-addressed store, hash-verified

2463 * type.
2464 */
2465 get(type) {
2466 let cmd = new command.Command(command.Name.GET_LOG).setParameter('type', type)
2467 return this.driver_.execute(cmd).then(function (entries) {
2468 return entries.map(function (entry) {
2469 if (!(entry instanceof logging.Entry)) {
2470 return new logging.Entry(entry['level'], entry['message'], entry['timestamp'], entry['type'])
2471 }
2472 return entry
2473 })
2474 })
2475 }
2476
2477 /**
2478 * Retrieves the log types available to this driver.

Callers

nothing calls this directly

Calls 3

setParameterMethod · 0.80
executeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected