"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[20238],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});vara=n(67294);functionr(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functioni(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}returnn}functionp(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functiono(e,t){if(null==e)return{};varn,a,r=function(e,t){if(null==e)return{};varn,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);returnr}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}returnr}varl=a.createContext({}),c=function(e){vart=a.useContext(l),n=t;returne&&(n="function"==typeofe?e(t):p(p({},t),e)),n},u=function(e){vart=c(e.components);returna.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){vart=e.children;returna.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){varn=e.components,r=e.mdxType,i=e.originalType,l=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),m=c(n),d=r,f=m["".concat(l,".").concat(d)]||m[d]||s[d]||i;returnn?a.createElement(f,p(p({ref:t},u),{},{components:n})):a.createElement(f,p({ref:t},u))}));functiond(e,t){varn=arguments,r=t&&t.mdxType;if("string"==typeofe||r){vari=n.length,p=newArray(i);p[0]=m;varo={};for(varlint)hasOwnProperty.call(t,l)&&(o[l]=t[l]);o.originalType=e,o.mdxType="string"==typeofe?e:r,p[1]=o;for(varc=2;c<i;c++)p[c]=n[c];returna.createElement.apply(null,p)}returna.createElement.apply(null,n)}m.displayName="MDXCreateElement"},97016:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>p,default:()=>s,frontMatter:()=>i,metadata:()=>o,toc:()=>c});vara=n(87462),r=(n(67294),n(3905));consti={sidebar_label:"Page.emulateVisionDeficiency"},p="Page.emulateVisionDeficiency() method",o={unversionedId:"api/puppeteer.page.emulatevisiondeficiency",id:"api/puppeteer.page.emulatevisiondeficiency",title:"Page.emulateVisionDeficiency() method",description:"Simulates the given vision deficiency on the page.",source:"@site/../docs/api/puppeteer.page.emulatevisiondeficiency.md",sourceDirName:"api",slug:"/api/puppeteer.page.emulatevisiondeficiency",permalink:"/next/api/puppeteer.page.emulatevisiondeficiency",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Page.emulateVisionDeficiency"},sidebar:"sidebar",previous:{title:"Page.emulateTimezone",permalink:"/next/api/puppeteer.page.emulatetimezone"},next:{title:"Page.evaluate",permalink:"/next/api/puppeteer.page.evaluate"}},l={},c=[{value:"Parameters",id:"parameters",level:2},{value:"Example",id:"example",level:2}],u={toc:c};functions(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"pageemulatevisiondeficiency-method"},"Page.emulateVisionDeficiency() method"),(0,r.kt)("p",null,"Simulates the given vision deficiency on the page."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Signature:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-typescript"},"class Page {\n emulateVisionDeficiency(\n type?: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest['type']\n ): Promise<void>;\n}\n")),(0,r.kt)("h2",{id:"parameters"},"Parameters"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"Parameter"),(0,r.kt)("th",{parentName:"tr",align:null},"Type"),(0,r.