feat: html handle

This commit is contained in:
karishmas6
2024-06-05 10:44:19 +05:30
parent ebd82480e1
commit 4dd35d599b

View File

@@ -139,6 +139,9 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
throw new Error(`Can't generate CSS selector for non-element node type.`);
}
if ('html' === input.tagName.toLowerCase()) {
return 'html';
}
const defaults: Options = {
root: document.body,