Skip to content

Commit

Permalink
fix: css locator should allow nodes to be start nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed May 7, 2024
1 parent e6dc717 commit 0740dbb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/bidiMapper/modules/context/BrowsingContextImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,11 +1064,6 @@ export class BrowsingContextImpl {
...startNodes: HTMLElement[]
) => {
const locateNodesUsingCss = (element: HTMLElement) => {
if (!(element instanceof HTMLElement)) {
throw new Error(
'startNodes in css selector should be HTMLElement'
);
}
return [...element.querySelectorAll(cssSelector)];
};

Expand Down

0 comments on commit 0740dbb

Please sign in to comment.