* Get value of the element (for input elements) * @returns {Promise } Element value
()
| 121 | * @returns {Promise<string>} Element value |
| 122 | */ |
| 123 | async getValue() { |
| 124 | switch (this.helperType) { |
| 125 | case 'playwright': |
| 126 | return this.element.inputValue() |
| 127 | case 'webdriver': |
| 128 | return this.element.getValue() |
| 129 | case 'puppeteer': |
| 130 | return this.element.evaluate(el => el.value) |
| 131 | default: |
| 132 | throw new Error(`Unsupported helper type: ${this.helperType}`) |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Check if element is visible |
no test coverage detected