Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.6.1/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.