"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[74509],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});varn=r(67294);functiono(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functiona(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functionl(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionp(e,t){if(null==e)return{};varr,n,o=function(e,t){if(null==e)return{};varr,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}returno}vari=n.createContext({}),s=function(e){vart=n.useContext(i),r=t;returne&&(r="function"==typeofe?e(t):l(l({},t),e)),r},c=function(e){vart=s(e.components);returnn.createElement(i.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},u=n.forwardRef((function(e,t){varr=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),u=s(r),d=o,h=u["".concat(i,".").concat(d)]||u[d]||m[d]||a;returnr?n.createElement(h,l(l({ref:t},c),{},{components:r})):n.createElement(h,l({ref:t},c))}));functiond(e,t){varr=arguments,o=t&&t.mdxType;if("string"==typeofe||o){vara=r.length,l=newArray(a);l[0]=u;varp={};for(variint)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p.mdxType="string"==typeofe?e:o,l[1]=p;for(vars=2;s<a;s++)l[s]=r[s];returnn.createElement.apply(null,l)}returnn.createElement.apply(null,r)}u.displayName="MDXCreateElement"},95010:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>l,default:()=>m,frontMatter:()=>a,metadata:()=>p,toc:()=>s});varn=r(87462),o=(r(67294),r(3905));consta={sidebar_label:"ElementHandle.hover"},l="ElementHandle.hover() method",p={unversionedId:"api/puppeteer.elementhandle.hover",id:"version-15.3.0/api/puppeteer.elementhandle.hover",title:"ElementHandle.hover() method",description:"This method scrolls element into view if needed, and then uses Page.mouse to hover over the center of the element. If the element is detached from DOM, the method throws an error.",source:"@site/versioned_docs/version-15.3.0/api/puppeteer.elementhandle.hover.md",sourceDirName:"api",slug:"/api/puppeteer.elementhandle.hover",permalink:"/15.3.0/api/puppeteer.elementhandle.hover",draft:!1,tags:[],version:"15.3.0",frontMatter:{sidebar_label:"ElementHandle.hover"},sidebar:"sidebar",previous:{title:"ElementHandle.focus",permalink:"/15.3.0/api/puppeteer.elementhandle.focus"},next:{title:"ElementHandle.isIntersectingViewport",permalink:"/15.3.0/api/puppeteer.elementhandle.isintersectingviewport"}},i={},s=[],c={toc:s};functionm(e){let{components:t,...r}=e;return(0,o.kt)("wrapper",(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"elementhandlehover-method"},"ElementHandle.hover() method"),(0,o.kt)("p",null,"This method scrolls element into view if needed, and then uses ",(0,o.kt)("a",{parentName:"p",href:"/15.3.0/api/puppeteer.page.mouse"},"Page.mouse")," to hover over the center of the element. If the element is detached from DOM, the method throws an error."),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Signature:")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"class ElementHandle {\n hover(): Promise<void>;\n}\n")),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Returns:")),(0,o.kt)("p",null,"Promise","<","vo