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

Function unfocus

javascript/atoms/typescript/clear.ts:69–71  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

67
68// Focusing the body cannot take focus, so this blurs whatever has it.
69function unfocus(element: Element): void {
70 focusOnElement(element.ownerDocument.body)
71}
72
73export default clear

Callers 1

clearFunction · 0.85

Calls 1

focusOnElementFunction · 0.85

Tested by

no test coverage detected