feat: elementInfo for highlighter data

This commit is contained in:
karishmas6
2024-07-27 01:45:56 +05:30
parent 5d50c6acc2
commit 8a440f37d8

View File

@@ -484,6 +484,7 @@ export class WorkflowGenerator {
public generateDataForHighlighter = async (page: Page, coordinates: Coordinates) => {
const rect = await getRect(page, coordinates);
const displaySelector = await this.generateSelector(page, coordinates, ActionType.Click);
const elementInfo = await getElementInformation(page, coordinates);
//console.log('Backend Rectangle:', rect)
if (rect) {
this.socket.emit('highlighter', { rect, selector: displaySelector });