mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
fix accept fn for waitForTextContent (#16449)
This commit is contained in:
@@ -302,7 +302,7 @@ export class Code {
|
||||
// {{SQL CARBON EDIT}} Print out found element
|
||||
const element = await poll(
|
||||
() => this.driver.getElements(windowId, selector).then(els => els.length > 0 ? Promise.resolve(els[0]) : Promise.reject(new Error('Element not found for textContent'))),
|
||||
s => accept!(typeof s === 'string' ? s : ''),
|
||||
s => accept!(typeof s.textContent === 'string' ? s.textContent : ''),
|
||||
`get text content '${selector}'`,
|
||||
retryCount
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user