chore: add todo
This commit is contained in:
@@ -311,6 +311,7 @@ export class WorkflowGenerator {
|
|||||||
const elementHandle = await page.$(selector);
|
const elementHandle = await page.$(selector);
|
||||||
if (elementHandle) {
|
if (elementHandle) {
|
||||||
const tagName = await elementHandle.evaluate(el => (el as HTMLElement).tagName);
|
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);
|
const innerText = await elementHandle.evaluate(el => (el as HTMLElement).innerText);
|
||||||
|
|
||||||
return { tagName, innerText };
|
return { tagName, innerText };
|
||||||
|
|||||||
Reference in New Issue
Block a user