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

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

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

Parameters

userAgent: string
  • Specific user agent to use in this page
optional
userAgentMetadata: Protocol.Emulation.UserAgentMetadata
  • Specific user agent client hint data to use in this page

Returns

Promise<void>

Promise which resolves when the user agent is set.