chore: add todo

This commit is contained in:
karishmas6
2024-09-23 17:58:45 +05:30
parent 960c254b89
commit 3807876a81

View File

@@ -311,6 +311,7 @@ export class WorkflowGenerator {
const elementHandle = await page.$(selector);
if (elementHandle) {
const tagName = await elementHandle.evaluate(el => (el as HTMLElement).tagName);
// TODO: based on tagName, send data. Always innerText won't hold true. For now, can roll.
const innerText = await elementHandle.evaluate(el => (el as HTMLElement).innerText);
return { tagName, innerText };