* Gets the type of the button. Supported values are 'button', 'submit', and 'reset'.
()
| 175 | * Gets the type of the button. Supported values are 'button', 'submit', and 'reset'. |
| 176 | */ |
| 177 | async getType(): Promise<ButtonType | null> { |
| 178 | const host = await this.host(); |
| 179 | const buttonType = await host.getAttribute('type'); |
| 180 | if (buttonType === 'button' || buttonType === 'submit' || buttonType === 'reset') { |
| 181 | return buttonType; |
| 182 | } |
| 183 | return null; |
| 184 | } |
| 185 | } |
no test coverage detected