Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/tests/deps.ts>Page#$

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.$
Re-export
import { Page } from "https://deno.land/x/fresh@1.5.1/tests/deps.ts";

Runs document.querySelector within the page. If no element matches the selector, the return value resolves to null.

Type Parameters

Selector extends string

Parameters

selector: Selector
  • A selector to query page for selector to query page for.

Returns

Promise<ElementHandle<NodeFor<Selector>> | null>