async type(key) {
        const focusedInput = await this.getFocusedInput();
        if (focusedInput) {
            await focusedInput.setValue(key);
        }
    }
Create a new PageCodeInput page object.
@constructor
@param {string} rootElement - The selector of the PageCodeInput root element.