returnthis.waitFor(()=>this.driver.getElements(selector).then(els=>els[0].textContent),s=>accept!(typeofs==='string'?s:''),`getTextContent with selector ${selector}`);
assert.ok(awaitapp.workbench.activitybar.getActivityBar(ActivityBarPosition.RIGHT),'Activity bar was not moved to right after toggling its position.');
returnawaitthis.waitFor(()=>this.driver.getElements(windowId,selector).then(els=>els[0].textContent),s=>accept!(typeofs==='string'?s:''),`getTextContent with selector ${selector}`);