UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

1 lines 4.53 kB
{"version":3,"file":"ElementHandle.js","sourceRoot":"","sources":["../../../../src/cdp/ElementHandle.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,8DAIiC;AAEjC,+CAA6C;AAC7C,sDAA8C;AAC9C,iDAAyC;AACzC,uEAA+D;AAC/D,yDAAsD;AAKtD,+CAA0C;AAE1C,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;AAExE;;;;;;GAMG;IACU,gBAAgB;sBAEnB,gCAAa;;;;;;iBAFV,gBAEX,SAAQ,WAA0B;;;wCAmCjC,IAAA,+BAAe,GAAE;0CAWjB,IAAA,+BAAe,GAAE,EACjB,qCAAkB;sCAgBlB,IAAA,+BAAe,GAAE,EACjB,qCAAkB;oCA4DlB,IAAA,+BAAe,GAAE;YAxFlB,uLAAe,YAAY,6DAQ1B;YAID,6LAAe,cAAc,6DAa5B;YAID,iLAAe,UAAU,6DAyDxB;YAGD,2KAAe,QAAQ,6DAWtB;;;QAtID,cAAc,GAJH,mDAAgB,CAIH;QAExB,YACE,KAAoB,EACpB,YAA2C;YAE3C,KAAK,CAAC,IAAI,yBAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;QAC9C,CAAC;QAED,IAAa,KAAK;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC3B,CAAC;QAED,IAAI,MAAM;YACR,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAC5B,CAAC;QAEQ,YAAY;YACnB,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;QACpC,CAAC;QAED,IAAI,aAAa;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;QAClC,CAAC;QAED,IAAa,KAAK;YAChB,OAAO,I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