| 3119 | } |
| 3120 | |
| 3121 | const proceedSingle = async el => { |
| 3122 | let res = await el.getValue() |
| 3123 | |
| 3124 | if (res === null) { |
| 3125 | res = await el.getText() |
| 3126 | } |
| 3127 | |
| 3128 | if (res === null || res === undefined) { |
| 3129 | throw new Error(`Element ${el.selector} has no value attribute`) |
| 3130 | } |
| 3131 | |
| 3132 | stringIncludes(`fields by ${field}`)[assertType](value, res) |
| 3133 | } |
| 3134 | |
| 3135 | const filterBySelected = async elements => filterAsync(elements, async el => this.browser.isElementSelected(getElementId(el))) |
| 3136 |
no test coverage detected