wait for elements

This commit is contained in:
2020-01-10 15:35:18 +08:00
parent 4656e4ff64
commit c504942144
5 changed files with 38 additions and 19 deletions

View File

@ -105,7 +105,7 @@ function extractTabData(tab, itemsSelector, fieldSelectors) {
itemsSelector: itemsSelector,
fieldSelectors: fieldSelectors
}
let cond = r => r !== undefined;
let cond = r => !MSG_ELEMENT_NOT_FOUND.isEqual(r);
return sendMessage(tab, req, 'Extract data from the tab...', cond);
}