--- id: utility title: Utility APIs --- The following APIs don't have one-to-one equivalents in a real user interaction. Their behavior is therefore an interpretation how the "perceived" user interaction might be translated to actual events on the DOM. ## clear() ```ts clear(element: Element): Promise ``` This API can be used to easily clear an editable element. 1. Focus element 1. Select all contents as per browser menu 1. Delete contents as per browser menu ```jsx test('clear', async () => { render(