Skip to content

Commit

Permalink
feat: add css selector locator data into locator type options for cas…
Browse files Browse the repository at this point in the history
…es, when backend doesn't send css selector data
  • Loading branch information
Iogsotot committed May 17, 2024
1 parent e251ff4 commit 3e19c17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/locators/utils/createLocatorTypeOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,9 @@ export const createLocatorTypeOptions = async (locatorValue: LocatorValue, isViv
}

const optionsData = await splitUniqueAndNonUniqueAttributes(attributes);
return getLocatorTypeOptions(optionsData, locatorValue.cssSelector, locatorValue.xPath);
return getLocatorTypeOptions(
optionsData,
locatorValue.cssSelector ?? locatorValue.originalCssSelector ?? null,
locatorValue.xPath,
);
};

0 comments on commit 3e19c17

Please sign in to comment.