"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[79153],{3905:(e,t,a)=>{a.d(t,{Zo:()=>u,kt:()=>c});varn=a(67294);functionr(e,t,a){returntine?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}functiono(e,t){vara=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}returna}functionl(e){for(vart=1;t<arguments.length;t++){vara=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}returne}functionp(e,t){if(null==e)return{};vara,n,r=function(e,t){if(null==e)return{};vara,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);returnr}(e,t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}returnr}vari=n.createContext({}),s=function(e){vart=n.useContext(i),a=t;returne&&(a="function"==typeofe?e(t):l(l({},t),e)),a},u=function(e){vart=s(e.components);returnn.createElement(i.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){vara=e.components,r=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),m=s(a),c=r,g=m["".concat(i,".").concat(c)]||m[c]||d[c]||o;returna?n.createElement(g,l(l({ref:t},u),{},{components:a})):n.createElement(g,l({ref:t},u))}));functionc(e,t){vara=arguments,r=t&&t.mdxType;if("string"==typeofe||r){varo=a.length,l=newArray(o);l[0]=m;varp={};for(variint)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p.mdxType="string"==typeofe?e:r,l[1]=p;for(vars=2;s<o;s++)l[s]=a[s];returnn.createElement.apply(null,l)}returnn.createElement.apply(null,a)}m.displayName="MDXCreateElement"},47749:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>u});a(67294);varn=a(3905);functionr(){returnr=Object.assign||function(e){for(vart=1;t<arguments.length;t++){vara=arguments[t];for(varnina)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}returne},r.apply(this,arguments)}functiono(e,t){if(null==e)return{};vara,n,r=function(e,t){if(null==e)return{};vara,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);returnr}(e,t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}returnr}constl={sidebar_label:"Mouse"},p="Mouse class",i={unversionedId:"api/puppeteer.mouse",id:"api/puppeteer.mouse",title:"Mouse class",description:"The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.",source:"@site/../docs/api/puppeteer.mouse.md",sourceDirName:"api",slug:"/api/puppeteer.mouse",permalink:"/next/api/puppeteer.mouse",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Mouse"},sidebar:"api",previous:{title:"Keyboard.up",permalink:"/next/api/puppeteer.keyboard.up"},next:{title:"Mouse.click",permalink:"/next/api/puppeteer.mouse.click"}},s={},u=[{value:"Signature:",id:"signature",level:4},{value:"Remarks",id:"remarks",level:2},{value:"Example 1",id:"example-1",level:2},{value:"Example 2",id:"example-2",level:2},{value:"Methods",id:"methods",level:2}],d={toc:u};functionm(e){var{components:t}=e,a=o(e,["components"]);return(0,n.kt)("wrapper",r({},d,a,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",r({},{id:"mouse-class"}),"Mouse class"),(0,n.kt)("p",null,"The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport."),(0,n.kt)("h4",r({},{id:"signature"}),