puppeteer-core
Version:
A high-level API to control headless Chrome over the DevTools Protocol
14 lines • 569 B
JavaScript
/**
* @license
* Copyright 2022 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
export const ariaQuerySelector = (root, selector) => {
// In Firefox sandboxes globalThis !== window and we expose bindings on globalThis.
return globalThis.__ariaQuerySelector(root, selector);
};
export const ariaQuerySelectorAll = async function* (root, selector) {
// In Firefox sandboxes globalThis !== window and we expose bindings on globalThis.
yield* await globalThis.__ariaQuerySelectorAll(root, selector);
};
//# sourceMappingURL=ARIAQuerySelector.js.map