mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1 line
7.4 KiB
JavaScript
1 line
7.4 KiB
JavaScript
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[46727],{3905:(e,n,a)=>{a.d(n,{Zo:()=>s,kt:()=>P});var t=a(67294);function r(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function o(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function i(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?o(Object(a),!0).forEach((function(n){r(e,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))}))}return e}function l(e,n){if(null==e)return{};var a,t,r=function(e,n){if(null==e)return{};var a,t,r={},o=Object.keys(e);for(t=0;t<o.length;t++)a=o[t],n.indexOf(a)>=0||(r[a]=e[a]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],n.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var p=t.createContext({}),c=function(e){var n=t.useContext(p),a=n;return e&&(a="function"==typeof e?e(n):i(i({},n),e)),a},s=function(e){var n=c(e.components);return t.createElement(p.Provider,{value:n},e.children)},u={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},d=t.forwardRef((function(e,n){var a=e.components,r=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),d=c(a),P=r,h=d["".concat(p,".").concat(P)]||d[P]||u[P]||o;return a?t.createElement(h,i(i({ref:n},s),{},{components:a})):t.createElement(h,i({ref:n},s))}));function P(e,n){var a=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var o=a.length,i=new Array(o);i[0]=d;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l.mdxType="string"==typeof e?e:r,i[1]=l;for(var c=2;c<o;c++)i[c]=a[c];return t.createElement.apply(null,i)}return t.createElement.apply(null,a)}d.displayName="MDXCreateElement"},48271:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});a(67294);var t=a(3905);function r(){return r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},r.apply(this,arguments)}function o(e,n){if(null==e)return{};var a,t,r=function(e,n){if(null==e)return{};var a,t,r={},o=Object.keys(e);for(t=0;t<o.length;t++)a=o[t],n.indexOf(a)>=0||(r[a]=e[a]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],n.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}const i={sidebar_label:"KnownDevices"},l="KnownDevices variable",p={unversionedId:"api/puppeteer.knowndevices",id:"api/puppeteer.knowndevices",title:"KnownDevices variable",description:"A list of devices to be used with Page.emulate().",source:"@site/../docs/api/puppeteer.knowndevices.md",sourceDirName:"api",slug:"/api/puppeteer.knowndevices",permalink:"/next/api/puppeteer.knowndevices",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"KnownDevices"},sidebar:"sidebar",previous:{title:"KeyInput",permalink:"/next/api/puppeteer.keyinput"},next:{title:"launch",permalink:"/next/api/puppeteer.launch"}},c={},s=[{value:"Example",id:"example",level:2}],u={toc:s};function d(e){var{components:n}=e,a=o(e,["components"]);return(0,t.kt)("wrapper",r({},u,a,{components:n,mdxType:"MDXLayout"}),(0,t.kt)("h1",r({},{id:"knowndevices-variable"}),"KnownDevices variable"),(0,t.kt)("p",null,"A list of devices to be used with ",(0,t.kt)("a",r({parentName:"p"},{href:"/next/api/puppeteer.page.emulate"}),"Page.emulate()"),"."),(0,t.kt)("p",null,(0,t.kt)("strong",{parentName:"p"},"Signature:")),(0,t.kt)("pre",null,(0,t.kt)("code",r({parentName:"pre"},{className:"language
|