chore: lint

This commit is contained in:
karishmas6
2024-09-23 17:26:45 +05:30
parent 05f83d3926
commit cda7115e55

View File

@@ -308,10 +308,10 @@ export class WorkflowGenerator {
if (elementHandle) { if (elementHandle) {
const tagName = await elementHandle.evaluate(el => (el as HTMLElement).tagName); const tagName = await elementHandle.evaluate(el => (el as HTMLElement).tagName);
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 };
} }
return { tagName: '', innerText: '' }; return { tagName: '', innerText: '' };
} }
/** /**
@@ -338,7 +338,7 @@ export class WorkflowGenerator {
selector: this.generatedData.lastUsedSelector, selector: this.generatedData.lastUsedSelector,
action: this.generatedData.lastAction, action: this.generatedData.lastAction,
tagName: elementInfo.tagName, tagName: elementInfo.tagName,
innerText: elementInfo.innerText, innerText: elementInfo.innerText,
} }
}); });
} else { } else {
@@ -505,7 +505,7 @@ export class WorkflowGenerator {
const selectorBasedOnCustomAction = (this.getList === true) const selectorBasedOnCustomAction = (this.getList === true)
? await getNonUniqueSelectors(page, coordinates) ? await getNonUniqueSelectors(page, coordinates)
: await getSelectors(page, coordinates); : await getSelectors(page, coordinates);
const bestSelector = getBestSelectorForAction( const bestSelector = getBestSelectorForAction(
{ {
type: action, type: action,