returnawaitpoll(()=>this.driver.getElements(windowId,selector).then(els=>els[0].textContent),s=>accept!(typeofs==='string'?s:''),`get text content '${selector}'`);
returnawaitpoll(
()=>this.driver.getElements(windowId,selector).then(els=>els.length>0?Promise.resolve(els[0].textContent):Promise.reject(newError('Element not found for textContent'))),