protocol.yml 98 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884
  1. # Copyright (c) Microsoft Corporation.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. Android:
  15. type: interface
  16. commands:
  17. devices:
  18. internal: true
  19. parameters:
  20. host: string?
  21. port: int?
  22. omitDriverInstall: boolean?
  23. returns:
  24. devices:
  25. type: array
  26. items: AndroidDevice
  27. AndroidSocket:
  28. type: interface
  29. commands:
  30. write:
  31. internal: true
  32. parameters:
  33. data: binary
  34. close:
  35. internal: true
  36. events:
  37. data:
  38. parameters:
  39. data: binary
  40. close:
  41. AndroidDevice:
  42. type: interface
  43. extends: EventTarget
  44. initializer:
  45. model: string
  46. serial: string
  47. commands:
  48. wait:
  49. title: Wait
  50. parameters:
  51. androidSelector: AndroidSelector
  52. state:
  53. type: enum?
  54. literals:
  55. - gone
  56. timeout: float
  57. fill:
  58. title: Fill "{text}"
  59. parameters:
  60. androidSelector: AndroidSelector
  61. text: string
  62. timeout: float
  63. tap:
  64. title: Tap
  65. parameters:
  66. androidSelector: AndroidSelector
  67. duration: float?
  68. timeout: float
  69. drag:
  70. title: Drag
  71. parameters:
  72. androidSelector: AndroidSelector
  73. dest: Point
  74. speed: float?
  75. timeout: float
  76. fling:
  77. title: Fling
  78. parameters:
  79. androidSelector: AndroidSelector
  80. direction:
  81. type: enum
  82. literals:
  83. - up
  84. - down
  85. - left
  86. - right
  87. speed: float?
  88. timeout: float
  89. longTap:
  90. title: Long tap
  91. parameters:
  92. androidSelector: AndroidSelector
  93. timeout: float
  94. pinchClose:
  95. title: Pinch close
  96. parameters:
  97. androidSelector: AndroidSelector
  98. percent: float
  99. speed: float?
  100. timeout: float
  101. pinchOpen:
  102. title: Pinch open
  103. parameters:
  104. androidSelector: AndroidSelector
  105. percent: float
  106. speed: float?
  107. timeout: float
  108. scroll:
  109. title: Scroll
  110. parameters:
  111. androidSelector: AndroidSelector
  112. direction:
  113. type: enum
  114. literals:
  115. - up
  116. - down
  117. - left
  118. - right
  119. percent: float
  120. speed: float?
  121. timeout: float
  122. swipe:
  123. title: Swipe
  124. parameters:
  125. androidSelector: AndroidSelector
  126. direction:
  127. type: enum
  128. literals:
  129. - up
  130. - down
  131. - left
  132. - right
  133. percent: float
  134. speed: float?
  135. timeout: float
  136. info:
  137. internal: true
  138. parameters:
  139. androidSelector: AndroidSelector
  140. returns:
  141. info: AndroidElementInfo
  142. screenshot:
  143. title: Screenshot
  144. returns:
  145. binary: binary
  146. inputType:
  147. title: Type
  148. parameters:
  149. text: string
  150. inputPress:
  151. title: Press
  152. parameters:
  153. key: string
  154. inputTap:
  155. title: Tap
  156. parameters:
  157. point: Point
  158. inputSwipe:
  159. title: Swipe
  160. parameters:
  161. segments:
  162. type: array
  163. items: Point
  164. steps: int
  165. inputDrag:
  166. title: Drag
  167. parameters:
  168. from: Point
  169. to: Point
  170. steps: int
  171. launchBrowser:
  172. title: Launch browser
  173. parameters:
  174. $mixin: ContextOptions
  175. pkg: string?
  176. args:
  177. type: array?
  178. items: string
  179. proxy:
  180. type: object?
  181. properties:
  182. server: string
  183. bypass: string?
  184. username: string?
  185. password: string?
  186. returns:
  187. context: BrowserContext
  188. open:
  189. title: Open app
  190. parameters:
  191. command: string
  192. returns:
  193. socket: AndroidSocket
  194. shell:
  195. title: Execute shell command
  196. group: configuration
  197. parameters:
  198. command: string
  199. returns:
  200. result: binary
  201. installApk:
  202. title: Install apk
  203. parameters:
  204. file: binary
  205. args:
  206. type: array?
  207. items: string
  208. push:
  209. title: Push
  210. parameters:
  211. file: binary
  212. path: string
  213. mode: int?
  214. connectToWebView:
  215. title: Connect to Web View
  216. parameters:
  217. socketName: string
  218. returns:
  219. context: BrowserContext
  220. close:
  221. internal: true
  222. events:
  223. close:
  224. webViewAdded:
  225. parameters:
  226. webView: AndroidWebView
  227. webViewRemoved:
  228. parameters:
  229. socketName: string
  230. AndroidWebView:
  231. type: object
  232. properties:
  233. pid: int
  234. pkg: string
  235. socketName: string
  236. AndroidSelector:
  237. type: object
  238. properties:
  239. checkable: boolean?
  240. checked: boolean?
  241. clazz: string?
  242. clickable: boolean?
  243. depth: int?
  244. desc: string?
  245. enabled: boolean?
  246. focusable: boolean?
  247. focused: boolean?
  248. hasChild:
  249. type: object?
  250. properties:
  251. androidSelector: AndroidSelector
  252. hasDescendant:
  253. type: object?
  254. properties:
  255. androidSelector: AndroidSelector
  256. maxDepth: int?
  257. longClickable: boolean?
  258. pkg: string?
  259. res: string?
  260. scrollable: boolean?
  261. selected: boolean?
  262. text: string?
  263. AndroidElementInfo:
  264. type: object
  265. properties:
  266. children:
  267. type: array?
  268. items: AndroidElementInfo
  269. clazz: string
  270. desc: string
  271. res: string
  272. pkg: string
  273. text: string
  274. bounds: Rect
  275. checkable: boolean
  276. checked: boolean
  277. clickable: boolean
  278. enabled: boolean
  279. focusable: boolean
  280. focused: boolean
  281. longClickable: boolean
  282. scrollable: boolean
  283. selected: boolean
  284. # Copyright (c) Microsoft Corporation.
  285. #
  286. # Licensed under the Apache License, Version 2.0 (the "License");
  287. # you may not use this file except in compliance with the License.
  288. # You may obtain a copy of the License at
  289. #
  290. # http://www.apache.org/licenses/LICENSE-2.0
  291. #
  292. # Unless required by applicable law or agreed to in writing, software
  293. # distributed under the License is distributed on an "AS IS" BASIS,
  294. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  295. # See the License for the specific language governing permissions and
  296. # limitations under the License.
  297. APIRequestContext:
  298. type: interface
  299. initializer:
  300. tracing: Tracing
  301. commands:
  302. fetch:
  303. title: '{method} "{url}"'
  304. parameters:
  305. url: string
  306. encodedParams: string?
  307. params:
  308. type: array?
  309. items: NameValue
  310. method: string?
  311. headers:
  312. type: array?
  313. items: NameValue
  314. postData: binary?
  315. jsonData: string?
  316. formData:
  317. type: array?
  318. items: NameValue
  319. multipartData:
  320. type: array?
  321. items: FormField
  322. timeout: float
  323. failOnStatusCode: boolean?
  324. ignoreHTTPSErrors: boolean?
  325. maxRedirects: int?
  326. maxRetries: int?
  327. returns:
  328. response: APIResponse
  329. fetchResponseBody:
  330. title: Get response body
  331. group: getter
  332. parameters:
  333. fetchUid: string
  334. returns:
  335. binary: binary?
  336. fetchLog:
  337. internal: true
  338. parameters:
  339. fetchUid: string
  340. returns:
  341. log:
  342. type: array
  343. items: string
  344. storageState:
  345. title: Get storage state
  346. group: configuration
  347. parameters:
  348. indexedDB: boolean?
  349. returns:
  350. cookies:
  351. type: array
  352. items: NetworkCookie
  353. origins:
  354. type: array
  355. items: OriginStorage
  356. disposeAPIResponse:
  357. internal: true
  358. parameters:
  359. fetchUid: string
  360. dispose:
  361. internal: true
  362. parameters:
  363. reason: string?
  364. APIResponse:
  365. type: object
  366. properties:
  367. fetchUid: string
  368. url: string
  369. status: int
  370. statusText: string
  371. headers:
  372. type: array
  373. items: NameValue
  374. # Copyright (c) Microsoft Corporation.
  375. #
  376. # Licensed under the Apache License, Version 2.0 (the "License");
  377. # you may not use this file except in compliance with the License.
  378. # You may obtain a copy of the License at
  379. #
  380. # http://www.apache.org/licenses/LICENSE-2.0
  381. #
  382. # Unless required by applicable law or agreed to in writing, software
  383. # distributed under the License is distributed on an "AS IS" BASIS,
  384. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  385. # See the License for the specific language governing permissions and
  386. # limitations under the License.
  387. Artifact:
  388. type: interface
  389. initializer:
  390. absolutePath: string
  391. commands:
  392. pathAfterFinished:
  393. internal: true
  394. returns:
  395. value: string
  396. # Blocks path/failure/delete/context.close until saved to the local |path|.
  397. saveAs:
  398. internal: true
  399. parameters:
  400. path: string
  401. # Blocks path/failure/delete/context.close until the stream is closed.
  402. saveAsStream:
  403. internal: true
  404. returns:
  405. stream: Stream
  406. failure:
  407. internal: true
  408. returns:
  409. error: string?
  410. stream:
  411. internal: true
  412. returns:
  413. stream: Stream
  414. cancel:
  415. internal: true
  416. delete:
  417. internal: true
  418. Stream:
  419. type: interface
  420. commands:
  421. read:
  422. internal: true
  423. parameters:
  424. size: int?
  425. returns:
  426. binary: binary
  427. close:
  428. internal: true
  429. WritableStream:
  430. type: interface
  431. commands:
  432. write:
  433. internal: true
  434. parameters:
  435. binary: binary
  436. close:
  437. internal: true
  438. # Copyright (c) Microsoft Corporation.
  439. #
  440. # Licensed under the Apache License, Version 2.0 (the "License");
  441. # you may not use this file except in compliance with the License.
  442. # You may obtain a copy of the License at
  443. #
  444. # http://www.apache.org/licenses/LICENSE-2.0
  445. #
  446. # Unless required by applicable law or agreed to in writing, software
  447. # distributed under the License is distributed on an "AS IS" BASIS,
  448. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  449. # See the License for the specific language governing permissions and
  450. # limitations under the License.
  451. Browser:
  452. type: interface
  453. initializer:
  454. version: string
  455. name: string
  456. browserName:
  457. type: enum
  458. literals:
  459. - chromium
  460. - firefox
  461. - webkit
  462. commands:
  463. startServer:
  464. title: Start server
  465. parameters:
  466. title: string
  467. workspaceDir: string?
  468. metadata: json?
  469. host: string?
  470. port: int?
  471. returns:
  472. endpoint: string
  473. stopServer:
  474. title: Stop server
  475. close:
  476. title: Close browser
  477. parameters:
  478. reason: string?
  479. flags:
  480. pause: true
  481. killForTests:
  482. internal: true
  483. defaultUserAgentForTest:
  484. internal: true
  485. returns:
  486. userAgent: string
  487. newContext:
  488. title: Create context
  489. parameters:
  490. $mixin: ContextOptions
  491. proxy:
  492. type: object?
  493. properties:
  494. server: string
  495. bypass: string?
  496. username: string?
  497. password: string?
  498. storageState:
  499. type: object?
  500. properties:
  501. cookies:
  502. type: array?
  503. items: SetNetworkCookie
  504. origins:
  505. type: array?
  506. items: SetOriginStorage
  507. returns:
  508. context: BrowserContext
  509. newContextForReuse:
  510. internal: true
  511. parameters:
  512. $mixin: ContextOptions
  513. proxy:
  514. type: object?
  515. properties:
  516. server: string
  517. bypass: string?
  518. username: string?
  519. password: string?
  520. storageState:
  521. type: object?
  522. properties:
  523. cookies:
  524. type: array?
  525. items: SetNetworkCookie
  526. origins:
  527. type: array?
  528. items: SetOriginStorage
  529. returns:
  530. context: BrowserContext
  531. disconnectFromReusedContext:
  532. internal: true
  533. parameters:
  534. reason: string
  535. newBrowserCDPSession:
  536. title: Create CDP session
  537. group: configuration
  538. returns:
  539. session: CDPSession
  540. startTracing:
  541. title: Start browser tracing
  542. group: configuration
  543. parameters:
  544. page: Page?
  545. screenshots: boolean?
  546. categories:
  547. type: array?
  548. items: string
  549. stopTracing:
  550. title: Stop browser tracing
  551. group: configuration
  552. returns:
  553. artifact: Artifact
  554. events:
  555. context:
  556. parameters:
  557. context: BrowserContext
  558. close:
  559. # Copyright (c) Microsoft Corporation.
  560. #
  561. # Licensed under the Apache License, Version 2.0 (the "License");
  562. # you may not use this file except in compliance with the License.
  563. # You may obtain a copy of the License at
  564. #
  565. # http://www.apache.org/licenses/LICENSE-2.0
  566. #
  567. # Unless required by applicable law or agreed to in writing, software
  568. # distributed under the License is distributed on an "AS IS" BASIS,
  569. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  570. # See the License for the specific language governing permissions and
  571. # limitations under the License.
  572. BrowserContext:
  573. type: interface
  574. extends: EventTarget
  575. initializer:
  576. debugger: Debugger
  577. requestContext: APIRequestContext
  578. tracing: Tracing
  579. options:
  580. type: object
  581. properties:
  582. $mixin: ContextOptions
  583. commands:
  584. addCookies:
  585. title: Add cookies
  586. group: configuration
  587. parameters:
  588. cookies:
  589. type: array
  590. items: SetNetworkCookie
  591. addInitScript:
  592. title: Add init script
  593. group: configuration
  594. parameters:
  595. source: string
  596. returns:
  597. disposable: Disposable
  598. clearCookies:
  599. title: Clear cookies
  600. group: configuration
  601. parameters:
  602. name: string?
  603. nameRegexSource: string?
  604. nameRegexFlags: string?
  605. domain: string?
  606. domainRegexSource: string?
  607. domainRegexFlags: string?
  608. path: string?
  609. pathRegexSource: string?
  610. pathRegexFlags: string?
  611. clearPermissions:
  612. title: Clear permissions
  613. group: configuration
  614. close:
  615. title: Close context
  616. parameters:
  617. reason: string?
  618. flags:
  619. pause: true
  620. cookies:
  621. title: Get cookies
  622. group: getter
  623. parameters:
  624. urls:
  625. type: array
  626. items: string
  627. returns:
  628. cookies:
  629. type: array
  630. items: NetworkCookie
  631. exposeBinding:
  632. title: Expose binding
  633. group: configuration
  634. parameters:
  635. name: string
  636. returns:
  637. disposable: Disposable
  638. grantPermissions:
  639. title: Grant permissions
  640. group: configuration
  641. parameters:
  642. permissions:
  643. type: array
  644. items: string
  645. origin: string?
  646. newPage:
  647. title: Create page
  648. returns:
  649. page: Page
  650. registerSelectorEngine:
  651. internal: true
  652. parameters:
  653. selectorEngine: SelectorEngine
  654. setTestIdAttributeName:
  655. internal: true
  656. parameters:
  657. testIdAttributeName: string
  658. setExtraHTTPHeaders:
  659. title: Set extra HTTP headers
  660. group: configuration
  661. parameters:
  662. headers:
  663. type: array
  664. items: NameValue
  665. setGeolocation:
  666. title: Set geolocation
  667. group: configuration
  668. parameters:
  669. geolocation:
  670. type: object?
  671. properties:
  672. longitude: float
  673. latitude: float
  674. accuracy: float?
  675. setHTTPCredentials:
  676. title: Set HTTP credentials
  677. group: configuration
  678. parameters:
  679. httpCredentials:
  680. type: object?
  681. properties:
  682. username: string
  683. password: string
  684. origin: string?
  685. setNetworkInterceptionPatterns:
  686. title: Route requests
  687. group: route
  688. parameters:
  689. patterns:
  690. type: array
  691. items:
  692. type: object
  693. properties:
  694. glob: string?
  695. regexSource: string?
  696. regexFlags: string?
  697. urlPattern: URLPattern?
  698. setWebSocketInterceptionPatterns:
  699. title: Route WebSockets
  700. group: route
  701. parameters:
  702. patterns:
  703. type: array
  704. items:
  705. type: object
  706. properties:
  707. glob: string?
  708. regexSource: string?
  709. regexFlags: string?
  710. urlPattern: URLPattern?
  711. setOffline:
  712. title: Set offline mode
  713. parameters:
  714. offline: boolean
  715. storageState:
  716. title: Get storage state
  717. group: configuration
  718. parameters:
  719. indexedDB: boolean?
  720. returns:
  721. cookies:
  722. type: array
  723. items: NetworkCookie
  724. origins:
  725. type: array
  726. items: OriginStorage
  727. setStorageState:
  728. title: Set storage state
  729. group: configuration
  730. parameters:
  731. storageState:
  732. type: object?
  733. properties:
  734. cookies:
  735. type: array?
  736. items: SetNetworkCookie
  737. origins:
  738. type: array?
  739. items: SetOriginStorage
  740. pause:
  741. title: Pause
  742. enableRecorder:
  743. internal: true
  744. parameters:
  745. language: string?
  746. mode:
  747. type: enum?
  748. literals:
  749. - inspecting
  750. - recording
  751. recorderMode:
  752. type: enum?
  753. literals:
  754. - default
  755. - api
  756. pauseOnNextStatement: boolean?
  757. testIdAttributeName: string?
  758. launchOptions: json?
  759. contextOptions: json?
  760. device: string?
  761. saveStorage: string?
  762. outputFile: string?
  763. handleSIGINT: boolean?
  764. omitCallTracking: boolean?
  765. disableRecorder:
  766. internal: true
  767. exposeConsoleApi:
  768. internal: true
  769. newCDPSession:
  770. title: Create CDP session
  771. group: configuration
  772. parameters:
  773. page: Page?
  774. frame: Frame?
  775. returns:
  776. session: CDPSession
  777. createTempFiles:
  778. internal: true
  779. parameters:
  780. rootDirName: string?
  781. items:
  782. type: array
  783. items:
  784. type: object
  785. properties:
  786. name: string
  787. lastModifiedMs: float?
  788. returns:
  789. rootDir: WritableStream?
  790. writableStreams:
  791. type: array
  792. items: WritableStream
  793. updateSubscription:
  794. internal: true
  795. parameters:
  796. event:
  797. type: enum
  798. literals:
  799. - console
  800. - dialog
  801. - request
  802. - response
  803. - requestFinished
  804. - requestFailed
  805. enabled: boolean
  806. clockFastForward:
  807. title: Fast forward clock "{ticksNumber|ticksString}"
  808. parameters:
  809. ticksNumber: float?
  810. ticksString: string?
  811. clockInstall:
  812. title: Install clock "{timeNumber|timeString}"
  813. parameters:
  814. timeNumber: float?
  815. timeString: string?
  816. clockPauseAt:
  817. title: Pause clock "{timeNumber|timeString}"
  818. parameters:
  819. timeNumber: float?
  820. timeString: string?
  821. clockResume:
  822. title: Resume clock
  823. clockRunFor:
  824. title: Run clock "{ticksNumber|ticksString}"
  825. parameters:
  826. ticksNumber: float?
  827. ticksString: string?
  828. clockSetFixedTime:
  829. title: Set fixed time "{timeNumber|timeString}"
  830. parameters:
  831. timeNumber: float?
  832. timeString: string?
  833. clockSetSystemTime:
  834. title: Set system time "{timeNumber|timeString}"
  835. parameters:
  836. timeNumber: float?
  837. timeString: string?
  838. events:
  839. bindingCall:
  840. parameters:
  841. binding: BindingCall
  842. console:
  843. parameters:
  844. $mixin: ConsoleMessage
  845. page: Page?
  846. worker: Worker?
  847. close:
  848. dialog:
  849. parameters:
  850. dialog: Dialog
  851. page:
  852. parameters:
  853. page: Page
  854. pageError:
  855. parameters:
  856. error: SerializedError
  857. page: Page
  858. location:
  859. type: object
  860. properties:
  861. url: string
  862. line: int
  863. column: int
  864. route:
  865. parameters:
  866. route: Route
  867. webSocketRoute:
  868. parameters:
  869. webSocketRoute: WebSocketRoute
  870. serviceWorker:
  871. parameters:
  872. worker: Worker
  873. request:
  874. parameters:
  875. request: Request
  876. page: Page?
  877. requestFailed:
  878. parameters:
  879. request: Request
  880. failureText: string?
  881. responseEndTiming: float
  882. page: Page?
  883. requestFinished:
  884. parameters:
  885. request: Request
  886. response: Response?
  887. responseEndTiming: float
  888. page: Page?
  889. response:
  890. parameters:
  891. response: Response
  892. page: Page?
  893. recorderEvent:
  894. parameters:
  895. event:
  896. type: enum
  897. literals:
  898. - actionAdded
  899. - actionUpdated
  900. - signalAdded
  901. data: json
  902. page: Page
  903. code: string
  904. # Copyright (c) Microsoft Corporation.
  905. #
  906. # Licensed under the Apache License, Version 2.0 (the "License");
  907. # you may not use this file except in compliance with the License.
  908. # You may obtain a copy of the License at
  909. #
  910. # http://www.apache.org/licenses/LICENSE-2.0
  911. #
  912. # Unless required by applicable law or agreed to in writing, software
  913. # distributed under the License is distributed on an "AS IS" BASIS,
  914. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  915. # See the License for the specific language governing permissions and
  916. # limitations under the License.
  917. BrowserType:
  918. type: interface
  919. initializer:
  920. executablePath: string
  921. name: string
  922. commands:
  923. launch:
  924. title: Launch browser
  925. parameters:
  926. $mixin: LaunchOptions
  927. slowMo: float?
  928. returns:
  929. browser: Browser
  930. launchPersistentContext:
  931. title: Launch persistent context
  932. parameters:
  933. $mixin1: LaunchOptions
  934. $mixin2: ContextOptions
  935. userDataDir: string
  936. slowMo: float?
  937. returns:
  938. browser: Browser
  939. context: BrowserContext
  940. connectOverCDP:
  941. title: Connect over CDP
  942. parameters:
  943. endpointURL: string
  944. headers:
  945. type: array?
  946. items: NameValue
  947. slowMo: float?
  948. timeout: float
  949. isLocal: boolean?
  950. noDefaults: boolean?
  951. returns:
  952. browser: Browser
  953. defaultContext: BrowserContext?
  954. connectToWorker:
  955. title: Connect to worker
  956. parameters:
  957. endpoint: string
  958. timeout: float
  959. returns:
  960. worker: Worker
  961. # Copyright (c) Microsoft Corporation.
  962. #
  963. # Licensed under the Apache License, Version 2.0 (the "License");
  964. # you may not use this file except in compliance with the License.
  965. # You may obtain a copy of the License at
  966. #
  967. # http://www.apache.org/licenses/LICENSE-2.0
  968. #
  969. # Unless required by applicable law or agreed to in writing, software
  970. # distributed under the License is distributed on an "AS IS" BASIS,
  971. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  972. # See the License for the specific language governing permissions and
  973. # limitations under the License.
  974. Metadata:
  975. type: object
  976. properties:
  977. location:
  978. type: object?
  979. properties:
  980. file: string
  981. line: int?
  982. column: int?
  983. title: string?
  984. internal: boolean?
  985. # Test runner step id.
  986. stepId: string?
  987. ClientSideCallMetadata:
  988. type: object
  989. properties:
  990. id: int
  991. stack:
  992. type: array?
  993. items: StackFrame
  994. SDKLanguage:
  995. type: enum
  996. literals:
  997. - javascript
  998. - python
  999. - java
  1000. - csharp
  1001. Disposable:
  1002. type: interface
  1003. commands:
  1004. dispose:
  1005. internal: true
  1006. EventTarget:
  1007. type: interface
  1008. commands:
  1009. waitForEventInfo:
  1010. title: Wait for event "{info.event}"
  1011. parameters:
  1012. info:
  1013. type: object
  1014. properties:
  1015. waitId: string
  1016. phase:
  1017. type: enum
  1018. literals:
  1019. - before
  1020. - after
  1021. - log
  1022. event: string?
  1023. message: string?
  1024. error: string?
  1025. flags:
  1026. snapshot: true
  1027. # Copyright (c) Microsoft Corporation.
  1028. #
  1029. # Licensed under the Apache License, Version 2.0 (the "License");
  1030. # you may not use this file except in compliance with the License.
  1031. # You may obtain a copy of the License at
  1032. #
  1033. # http://www.apache.org/licenses/LICENSE-2.0
  1034. #
  1035. # Unless required by applicable law or agreed to in writing, software
  1036. # distributed under the License is distributed on an "AS IS" BASIS,
  1037. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1038. # See the License for the specific language governing permissions and
  1039. # limitations under the License.
  1040. Electron:
  1041. type: interface
  1042. commands:
  1043. launch:
  1044. title: Launch electron
  1045. parameters:
  1046. executablePath: string?
  1047. args:
  1048. type: array?
  1049. items: string
  1050. chromiumSandbox: boolean?
  1051. cwd: string?
  1052. env:
  1053. type: array?
  1054. items: NameValue
  1055. timeout: float
  1056. acceptDownloads:
  1057. type: enum?
  1058. literals:
  1059. - accept
  1060. - deny
  1061. - internal-browser-default
  1062. bypassCSP: boolean?
  1063. colorScheme:
  1064. type: enum?
  1065. literals:
  1066. - dark
  1067. - light
  1068. - no-preference
  1069. - no-override
  1070. extraHTTPHeaders:
  1071. type: array?
  1072. items: NameValue
  1073. geolocation:
  1074. type: object?
  1075. properties:
  1076. longitude: float
  1077. latitude: float
  1078. accuracy: float?
  1079. httpCredentials:
  1080. type: object?
  1081. properties:
  1082. username: string
  1083. password: string
  1084. origin: string?
  1085. ignoreHTTPSErrors: boolean?
  1086. locale: string?
  1087. offline: boolean?
  1088. recordVideo:
  1089. type: object?
  1090. properties:
  1091. dir: string?
  1092. size:
  1093. type: object?
  1094. properties:
  1095. width: int
  1096. height: int
  1097. showActions:
  1098. type: object?
  1099. properties:
  1100. $mixin: ShowActionsOptions
  1101. strictSelectors: boolean?
  1102. timezoneId: string?
  1103. tracesDir: string?
  1104. artifactsDir: string?
  1105. selectorEngines:
  1106. type: array?
  1107. items: SelectorEngine
  1108. testIdAttributeName: string?
  1109. returns:
  1110. electronApplication: ElectronApplication
  1111. ElectronApplication:
  1112. type: interface
  1113. extends: EventTarget
  1114. initializer:
  1115. context: BrowserContext
  1116. commands:
  1117. browserWindow:
  1118. internal: true
  1119. parameters:
  1120. page: Page
  1121. returns:
  1122. handle: JSHandle
  1123. evaluateExpression:
  1124. title: Evaluate
  1125. parameters:
  1126. expression: string
  1127. isFunction: boolean?
  1128. arg: SerializedArgument
  1129. returns:
  1130. value: SerializedValue
  1131. evaluateExpressionHandle:
  1132. title: Evaluate
  1133. parameters:
  1134. expression: string
  1135. isFunction: boolean?
  1136. arg: SerializedArgument
  1137. returns:
  1138. handle: JSHandle
  1139. updateSubscription:
  1140. internal: true
  1141. parameters:
  1142. event:
  1143. type: enum
  1144. literals:
  1145. - console
  1146. enabled: boolean
  1147. events:
  1148. close:
  1149. console:
  1150. parameters:
  1151. $mixin: ConsoleMessage
  1152. # Copyright (c) Microsoft Corporation.
  1153. #
  1154. # Licensed under the Apache License, Version 2.0 (the "License");
  1155. # you may not use this file except in compliance with the License.
  1156. # You may obtain a copy of the License at
  1157. #
  1158. # http://www.apache.org/licenses/LICENSE-2.0
  1159. #
  1160. # Unless required by applicable law or agreed to in writing, software
  1161. # distributed under the License is distributed on an "AS IS" BASIS,
  1162. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1163. # See the License for the specific language governing permissions and
  1164. # limitations under the License.
  1165. Frame:
  1166. type: interface
  1167. initializer:
  1168. url: string
  1169. name: string
  1170. parentFrame: Frame?
  1171. loadStates:
  1172. type: array
  1173. items: LifecycleEvent
  1174. commands:
  1175. evalOnSelector:
  1176. title: Evaluate
  1177. parameters:
  1178. selector: string
  1179. strict: boolean?
  1180. expression: string
  1181. isFunction: boolean?
  1182. arg: SerializedArgument
  1183. returns:
  1184. value: SerializedValue
  1185. flags:
  1186. snapshot: true
  1187. pause: true
  1188. evalOnSelectorAll:
  1189. title: Evaluate
  1190. parameters:
  1191. selector: string
  1192. expression: string
  1193. isFunction: boolean?
  1194. arg: SerializedArgument
  1195. returns:
  1196. value: SerializedValue
  1197. flags:
  1198. snapshot: true
  1199. pause: true
  1200. addScriptTag:
  1201. title: Add script tag
  1202. parameters:
  1203. url: string?
  1204. content: string?
  1205. type: string?
  1206. returns:
  1207. element: ElementHandle
  1208. flags:
  1209. snapshot: true
  1210. pause: true
  1211. addStyleTag:
  1212. title: Add style tag
  1213. parameters:
  1214. url: string?
  1215. content: string?
  1216. returns:
  1217. element: ElementHandle
  1218. flags:
  1219. snapshot: true
  1220. pause: true
  1221. ariaSnapshot:
  1222. title: Aria snapshot
  1223. group: getter
  1224. parameters:
  1225. mode:
  1226. type: enum?
  1227. literals:
  1228. - ai
  1229. - default
  1230. # When track is present, an incremental snapshot is returned when possible.
  1231. track: string?
  1232. selector: string?
  1233. depth: int?
  1234. boxes: boolean?
  1235. timeout: float
  1236. returns:
  1237. snapshot: string
  1238. blur:
  1239. title: Blur
  1240. parameters:
  1241. selector: string
  1242. strict: boolean?
  1243. timeout: float
  1244. flags:
  1245. slowMo: true
  1246. snapshot: true
  1247. pause: true
  1248. check:
  1249. title: Check
  1250. parameters:
  1251. selector: string
  1252. strict: boolean?
  1253. force: boolean?
  1254. position: Point?
  1255. timeout: float
  1256. trial: boolean?
  1257. flags:
  1258. slowMo: true
  1259. snapshot: true
  1260. pause: true
  1261. input: true
  1262. isAutoWaiting: true
  1263. click:
  1264. title: Click
  1265. parameters:
  1266. selector: string
  1267. strict: boolean?
  1268. force: boolean?
  1269. noWaitAfter: boolean?
  1270. modifiers:
  1271. type: array?
  1272. items:
  1273. type: enum
  1274. literals:
  1275. - Alt
  1276. - Control
  1277. - ControlOrMeta
  1278. - Meta
  1279. - Shift
  1280. position: Point?
  1281. delay: float?
  1282. button:
  1283. type: enum?
  1284. literals:
  1285. - left
  1286. - right
  1287. - middle
  1288. clickCount: int?
  1289. timeout: float
  1290. trial: boolean?
  1291. steps: int?
  1292. flags:
  1293. slowMo: true
  1294. snapshot: true
  1295. pause: true
  1296. input: true
  1297. isAutoWaiting: true
  1298. content:
  1299. title: Get content
  1300. returns:
  1301. value: string
  1302. flags:
  1303. snapshot: true
  1304. pause: true
  1305. dragAndDrop:
  1306. title: Drag and drop
  1307. parameters:
  1308. source: string
  1309. target: string
  1310. force: boolean?
  1311. timeout: float
  1312. trial: boolean?
  1313. sourcePosition: Point?
  1314. targetPosition: Point?
  1315. strict: boolean?
  1316. steps: int?
  1317. flags:
  1318. slowMo: true
  1319. snapshot: true
  1320. pause: true
  1321. input: true
  1322. isAutoWaiting: true
  1323. drop:
  1324. title: Drop files or data onto an element
  1325. parameters:
  1326. selector: string
  1327. strict: boolean?
  1328. position: Point?
  1329. # Only one of payloads, localPaths and streams may be present.
  1330. payloads:
  1331. type: array?
  1332. items:
  1333. type: object
  1334. properties:
  1335. name: string
  1336. mimeType: string?
  1337. buffer: binary
  1338. localPaths:
  1339. type: array?
  1340. items: string
  1341. streams:
  1342. type: array?
  1343. items: WritableStream
  1344. data:
  1345. type: array?
  1346. items:
  1347. type: object
  1348. properties:
  1349. mimeType: string
  1350. value: string
  1351. timeout: float
  1352. flags:
  1353. slowMo: true
  1354. snapshot: true
  1355. pause: true
  1356. input: true
  1357. isAutoWaiting: true
  1358. dblclick:
  1359. title: Double click
  1360. parameters:
  1361. selector: string
  1362. strict: boolean?
  1363. force: boolean?
  1364. modifiers:
  1365. type: array?
  1366. items:
  1367. type: enum
  1368. literals:
  1369. - Alt
  1370. - Control
  1371. - ControlOrMeta
  1372. - Meta
  1373. - Shift
  1374. position: Point?
  1375. delay: float?
  1376. button:
  1377. type: enum?
  1378. literals:
  1379. - left
  1380. - right
  1381. - middle
  1382. timeout: float
  1383. trial: boolean?
  1384. steps: int?
  1385. flags:
  1386. slowMo: true
  1387. snapshot: true
  1388. pause: true
  1389. input: true
  1390. isAutoWaiting: true
  1391. dispatchEvent:
  1392. title: Dispatch "{type}"
  1393. parameters:
  1394. selector: string
  1395. strict: boolean?
  1396. type: string
  1397. eventInit: SerializedArgument
  1398. timeout: float
  1399. flags:
  1400. slowMo: true
  1401. snapshot: true
  1402. pause: true
  1403. evaluateExpression:
  1404. title: Evaluate
  1405. parameters:
  1406. expression: string
  1407. isFunction: boolean?
  1408. arg: SerializedArgument
  1409. returns:
  1410. value: SerializedValue
  1411. flags:
  1412. snapshot: true
  1413. pause: true
  1414. evaluateExpressionHandle:
  1415. title: Evaluate
  1416. parameters:
  1417. expression: string
  1418. isFunction: boolean?
  1419. arg: SerializedArgument
  1420. returns:
  1421. handle: JSHandle
  1422. flags:
  1423. snapshot: true
  1424. pause: true
  1425. fill:
  1426. title: Fill "{value}"
  1427. parameters:
  1428. selector: string
  1429. strict: boolean?
  1430. value: string
  1431. force: boolean?
  1432. timeout: float
  1433. flags:
  1434. slowMo: true
  1435. snapshot: true
  1436. pause: true
  1437. input: true
  1438. isAutoWaiting: true
  1439. focus:
  1440. title: Focus
  1441. parameters:
  1442. selector: string
  1443. strict: boolean?
  1444. timeout: float
  1445. flags:
  1446. slowMo: true
  1447. snapshot: true
  1448. pause: true
  1449. frameElement:
  1450. title: Get frame element
  1451. group: getter
  1452. returns:
  1453. element: ElementHandle
  1454. resolveSelector:
  1455. internal: true
  1456. parameters:
  1457. selector: string
  1458. returns:
  1459. resolvedSelector: string
  1460. highlight:
  1461. internal: true
  1462. parameters:
  1463. selector: string
  1464. style: string?
  1465. hideHighlight:
  1466. internal: true
  1467. parameters:
  1468. selector: string
  1469. getAttribute:
  1470. title: Get attribute "{name}"
  1471. group: getter
  1472. parameters:
  1473. selector: string
  1474. strict: boolean?
  1475. name: string
  1476. timeout: float
  1477. returns:
  1478. value: string?
  1479. flags:
  1480. snapshot: true
  1481. pause: true
  1482. goto:
  1483. title: Navigate to "{url}"
  1484. parameters:
  1485. url: string
  1486. timeout: float
  1487. waitUntil: LifecycleEvent?
  1488. referer: string?
  1489. returns:
  1490. response: Response?
  1491. flags:
  1492. slowMo: true
  1493. snapshot: true
  1494. pause: true
  1495. hover:
  1496. title: Hover
  1497. parameters:
  1498. selector: string
  1499. strict: boolean?
  1500. force: boolean?
  1501. modifiers:
  1502. type: array?
  1503. items:
  1504. type: enum
  1505. literals:
  1506. - Alt
  1507. - Control
  1508. - ControlOrMeta
  1509. - Meta
  1510. - Shift
  1511. position: Point?
  1512. timeout: float
  1513. trial: boolean?
  1514. flags:
  1515. slowMo: true
  1516. snapshot: true
  1517. pause: true
  1518. input: true
  1519. isAutoWaiting: true
  1520. innerHTML:
  1521. title: Get HTML
  1522. group: getter
  1523. parameters:
  1524. selector: string
  1525. strict: boolean?
  1526. timeout: float
  1527. returns:
  1528. value: string
  1529. flags:
  1530. snapshot: true
  1531. pause: true
  1532. innerText:
  1533. title: Get inner text
  1534. group: getter
  1535. parameters:
  1536. selector: string
  1537. strict: boolean?
  1538. timeout: float
  1539. returns:
  1540. value: string
  1541. flags:
  1542. snapshot: true
  1543. pause: true
  1544. inputValue:
  1545. title: Get input value
  1546. group: getter
  1547. parameters:
  1548. selector: string
  1549. strict: boolean?
  1550. timeout: float
  1551. returns:
  1552. value: string
  1553. flags:
  1554. snapshot: true
  1555. pause: true
  1556. isChecked:
  1557. title: Is checked
  1558. group: getter
  1559. parameters:
  1560. selector: string
  1561. strict: boolean?
  1562. timeout: float
  1563. returns:
  1564. value: boolean
  1565. flags:
  1566. snapshot: true
  1567. pause: true
  1568. isDisabled:
  1569. title: Is disabled
  1570. group: getter
  1571. parameters:
  1572. selector: string
  1573. strict: boolean?
  1574. timeout: float
  1575. returns:
  1576. value: boolean
  1577. flags:
  1578. snapshot: true
  1579. pause: true
  1580. isEnabled:
  1581. title: Is enabled
  1582. group: getter
  1583. parameters:
  1584. selector: string
  1585. strict: boolean?
  1586. timeout: float
  1587. returns:
  1588. value: boolean
  1589. flags:
  1590. snapshot: true
  1591. pause: true
  1592. isHidden:
  1593. title: Is hidden
  1594. group: getter
  1595. parameters:
  1596. # Note: compared to other isFoo methods, isHidden is a one-shot operation without a timeout.
  1597. selector: string
  1598. strict: boolean?
  1599. returns:
  1600. value: boolean
  1601. flags:
  1602. snapshot: true
  1603. pause: true
  1604. isVisible:
  1605. title: Is visible
  1606. group: getter
  1607. parameters:
  1608. # Note: compared to other isFoo methods, isVisible is a one-shot operation without a timeout.
  1609. selector: string
  1610. strict: boolean?
  1611. returns:
  1612. value: boolean
  1613. flags:
  1614. snapshot: true
  1615. pause: true
  1616. isEditable:
  1617. title: Is editable
  1618. group: getter
  1619. parameters:
  1620. selector: string
  1621. strict: boolean?
  1622. timeout: float
  1623. returns:
  1624. value: boolean
  1625. flags:
  1626. snapshot: true
  1627. pause: true
  1628. press:
  1629. title: Press "{key}"
  1630. parameters:
  1631. selector: string
  1632. strict: boolean?
  1633. key: string
  1634. delay: float?
  1635. noWaitAfter: boolean?
  1636. timeout: float
  1637. flags:
  1638. slowMo: true
  1639. snapshot: true
  1640. pause: true
  1641. input: true
  1642. isAutoWaiting: true
  1643. querySelector:
  1644. title: Query selector
  1645. parameters:
  1646. selector: string
  1647. strict: boolean?
  1648. returns:
  1649. element: ElementHandle?
  1650. flags:
  1651. snapshot: true
  1652. querySelectorAll:
  1653. title: Query selector all
  1654. parameters:
  1655. selector: string
  1656. returns:
  1657. elements:
  1658. type: array
  1659. items: ElementHandle
  1660. flags:
  1661. snapshot: true
  1662. queryCount:
  1663. title: Query count
  1664. parameters:
  1665. selector: string
  1666. returns:
  1667. value: int
  1668. flags:
  1669. snapshot: true
  1670. pause: true
  1671. selectOption:
  1672. title: Select option
  1673. parameters:
  1674. selector: string
  1675. strict: boolean?
  1676. elements:
  1677. type: array?
  1678. items: ElementHandle
  1679. options:
  1680. type: array?
  1681. items:
  1682. type: object
  1683. properties:
  1684. valueOrLabel: string?
  1685. value: string?
  1686. label: string?
  1687. index: int?
  1688. force: boolean?
  1689. timeout: float
  1690. returns:
  1691. values:
  1692. type: array
  1693. items: string
  1694. flags:
  1695. slowMo: true
  1696. snapshot: true
  1697. pause: true
  1698. input: true
  1699. isAutoWaiting: true
  1700. setContent:
  1701. title: Set content
  1702. parameters:
  1703. html: string
  1704. timeout: float
  1705. waitUntil: LifecycleEvent?
  1706. flags:
  1707. snapshot: true
  1708. pause: true
  1709. setInputFiles:
  1710. title: Set input files
  1711. parameters:
  1712. selector: string
  1713. strict: boolean?
  1714. # Only one of payloads, localPaths and streams should be present.
  1715. payloads:
  1716. type: array?
  1717. items:
  1718. type: object
  1719. properties:
  1720. name: string
  1721. mimeType: string?
  1722. buffer: binary
  1723. localDirectory: string?
  1724. directoryStream: WritableStream?
  1725. localPaths:
  1726. type: array?
  1727. items: string
  1728. streams:
  1729. type: array?
  1730. items: WritableStream
  1731. timeout: float
  1732. flags:
  1733. slowMo: true
  1734. snapshot: true
  1735. pause: true
  1736. input: true
  1737. isAutoWaiting: true
  1738. tap:
  1739. title: Tap
  1740. parameters:
  1741. selector: string
  1742. strict: boolean?
  1743. force: boolean?
  1744. modifiers:
  1745. type: array?
  1746. items:
  1747. type: enum
  1748. literals:
  1749. - Alt
  1750. - Control
  1751. - ControlOrMeta
  1752. - Meta
  1753. - Shift
  1754. position: Point?
  1755. timeout: float
  1756. trial: boolean?
  1757. flags:
  1758. slowMo: true
  1759. snapshot: true
  1760. pause: true
  1761. input: true
  1762. isAutoWaiting: true
  1763. textContent:
  1764. title: Get text content
  1765. group: getter
  1766. parameters:
  1767. selector: string
  1768. strict: boolean?
  1769. timeout: float
  1770. returns:
  1771. value: string?
  1772. flags:
  1773. snapshot: true
  1774. pause: true
  1775. title:
  1776. title: Get page title
  1777. group: getter
  1778. returns:
  1779. value: string
  1780. type:
  1781. title: Type "{text}"
  1782. parameters:
  1783. selector: string
  1784. strict: boolean?
  1785. text: string
  1786. delay: float?
  1787. timeout: float
  1788. flags:
  1789. slowMo: true
  1790. snapshot: true
  1791. pause: true
  1792. input: true
  1793. isAutoWaiting: true
  1794. uncheck:
  1795. title: Uncheck
  1796. parameters:
  1797. selector: string
  1798. strict: boolean?
  1799. force: boolean?
  1800. position: Point?
  1801. timeout: float
  1802. trial: boolean?
  1803. flags:
  1804. slowMo: true
  1805. snapshot: true
  1806. pause: true
  1807. input: true
  1808. isAutoWaiting: true
  1809. waitForTimeout:
  1810. title: Wait for timeout
  1811. parameters:
  1812. waitTimeout: float
  1813. flags:
  1814. snapshot: true
  1815. waitForFunction:
  1816. title: Wait for function
  1817. parameters:
  1818. expression: string
  1819. isFunction: boolean?
  1820. arg: SerializedArgument
  1821. timeout: float
  1822. # When present, polls on interval. Otherwise, polls on raf.
  1823. pollingInterval: float?
  1824. returns:
  1825. handle: JSHandle
  1826. flags:
  1827. snapshot: true
  1828. pause: true
  1829. waitForSelector:
  1830. title: Wait for selector
  1831. parameters:
  1832. selector: string
  1833. strict: boolean?
  1834. timeout: float
  1835. state:
  1836. type: enum?
  1837. literals:
  1838. - attached
  1839. - detached
  1840. - visible
  1841. - hidden
  1842. omitReturnValue: boolean?
  1843. returns:
  1844. element: ElementHandle?
  1845. flags:
  1846. snapshot: true
  1847. expect:
  1848. title: Expect "{expression}"
  1849. parameters:
  1850. selector: string?
  1851. expression: string
  1852. expressionArg: json?
  1853. pseudo:
  1854. type: enum?
  1855. literals:
  1856. - before
  1857. - after
  1858. expectedText:
  1859. type: array?
  1860. items: ExpectedTextValue
  1861. expectedNumber: float?
  1862. expectedValue: SerializedArgument?
  1863. useInnerText: boolean?
  1864. isNot: boolean
  1865. timeout: float
  1866. returns:
  1867. matches: boolean
  1868. received:
  1869. type: object?
  1870. properties:
  1871. value: SerializedValue?
  1872. ariaSnapshot: string?
  1873. timedOut: boolean?
  1874. errorMessage: string?
  1875. log:
  1876. type: array?
  1877. items: string
  1878. flags:
  1879. snapshot: true
  1880. pause: true
  1881. events:
  1882. loadstate:
  1883. parameters:
  1884. add: LifecycleEvent?
  1885. remove: LifecycleEvent?
  1886. navigated:
  1887. parameters:
  1888. url: string
  1889. name: string
  1890. newDocument:
  1891. type: object?
  1892. properties:
  1893. request: Request?
  1894. error: string?
  1895. # Copyright (c) Microsoft Corporation.
  1896. #
  1897. # Licensed under the Apache License, Version 2.0 (the "License");
  1898. # you may not use this file except in compliance with the License.
  1899. # You may obtain a copy of the License at
  1900. #
  1901. # http://www.apache.org/licenses/LICENSE-2.0
  1902. #
  1903. # Unless required by applicable law or agreed to in writing, software
  1904. # distributed under the License is distributed on an "AS IS" BASIS,
  1905. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1906. # See the License for the specific language governing permissions and
  1907. # limitations under the License.
  1908. JSHandle:
  1909. type: interface
  1910. initializer:
  1911. preview: string
  1912. commands:
  1913. dispose:
  1914. internal: true
  1915. evaluateExpression:
  1916. title: Evaluate
  1917. parameters:
  1918. expression: string
  1919. isFunction: boolean?
  1920. arg: SerializedArgument
  1921. returns:
  1922. value: SerializedValue
  1923. flags:
  1924. snapshot: true
  1925. pause: true
  1926. evaluateExpressionHandle:
  1927. title: Evaluate
  1928. parameters:
  1929. expression: string
  1930. isFunction: boolean?
  1931. arg: SerializedArgument
  1932. returns:
  1933. handle: JSHandle
  1934. flags:
  1935. snapshot: true
  1936. pause: true
  1937. getPropertyList:
  1938. title: Get property list
  1939. group: getter
  1940. returns:
  1941. properties:
  1942. type: array
  1943. items:
  1944. type: object
  1945. properties:
  1946. name: string
  1947. value: JSHandle
  1948. getProperty:
  1949. title: Get JS property
  1950. group: getter
  1951. parameters:
  1952. name: string
  1953. returns:
  1954. handle: JSHandle
  1955. jsonValue:
  1956. title: Get JSON value
  1957. group: getter
  1958. returns:
  1959. value: SerializedValue
  1960. events:
  1961. previewUpdated:
  1962. parameters:
  1963. preview: string
  1964. ElementHandle:
  1965. type: interface
  1966. extends: JSHandle
  1967. commands:
  1968. evalOnSelector:
  1969. title: Evaluate
  1970. parameters:
  1971. selector: string
  1972. strict: boolean?
  1973. expression: string
  1974. isFunction: boolean?
  1975. arg: SerializedArgument
  1976. returns:
  1977. value: SerializedValue
  1978. flags:
  1979. snapshot: true
  1980. pause: true
  1981. evalOnSelectorAll:
  1982. title: Evaluate
  1983. parameters:
  1984. selector: string
  1985. expression: string
  1986. isFunction: boolean?
  1987. arg: SerializedArgument
  1988. returns:
  1989. value: SerializedValue
  1990. flags:
  1991. snapshot: true
  1992. pause: true
  1993. boundingBox:
  1994. title: Get bounding box
  1995. returns:
  1996. value: Rect?
  1997. flags:
  1998. snapshot: true
  1999. pause: true
  2000. check:
  2001. title: Check
  2002. parameters:
  2003. force: boolean?
  2004. position: Point?
  2005. timeout: float
  2006. trial: boolean?
  2007. flags:
  2008. slowMo: true
  2009. snapshot: true
  2010. pause: true
  2011. input: true
  2012. isAutoWaiting: true
  2013. click:
  2014. title: Click
  2015. parameters:
  2016. force: boolean?
  2017. noWaitAfter: boolean?
  2018. modifiers:
  2019. type: array?
  2020. items:
  2021. type: enum
  2022. literals:
  2023. - Alt
  2024. - Control
  2025. - ControlOrMeta
  2026. - Meta
  2027. - Shift
  2028. position: Point?
  2029. delay: float?
  2030. button:
  2031. type: enum?
  2032. literals:
  2033. - left
  2034. - right
  2035. - middle
  2036. clickCount: int?
  2037. timeout: float
  2038. trial: boolean?
  2039. steps: int?
  2040. flags:
  2041. slowMo: true
  2042. snapshot: true
  2043. pause: true
  2044. input: true
  2045. isAutoWaiting: true
  2046. contentFrame:
  2047. title: Get content frame
  2048. group: getter
  2049. returns:
  2050. frame: Frame?
  2051. dblclick:
  2052. title: Double click
  2053. parameters:
  2054. force: boolean?
  2055. modifiers:
  2056. type: array?
  2057. items:
  2058. type: enum
  2059. literals:
  2060. - Alt
  2061. - Control
  2062. - ControlOrMeta
  2063. - Meta
  2064. - Shift
  2065. position: Point?
  2066. delay: float?
  2067. button:
  2068. type: enum?
  2069. literals:
  2070. - left
  2071. - right
  2072. - middle
  2073. timeout: float
  2074. trial: boolean?
  2075. steps: int?
  2076. flags:
  2077. slowMo: true
  2078. snapshot: true
  2079. pause: true
  2080. input: true
  2081. isAutoWaiting: true
  2082. dispatchEvent:
  2083. title: Dispatch event
  2084. parameters:
  2085. type: string
  2086. eventInit: SerializedArgument
  2087. flags:
  2088. slowMo: true
  2089. snapshot: true
  2090. pause: true
  2091. fill:
  2092. title: Fill "{value}"
  2093. parameters:
  2094. value: string
  2095. force: boolean?
  2096. timeout: float
  2097. flags:
  2098. slowMo: true
  2099. snapshot: true
  2100. pause: true
  2101. input: true
  2102. isAutoWaiting: true
  2103. focus:
  2104. title: Focus
  2105. flags:
  2106. slowMo: true
  2107. snapshot: true
  2108. pause: true
  2109. getAttribute:
  2110. title: Get attribute
  2111. group: getter
  2112. parameters:
  2113. name: string
  2114. returns:
  2115. value: string?
  2116. flags:
  2117. snapshot: true
  2118. pause: true
  2119. hover:
  2120. title: Hover
  2121. parameters:
  2122. force: boolean?
  2123. modifiers:
  2124. type: array?
  2125. items:
  2126. type: enum
  2127. literals:
  2128. - Alt
  2129. - Control
  2130. - ControlOrMeta
  2131. - Meta
  2132. - Shift
  2133. position: Point?
  2134. timeout: float
  2135. trial: boolean?
  2136. flags:
  2137. slowMo: true
  2138. snapshot: true
  2139. pause: true
  2140. input: true
  2141. isAutoWaiting: true
  2142. innerHTML:
  2143. title: Get HTML
  2144. group: getter
  2145. returns:
  2146. value: string
  2147. flags:
  2148. snapshot: true
  2149. pause: true
  2150. innerText:
  2151. title: Get inner text
  2152. group: getter
  2153. returns:
  2154. value: string
  2155. flags:
  2156. snapshot: true
  2157. pause: true
  2158. inputValue:
  2159. title: Get input value
  2160. group: getter
  2161. returns:
  2162. value: string
  2163. flags:
  2164. snapshot: true
  2165. pause: true
  2166. isChecked:
  2167. title: Is checked
  2168. group: getter
  2169. returns:
  2170. value: boolean
  2171. flags:
  2172. snapshot: true
  2173. pause: true
  2174. isDisabled:
  2175. title: Is disabled
  2176. group: getter
  2177. returns:
  2178. value: boolean
  2179. flags:
  2180. snapshot: true
  2181. pause: true
  2182. isEditable:
  2183. title: Is editable
  2184. group: getter
  2185. returns:
  2186. value: boolean
  2187. flags:
  2188. snapshot: true
  2189. pause: true
  2190. isEnabled:
  2191. title: Is enabled
  2192. group: getter
  2193. returns:
  2194. value: boolean
  2195. flags:
  2196. snapshot: true
  2197. pause: true
  2198. isHidden:
  2199. title: Is hidden
  2200. group: getter
  2201. returns:
  2202. value: boolean
  2203. flags:
  2204. snapshot: true
  2205. pause: true
  2206. isVisible:
  2207. title: Is visible
  2208. group: getter
  2209. returns:
  2210. value: boolean
  2211. flags:
  2212. snapshot: true
  2213. pause: true
  2214. ownerFrame:
  2215. title: Get owner frame
  2216. group: getter
  2217. returns:
  2218. frame: Frame?
  2219. press:
  2220. title: Press "{key}"
  2221. parameters:
  2222. key: string
  2223. delay: float?
  2224. timeout: float
  2225. noWaitAfter: boolean?
  2226. flags:
  2227. slowMo: true
  2228. snapshot: true
  2229. pause: true
  2230. input: true
  2231. isAutoWaiting: true
  2232. querySelector:
  2233. title: Query selector
  2234. parameters:
  2235. selector: string
  2236. strict: boolean?
  2237. returns:
  2238. element: ElementHandle?
  2239. flags:
  2240. snapshot: true
  2241. querySelectorAll:
  2242. title: Query selector all
  2243. parameters:
  2244. selector: string
  2245. returns:
  2246. elements:
  2247. type: array
  2248. items: ElementHandle
  2249. flags:
  2250. snapshot: true
  2251. screenshot:
  2252. title: Screenshot
  2253. parameters:
  2254. timeout: float
  2255. type:
  2256. type: enum?
  2257. literals:
  2258. - png
  2259. - jpeg
  2260. quality: int?
  2261. $mixin: CommonScreenshotOptions
  2262. returns:
  2263. binary: binary
  2264. flags:
  2265. snapshot: true
  2266. pause: true
  2267. scrollIntoViewIfNeeded:
  2268. title: Scroll into view
  2269. parameters:
  2270. timeout: float
  2271. flags:
  2272. slowMo: true
  2273. snapshot: true
  2274. pause: true
  2275. selectOption:
  2276. title: Select option
  2277. parameters:
  2278. elements:
  2279. type: array?
  2280. items: ElementHandle
  2281. options:
  2282. type: array?
  2283. items:
  2284. type: object
  2285. properties:
  2286. valueOrLabel: string?
  2287. value: string?
  2288. label: string?
  2289. index: int?
  2290. force: boolean?
  2291. timeout: float
  2292. returns:
  2293. values:
  2294. type: array
  2295. items: string
  2296. flags:
  2297. slowMo: true
  2298. snapshot: true
  2299. pause: true
  2300. input: true
  2301. isAutoWaiting: true
  2302. selectText:
  2303. title: Select text
  2304. parameters:
  2305. force: boolean?
  2306. timeout: float
  2307. flags:
  2308. slowMo: true
  2309. snapshot: true
  2310. pause: true
  2311. setInputFiles:
  2312. title: Set input files
  2313. parameters:
  2314. # Only one of payloads, localPaths and streams should be present.
  2315. payloads:
  2316. type: array?
  2317. items:
  2318. type: object
  2319. properties:
  2320. name: string
  2321. mimeType: string?
  2322. buffer: binary
  2323. localDirectory: string?
  2324. directoryStream: WritableStream?
  2325. localPaths:
  2326. type: array?
  2327. items: string
  2328. streams:
  2329. type: array?
  2330. items: WritableStream
  2331. timeout: float
  2332. flags:
  2333. slowMo: true
  2334. snapshot: true
  2335. pause: true
  2336. input: true
  2337. isAutoWaiting: true
  2338. tap:
  2339. title: Tap
  2340. parameters:
  2341. force: boolean?
  2342. modifiers:
  2343. type: array?
  2344. items:
  2345. type: enum
  2346. literals:
  2347. - Alt
  2348. - Control
  2349. - ControlOrMeta
  2350. - Meta
  2351. - Shift
  2352. position: Point?
  2353. timeout: float
  2354. trial: boolean?
  2355. flags:
  2356. slowMo: true
  2357. snapshot: true
  2358. pause: true
  2359. input: true
  2360. isAutoWaiting: true
  2361. textContent:
  2362. title: Get text content
  2363. group: getter
  2364. returns:
  2365. value: string?
  2366. flags:
  2367. snapshot: true
  2368. pause: true
  2369. type:
  2370. title: Type
  2371. parameters:
  2372. text: string
  2373. delay: float?
  2374. timeout: float
  2375. flags:
  2376. slowMo: true
  2377. snapshot: true
  2378. pause: true
  2379. input: true
  2380. isAutoWaiting: true
  2381. uncheck:
  2382. title: Uncheck
  2383. parameters:
  2384. force: boolean?
  2385. position: Point?
  2386. timeout: float
  2387. trial: boolean?
  2388. flags:
  2389. slowMo: true
  2390. snapshot: true
  2391. pause: true
  2392. input: true
  2393. isAutoWaiting: true
  2394. waitForElementState:
  2395. title: Wait for state
  2396. parameters:
  2397. state:
  2398. type: enum
  2399. literals:
  2400. - visible
  2401. - hidden
  2402. - stable
  2403. - enabled
  2404. - disabled
  2405. - editable
  2406. timeout: float
  2407. flags:
  2408. snapshot: true
  2409. pause: true
  2410. waitForSelector:
  2411. title: Wait for selector
  2412. parameters:
  2413. selector: string
  2414. strict: boolean?
  2415. timeout: float
  2416. state:
  2417. type: enum?
  2418. literals:
  2419. - attached
  2420. - detached
  2421. - visible
  2422. - hidden
  2423. returns:
  2424. element: ElementHandle?
  2425. flags:
  2426. snapshot: true
  2427. # Copyright (c) Microsoft Corporation.
  2428. #
  2429. # Licensed under the Apache License, Version 2.0 (the "License");
  2430. # you may not use this file except in compliance with the License.
  2431. # You may obtain a copy of the License at
  2432. #
  2433. # http://www.apache.org/licenses/LICENSE-2.0
  2434. #
  2435. # Unless required by applicable law or agreed to in writing, software
  2436. # distributed under the License is distributed on an "AS IS" BASIS,
  2437. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2438. # See the License for the specific language governing permissions and
  2439. # limitations under the License.
  2440. LocalUtils:
  2441. type: interface
  2442. initializer:
  2443. deviceDescriptors:
  2444. type: array
  2445. items:
  2446. type: object
  2447. properties:
  2448. name: string
  2449. descriptor:
  2450. type: object
  2451. properties:
  2452. userAgent: string
  2453. viewport:
  2454. type: object
  2455. properties:
  2456. width: int
  2457. height: int
  2458. screen:
  2459. type: object?
  2460. properties:
  2461. width: int
  2462. height: int
  2463. deviceScaleFactor: float
  2464. isMobile: boolean
  2465. hasTouch: boolean
  2466. defaultBrowserType:
  2467. type: enum
  2468. literals:
  2469. - chromium
  2470. - firefox
  2471. - webkit
  2472. commands:
  2473. zip:
  2474. internal: true
  2475. parameters:
  2476. zipFile: string
  2477. entries:
  2478. type: array
  2479. items: NameValue
  2480. stacksId: string?
  2481. mode:
  2482. type: enum
  2483. literals:
  2484. - write
  2485. - append
  2486. includeSources: boolean
  2487. additionalSources:
  2488. type: array?
  2489. items: string
  2490. harOpen:
  2491. internal: true
  2492. parameters:
  2493. file: string
  2494. returns:
  2495. harId: string?
  2496. error: string?
  2497. harLookup:
  2498. internal: true
  2499. parameters:
  2500. harId: string
  2501. url: string
  2502. method: string
  2503. headers:
  2504. type: array
  2505. items: NameValue
  2506. postData: binary?
  2507. isNavigationRequest: boolean
  2508. returns:
  2509. action:
  2510. type: enum
  2511. literals:
  2512. - error
  2513. - redirect
  2514. - fulfill
  2515. - noentry
  2516. message: string?
  2517. redirectURL: string?
  2518. status: int?
  2519. headers:
  2520. type: array?
  2521. items: NameValue
  2522. body: binary?
  2523. harClose:
  2524. internal: true
  2525. parameters:
  2526. harId: string
  2527. harUnzip:
  2528. internal: true
  2529. parameters:
  2530. zipFile: string
  2531. harFile: string
  2532. resourcesDir: string?
  2533. connect:
  2534. internal: true
  2535. parameters:
  2536. endpoint: string
  2537. headers: json?
  2538. exposeNetwork: string?
  2539. slowMo: float?
  2540. timeout: float
  2541. socksProxyRedirectPortForTest: int?
  2542. returns:
  2543. pipe: JsonPipe
  2544. headers:
  2545. type: array
  2546. items: NameValue
  2547. tracingStarted:
  2548. internal: true
  2549. parameters:
  2550. tracesDir: string?
  2551. traceName: string
  2552. live: boolean?
  2553. returns:
  2554. stacksId: string
  2555. addStackToTracingNoReply:
  2556. internal: true
  2557. parameters:
  2558. callData: ClientSideCallMetadata
  2559. traceDiscarded:
  2560. internal: true
  2561. parameters:
  2562. stacksId: string
  2563. globToRegex:
  2564. internal: true
  2565. parameters:
  2566. glob: string
  2567. baseURL: string?
  2568. webSocketUrl: boolean?
  2569. returns:
  2570. regex: string
  2571. # Copyright (c) Microsoft Corporation.
  2572. #
  2573. # Licensed under the Apache License, Version 2.0 (the "License");
  2574. # you may not use this file except in compliance with the License.
  2575. # You may obtain a copy of the License at
  2576. #
  2577. # http://www.apache.org/licenses/LICENSE-2.0
  2578. #
  2579. # Unless required by applicable law or agreed to in writing, software
  2580. # distributed under the License is distributed on an "AS IS" BASIS,
  2581. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2582. # See the License for the specific language governing permissions and
  2583. # limitations under the License.
  2584. ShowActionsOptions:
  2585. type: mixin
  2586. properties:
  2587. duration: float?
  2588. position:
  2589. type: enum?
  2590. literals:
  2591. - top-left
  2592. - top
  2593. - top-right
  2594. - bottom-left
  2595. - bottom
  2596. - bottom-right
  2597. fontSize: int?
  2598. CommonScreenshotOptions:
  2599. type: mixin
  2600. properties:
  2601. omitBackground: boolean?
  2602. caret:
  2603. type: enum?
  2604. literals:
  2605. - hide
  2606. - initial
  2607. animations:
  2608. type: enum?
  2609. literals:
  2610. - disabled
  2611. - allow
  2612. scale:
  2613. type: enum?
  2614. literals:
  2615. - css
  2616. - device
  2617. mask:
  2618. type: array?
  2619. items:
  2620. type: object
  2621. properties:
  2622. frame: Frame
  2623. selector: string
  2624. maskColor: string?
  2625. style: string?
  2626. LaunchOptions:
  2627. type: mixin
  2628. properties:
  2629. channel: string?
  2630. executablePath: string?
  2631. args:
  2632. type: array?
  2633. items: string
  2634. ignoreAllDefaultArgs: boolean?
  2635. ignoreDefaultArgs:
  2636. type: array?
  2637. items: string
  2638. handleSIGINT: boolean?
  2639. handleSIGTERM: boolean?
  2640. handleSIGHUP: boolean?
  2641. timeout: float
  2642. env:
  2643. type: array?
  2644. items: NameValue
  2645. headless: boolean?
  2646. proxy:
  2647. type: object?
  2648. properties:
  2649. server: string
  2650. bypass: string?
  2651. username: string?
  2652. password: string?
  2653. downloadsPath: string?
  2654. tracesDir: string?
  2655. artifactsDir: string?
  2656. chromiumSandbox: boolean?
  2657. firefoxUserPrefs: json?
  2658. cdpPort: int?
  2659. ContextOptions:
  2660. type: mixin
  2661. properties:
  2662. noDefaultViewport: boolean?
  2663. viewport:
  2664. type: object?
  2665. properties:
  2666. width: int
  2667. height: int
  2668. screen:
  2669. type: object?
  2670. properties:
  2671. width: int
  2672. height: int
  2673. ignoreHTTPSErrors: boolean?
  2674. clientCertificates:
  2675. type: array?
  2676. items:
  2677. type: object
  2678. properties:
  2679. origin: string
  2680. cert: binary?
  2681. key: binary?
  2682. passphrase: string?
  2683. pfx: binary?
  2684. javaScriptEnabled: boolean?
  2685. bypassCSP: boolean?
  2686. userAgent: string?
  2687. locale: string?
  2688. timezoneId: string?
  2689. geolocation:
  2690. type: object?
  2691. properties:
  2692. longitude: float
  2693. latitude: float
  2694. accuracy: float?
  2695. permissions:
  2696. type: array?
  2697. items: string
  2698. extraHTTPHeaders:
  2699. type: array?
  2700. items: NameValue
  2701. offline: boolean?
  2702. httpCredentials:
  2703. type: object?
  2704. properties:
  2705. username: string
  2706. password: string
  2707. origin: string?
  2708. send:
  2709. type: enum?
  2710. literals:
  2711. - always
  2712. - unauthorized
  2713. deviceScaleFactor: float?
  2714. isMobile: boolean?
  2715. hasTouch: boolean?
  2716. colorScheme:
  2717. type: enum?
  2718. literals:
  2719. - dark
  2720. - light
  2721. - no-preference
  2722. - no-override
  2723. reducedMotion:
  2724. type: enum?
  2725. literals:
  2726. - reduce
  2727. - no-preference
  2728. - no-override
  2729. forcedColors:
  2730. type: enum?
  2731. literals:
  2732. - active
  2733. - none
  2734. - no-override
  2735. acceptDownloads:
  2736. type: enum?
  2737. literals:
  2738. - accept
  2739. - deny
  2740. - internal-browser-default
  2741. contrast:
  2742. type: enum?
  2743. literals:
  2744. - no-preference
  2745. - more
  2746. - no-override
  2747. baseURL: string?
  2748. recordVideo:
  2749. type: object?
  2750. properties:
  2751. dir: string?
  2752. size:
  2753. type: object?
  2754. properties:
  2755. width: int
  2756. height: int
  2757. showActions:
  2758. type: object?
  2759. properties:
  2760. $mixin: ShowActionsOptions
  2761. strictSelectors: boolean?
  2762. serviceWorkers:
  2763. type: enum?
  2764. literals:
  2765. - allow
  2766. - block
  2767. selectorEngines:
  2768. type: array?
  2769. items: SelectorEngine
  2770. testIdAttributeName: string?
  2771. ConsoleMessage:
  2772. type: mixin
  2773. properties:
  2774. type: string
  2775. text: string
  2776. args:
  2777. type: array
  2778. items: JSHandle
  2779. location:
  2780. type: object
  2781. properties:
  2782. url: string
  2783. lineNumber: int
  2784. columnNumber: int
  2785. timestamp: float
  2786. # Copyright (c) Microsoft Corporation.
  2787. #
  2788. # Licensed under the Apache License, Version 2.0 (the "License");
  2789. # you may not use this file except in compliance with the License.
  2790. # You may obtain a copy of the License at
  2791. #
  2792. # http://www.apache.org/licenses/LICENSE-2.0
  2793. #
  2794. # Unless required by applicable law or agreed to in writing, software
  2795. # distributed under the License is distributed on an "AS IS" BASIS,
  2796. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  2797. # See the License for the specific language governing permissions and
  2798. # limitations under the License.
  2799. SetNetworkCookie:
  2800. type: object
  2801. properties:
  2802. name: string
  2803. value: string
  2804. url: string?
  2805. domain: string?
  2806. path: string?
  2807. expires: float?
  2808. httpOnly: boolean?
  2809. secure: boolean?
  2810. sameSite:
  2811. type: enum?
  2812. literals:
  2813. - Strict
  2814. - Lax
  2815. - None
  2816. partitionKey: string?
  2817. _crHasCrossSiteAncestor: boolean?
  2818. NetworkCookie:
  2819. type: object
  2820. properties:
  2821. name: string
  2822. value: string
  2823. domain: string
  2824. path: string
  2825. expires: float
  2826. httpOnly: boolean
  2827. secure: boolean
  2828. sameSite:
  2829. type: enum
  2830. literals:
  2831. - Strict
  2832. - Lax
  2833. - None
  2834. partitionKey: string?
  2835. _crHasCrossSiteAncestor: boolean?
  2836. Request:
  2837. type: interface
  2838. initializer:
  2839. frame: Frame?
  2840. serviceWorker: Worker?
  2841. url: string
  2842. resourceType: string
  2843. method: string
  2844. postData: binary?
  2845. headers:
  2846. type: array
  2847. items: NameValue
  2848. isNavigationRequest: boolean
  2849. redirectedFrom: Request?
  2850. commands:
  2851. response:
  2852. internal: true
  2853. returns:
  2854. response: Response?
  2855. rawRequestHeaders:
  2856. internal: true
  2857. returns:
  2858. headers:
  2859. type: array
  2860. items: NameValue
  2861. Route:
  2862. type: interface
  2863. initializer:
  2864. request: Request
  2865. commands:
  2866. redirectNavigationRequest:
  2867. internal: true
  2868. parameters:
  2869. url: string
  2870. abort:
  2871. title: Abort request
  2872. group: route
  2873. parameters:
  2874. errorCode: string?
  2875. continue:
  2876. title: Continue request
  2877. group: route
  2878. parameters:
  2879. url: string?
  2880. method: string?
  2881. headers:
  2882. type: array?
  2883. items: NameValue
  2884. postData: binary?
  2885. isFallback: boolean
  2886. fulfill:
  2887. title: Fulfill request
  2888. group: route
  2889. parameters:
  2890. # default is 200
  2891. status: int?
  2892. headers:
  2893. type: array?
  2894. items: NameValue
  2895. body: string?
  2896. isBase64: boolean?
  2897. fetchResponseUid: string?
  2898. WebSocketRoute:
  2899. type: interface
  2900. initializer:
  2901. url: string
  2902. protocols:
  2903. type: array
  2904. items: string
  2905. commands:
  2906. connect:
  2907. title: Connect WebSocket to server
  2908. group: route
  2909. ensureOpened:
  2910. internal: true
  2911. sendToPage:
  2912. title: Send WebSocket message
  2913. group: route
  2914. parameters:
  2915. message: string
  2916. isBase64: boolean
  2917. sendToServer:
  2918. title: Send WebSocket message
  2919. group: route
  2920. parameters:
  2921. message: string
  2922. isBase64: boolean
  2923. closePage:
  2924. internal: true
  2925. parameters:
  2926. code: int?
  2927. reason: string?
  2928. wasClean: boolean
  2929. closeServer:
  2930. internal: true
  2931. parameters:
  2932. code: int?
  2933. reason: string?
  2934. wasClean: boolean
  2935. events:
  2936. messageFromPage:
  2937. parameters:
  2938. message: string
  2939. isBase64: boolean
  2940. messageFromServer:
  2941. parameters:
  2942. message: string
  2943. isBase64: boolean
  2944. closePage:
  2945. parameters:
  2946. code: int?
  2947. reason: string?
  2948. wasClean: boolean
  2949. closeServer:
  2950. parameters:
  2951. code: int?
  2952. reason: string?
  2953. wasClean: boolean
  2954. ResourceTiming:
  2955. type: object
  2956. properties:
  2957. startTime: float
  2958. domainLookupStart: float
  2959. domainLookupEnd: float
  2960. connectStart: float
  2961. secureConnectionStart: float
  2962. connectEnd: float
  2963. requestStart: float
  2964. responseStart: float
  2965. Response:
  2966. type: interface
  2967. initializer:
  2968. request: Request
  2969. url: string
  2970. status: int
  2971. statusText: string
  2972. headers:
  2973. type: array
  2974. items: NameValue
  2975. timing: ResourceTiming
  2976. fromServiceWorker: boolean
  2977. commands:
  2978. body:
  2979. title: Get response body
  2980. group: getter
  2981. returns:
  2982. binary: binary
  2983. securityDetails:
  2984. internal: true
  2985. returns:
  2986. value: SecurityDetails?
  2987. serverAddr:
  2988. internal: true
  2989. returns:
  2990. value: RemoteAddr?
  2991. rawResponseHeaders:
  2992. internal: true
  2993. returns:
  2994. headers:
  2995. type: array
  2996. items: NameValue
  2997. httpVersion:
  2998. internal: true
  2999. returns:
  3000. value: string
  3001. sizes:
  3002. internal: true
  3003. returns:
  3004. sizes: RequestSizes
  3005. SecurityDetails:
  3006. type: object
  3007. properties:
  3008. issuer: string?
  3009. protocol: string?
  3010. subjectName: string?
  3011. validFrom: float?
  3012. validTo: float?
  3013. RequestSizes:
  3014. type: object
  3015. properties:
  3016. requestBodySize: int
  3017. requestHeadersSize: int
  3018. responseBodySize: int
  3019. responseHeadersSize: int
  3020. RemoteAddr:
  3021. type: object
  3022. properties:
  3023. ipAddress: string
  3024. port: int
  3025. WebSocket:
  3026. type: interface
  3027. extends: EventTarget
  3028. initializer:
  3029. url: string
  3030. events:
  3031. open:
  3032. frameSent:
  3033. parameters:
  3034. opcode: int
  3035. data: string
  3036. frameReceived:
  3037. parameters:
  3038. opcode: int
  3039. data: string
  3040. socketError:
  3041. parameters:
  3042. error: string
  3043. close:
  3044. # Copyright (c) Microsoft Corporation.
  3045. #
  3046. # Licensed under the Apache License, Version 2.0 (the "License");
  3047. # you may not use this file except in compliance with the License.
  3048. # You may obtain a copy of the License at
  3049. #
  3050. # http://www.apache.org/licenses/LICENSE-2.0
  3051. #
  3052. # Unless required by applicable law or agreed to in writing, software
  3053. # distributed under the License is distributed on an "AS IS" BASIS,
  3054. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  3055. # See the License for the specific language governing permissions and
  3056. # limitations under the License.
  3057. Page:
  3058. type: interface
  3059. extends: EventTarget
  3060. initializer:
  3061. mainFrame: Frame
  3062. viewportSize:
  3063. type: object?
  3064. properties:
  3065. width: int
  3066. height: int
  3067. isClosed: boolean
  3068. opener: Page?
  3069. video: Artifact?
  3070. commands:
  3071. addInitScript:
  3072. title: Add init script
  3073. group: configuration
  3074. parameters:
  3075. source: string
  3076. returns:
  3077. disposable: Disposable
  3078. close:
  3079. title: Close page
  3080. parameters:
  3081. runBeforeUnload: boolean?
  3082. reason: string?
  3083. flags:
  3084. pause: true
  3085. clearConsoleMessages:
  3086. title: Clear console messages
  3087. consoleMessages:
  3088. title: Get console messages
  3089. group: getter
  3090. parameters:
  3091. filter: ConsoleMessagesFilter?
  3092. returns:
  3093. messages:
  3094. type: array
  3095. items:
  3096. type: object
  3097. properties:
  3098. $mixin: ConsoleMessage
  3099. emulateMedia:
  3100. title: Emulate media
  3101. parameters:
  3102. media:
  3103. type: enum?
  3104. literals:
  3105. - screen
  3106. - print
  3107. - no-override
  3108. colorScheme:
  3109. type: enum?
  3110. literals:
  3111. - dark
  3112. - light
  3113. - no-preference
  3114. - no-override
  3115. reducedMotion:
  3116. type: enum?
  3117. literals:
  3118. - reduce
  3119. - no-preference
  3120. - no-override
  3121. forcedColors:
  3122. type: enum?
  3123. literals:
  3124. - active
  3125. - none
  3126. - no-override
  3127. contrast:
  3128. type: enum?
  3129. literals:
  3130. - no-preference
  3131. - more
  3132. - no-override
  3133. flags:
  3134. snapshot: true
  3135. pause: true
  3136. exposeBinding:
  3137. title: Expose binding
  3138. group: configuration
  3139. parameters:
  3140. name: string
  3141. returns:
  3142. disposable: Disposable
  3143. goBack:
  3144. title: Go back
  3145. parameters:
  3146. timeout: float
  3147. waitUntil: LifecycleEvent?
  3148. returns:
  3149. response: Response?
  3150. flags:
  3151. slowMo: true
  3152. snapshot: true
  3153. pause: true
  3154. goForward:
  3155. title: Go forward
  3156. parameters:
  3157. timeout: float
  3158. waitUntil: LifecycleEvent?
  3159. returns:
  3160. response: Response?
  3161. flags:
  3162. slowMo: true
  3163. snapshot: true
  3164. pause: true
  3165. requestGC:
  3166. title: Request garbage collection
  3167. group: configuration
  3168. registerLocatorHandler:
  3169. title: Register locator handler
  3170. parameters:
  3171. selector: string
  3172. noWaitAfter: boolean?
  3173. returns:
  3174. uid: int
  3175. resolveLocatorHandlerNoReply:
  3176. internal: true
  3177. parameters:
  3178. uid: int
  3179. remove: boolean?
  3180. unregisterLocatorHandler:
  3181. title: Unregister locator handler
  3182. parameters:
  3183. uid: int
  3184. reload:
  3185. title: Reload
  3186. parameters:
  3187. timeout: float
  3188. waitUntil: LifecycleEvent?
  3189. returns:
  3190. response: Response?
  3191. flags:
  3192. slowMo: true
  3193. snapshot: true
  3194. pause: true
  3195. expectScreenshot:
  3196. title: Expect screenshot
  3197. parameters:
  3198. expected: binary?
  3199. timeout: float
  3200. isNot: boolean
  3201. locator:
  3202. type: object?
  3203. properties:
  3204. frame: Frame
  3205. selector: string
  3206. comparator: string?
  3207. maxDiffPixels: int?
  3208. maxDiffPixelRatio: float?
  3209. threshold: float?
  3210. fullPage: boolean?
  3211. clip: Rect?
  3212. $mixin: CommonScreenshotOptions
  3213. returns:
  3214. diff: binary?
  3215. errorMessage: string?
  3216. actual: binary?
  3217. previous: binary?
  3218. timedOut: boolean?
  3219. log:
  3220. type: array?
  3221. items: string
  3222. flags:
  3223. snapshot: true
  3224. pause: true
  3225. screenshot:
  3226. title: Screenshot
  3227. parameters:
  3228. timeout: float
  3229. type:
  3230. type: enum?
  3231. literals:
  3232. - png
  3233. - jpeg
  3234. quality: int?
  3235. fullPage: boolean?
  3236. clip: Rect?
  3237. $mixin: CommonScreenshotOptions
  3238. returns:
  3239. binary: binary
  3240. flags:
  3241. snapshot: true
  3242. pause: true
  3243. setExtraHTTPHeaders:
  3244. title: Set extra HTTP headers
  3245. group: configuration
  3246. parameters:
  3247. headers:
  3248. type: array
  3249. items: NameValue
  3250. setNetworkInterceptionPatterns:
  3251. title: Route requests
  3252. group: route
  3253. parameters:
  3254. patterns:
  3255. type: array
  3256. items:
  3257. type: object
  3258. properties:
  3259. glob: string?
  3260. regexSource: string?
  3261. regexFlags: string?
  3262. urlPattern: URLPattern?
  3263. setWebSocketInterceptionPatterns:
  3264. title: Route WebSockets
  3265. group: route
  3266. parameters:
  3267. patterns:
  3268. type: array
  3269. items:
  3270. type: object
  3271. properties:
  3272. glob: string?
  3273. regexSource: string?
  3274. regexFlags: string?
  3275. urlPattern: URLPattern?
  3276. setViewportSize:
  3277. title: Set viewport size
  3278. parameters:
  3279. viewportSize:
  3280. type: object
  3281. properties:
  3282. width: int
  3283. height: int
  3284. flags:
  3285. snapshot: true
  3286. pause: true
  3287. keyboardDown:
  3288. title: Key down "{key}"
  3289. parameters:
  3290. key: string
  3291. flags:
  3292. slowMo: true
  3293. snapshot: true
  3294. pause: true
  3295. input: true
  3296. keyboardUp:
  3297. title: Key up "{key}"
  3298. parameters:
  3299. key: string
  3300. flags:
  3301. slowMo: true
  3302. snapshot: true
  3303. pause: true
  3304. input: true
  3305. keyboardInsertText:
  3306. title: Insert "{text}"
  3307. parameters:
  3308. text: string
  3309. flags:
  3310. slowMo: true
  3311. snapshot: true
  3312. pause: true
  3313. input: true
  3314. keyboardType:
  3315. title: Type "{text}"
  3316. parameters:
  3317. text: string
  3318. delay: float?
  3319. flags:
  3320. slowMo: true
  3321. snapshot: true
  3322. pause: true
  3323. input: true
  3324. keyboardPress:
  3325. title: Press "{key}"
  3326. parameters:
  3327. key: string
  3328. delay: float?
  3329. flags:
  3330. slowMo: true
  3331. snapshot: true
  3332. pause: true
  3333. input: true
  3334. mouseMove:
  3335. title: Mouse move
  3336. parameters:
  3337. x: float
  3338. y: float
  3339. steps: int?
  3340. flags:
  3341. slowMo: true
  3342. snapshot: true
  3343. pause: true
  3344. input: true
  3345. mouseDown:
  3346. title: Mouse down
  3347. parameters:
  3348. button:
  3349. type: enum?
  3350. literals:
  3351. - left
  3352. - right
  3353. - middle
  3354. clickCount: int?
  3355. flags:
  3356. slowMo: true
  3357. snapshot: true
  3358. pause: true
  3359. input: true
  3360. mouseUp:
  3361. title: Mouse up
  3362. parameters:
  3363. button:
  3364. type: enum?
  3365. literals:
  3366. - left
  3367. - right
  3368. - middle
  3369. clickCount: int?
  3370. flags:
  3371. slowMo: true
  3372. snapshot: true
  3373. pause: true
  3374. input: true
  3375. mouseClick:
  3376. title: Click
  3377. parameters:
  3378. x: float
  3379. y: float
  3380. delay: float?
  3381. button:
  3382. type: enum?
  3383. literals:
  3384. - left
  3385. - right
  3386. - middle
  3387. clickCount: int?
  3388. flags:
  3389. slowMo: true
  3390. snapshot: true
  3391. pause: true
  3392. input: true
  3393. mouseWheel:
  3394. title: Mouse wheel
  3395. parameters:
  3396. deltaX: float
  3397. deltaY: float
  3398. flags:
  3399. slowMo: true
  3400. snapshot: true
  3401. pause: true
  3402. input: true
  3403. touchscreenTap:
  3404. title: Tap
  3405. parameters:
  3406. x: float
  3407. y: float
  3408. flags:
  3409. slowMo: true
  3410. snapshot: true
  3411. pause: true
  3412. input: true
  3413. clearPageErrors:
  3414. title: Clear page errors
  3415. pageErrors:
  3416. title: Get page errors
  3417. group: getter
  3418. parameters:
  3419. filter: ConsoleMessagesFilter?
  3420. returns:
  3421. errors:
  3422. type: array
  3423. items: SerializedError
  3424. pdf:
  3425. title: PDF
  3426. parameters:
  3427. scale: float?
  3428. displayHeaderFooter: boolean?
  3429. headerTemplate: string?
  3430. footerTemplate: string?
  3431. printBackground: boolean?
  3432. landscape: boolean?
  3433. pageRanges: string?
  3434. format: string?
  3435. width: string?
  3436. height: string?
  3437. preferCSSPageSize: boolean?
  3438. margin:
  3439. type: object?
  3440. properties:
  3441. top: string?
  3442. bottom: string?
  3443. left: string?
  3444. right: string?
  3445. tagged: boolean?
  3446. outline: boolean?
  3447. returns:
  3448. pdf: binary
  3449. requests:
  3450. title: Get network requests
  3451. group: getter
  3452. returns:
  3453. requests:
  3454. type: array
  3455. items: Request
  3456. startJSCoverage:
  3457. title: Start JS coverage
  3458. group: configuration
  3459. parameters:
  3460. resetOnNavigation: boolean?
  3461. reportAnonymousScripts: boolean?
  3462. stopJSCoverage:
  3463. title: Stop JS coverage
  3464. group: configuration
  3465. returns:
  3466. entries:
  3467. type: array
  3468. items:
  3469. type: object
  3470. properties:
  3471. url: string
  3472. scriptId: string
  3473. source: string?
  3474. functions:
  3475. type: array
  3476. items:
  3477. type: object
  3478. properties:
  3479. functionName: string
  3480. isBlockCoverage: boolean
  3481. ranges:
  3482. type: array
  3483. items:
  3484. type: object
  3485. properties:
  3486. startOffset: int
  3487. endOffset: int
  3488. count: int
  3489. startCSSCoverage:
  3490. title: Start CSS coverage
  3491. group: configuration
  3492. parameters:
  3493. resetOnNavigation: boolean?
  3494. stopCSSCoverage:
  3495. title: Stop CSS coverage
  3496. group: configuration
  3497. returns:
  3498. entries:
  3499. type: array
  3500. items:
  3501. type: object
  3502. properties:
  3503. url: string
  3504. text: string?
  3505. ranges:
  3506. type: array
  3507. items:
  3508. type: object
  3509. properties:
  3510. start: int
  3511. end: int
  3512. bringToFront:
  3513. title: Bring to front
  3514. pickLocator:
  3515. title: Pick locator
  3516. group: configuration
  3517. returns:
  3518. selector: string
  3519. cancelPickLocator:
  3520. title: Cancel pick locator
  3521. group: configuration
  3522. hideHighlight:
  3523. title: Hide all element highlights
  3524. group: configuration
  3525. screencastShowOverlay:
  3526. title: Show overlay
  3527. group: configuration
  3528. parameters:
  3529. html: string
  3530. duration: float?
  3531. returns:
  3532. id: string
  3533. screencastRemoveOverlay:
  3534. title: Remove overlay
  3535. group: configuration
  3536. parameters:
  3537. id: string
  3538. screencastChapter:
  3539. title: Show chapter overlay
  3540. group: configuration
  3541. parameters:
  3542. title: string
  3543. description: string?
  3544. duration: float?
  3545. screencastSetOverlayVisible:
  3546. title: Set overlay visibility
  3547. group: configuration
  3548. parameters:
  3549. visible: boolean
  3550. screencastShowActions:
  3551. title: Show actions
  3552. group: configuration
  3553. parameters:
  3554. $mixin: ShowActionsOptions
  3555. screencastHideActions:
  3556. title: Remove actions
  3557. group: configuration
  3558. screencastStart:
  3559. title: Start screencast
  3560. group: configuration
  3561. parameters:
  3562. size:
  3563. type: object?
  3564. properties:
  3565. width: int
  3566. height: int
  3567. quality: int?
  3568. sendFrames: boolean?
  3569. record: boolean?
  3570. returns:
  3571. artifact: Artifact?
  3572. screencastStop:
  3573. title: Stop screencast
  3574. group: configuration
  3575. updateSubscription:
  3576. internal: true
  3577. parameters:
  3578. event:
  3579. type: enum
  3580. literals:
  3581. - console
  3582. - dialog
  3583. - fileChooser
  3584. - request
  3585. - response
  3586. - requestFinished
  3587. - requestFailed
  3588. enabled: boolean
  3589. setDockTile:
  3590. internal: true
  3591. parameters:
  3592. image: binary
  3593. events:
  3594. bindingCall:
  3595. parameters:
  3596. binding: BindingCall
  3597. close:
  3598. crash:
  3599. download:
  3600. parameters:
  3601. url: string
  3602. suggestedFilename: string
  3603. artifact: Artifact
  3604. viewportSizeChanged:
  3605. parameters:
  3606. viewportSize:
  3607. type: object?
  3608. properties:
  3609. width: int
  3610. height: int
  3611. fileChooser:
  3612. parameters:
  3613. element: ElementHandle
  3614. isMultiple: boolean
  3615. frameAttached:
  3616. parameters:
  3617. frame: Frame
  3618. frameDetached:
  3619. parameters:
  3620. frame: Frame
  3621. locatorHandlerTriggered:
  3622. parameters:
  3623. uid: int
  3624. route:
  3625. parameters:
  3626. route: Route
  3627. screencastFrame:
  3628. parameters:
  3629. data: binary
  3630. viewportWidth: int
  3631. viewportHeight: int
  3632. webSocketRoute:
  3633. parameters:
  3634. webSocketRoute: WebSocketRoute
  3635. webSocket:
  3636. parameters:
  3637. webSocket: WebSocket
  3638. worker:
  3639. parameters:
  3640. worker: Worker
  3641. # Copyright (c) Microsoft Corporation.
  3642. #
  3643. # Licensed under the Apache License, Version 2.0 (the "License");
  3644. # you may not use this file except in compliance with the License.
  3645. # You may obtain a copy of the License at
  3646. #
  3647. # http://www.apache.org/licenses/LICENSE-2.0
  3648. #
  3649. # Unless required by applicable law or agreed to in writing, software
  3650. # distributed under the License is distributed on an "AS IS" BASIS,
  3651. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  3652. # See the License for the specific language governing permissions and
  3653. # limitations under the License.
  3654. Root:
  3655. type: interface
  3656. commands:
  3657. initialize:
  3658. internal: true
  3659. parameters:
  3660. sdkLanguage: SDKLanguage
  3661. returns:
  3662. playwright: Playwright
  3663. Playwright:
  3664. type: interface
  3665. initializer:
  3666. chromium: BrowserType
  3667. firefox: BrowserType
  3668. webkit: BrowserType
  3669. android: Android
  3670. electron: Electron
  3671. utils: LocalUtils?
  3672. # Only present when connecting remotely via BrowserType.connect() method.
  3673. preLaunchedBrowser: Browser?
  3674. # Only present when connecting remotely via Android.connect() method.
  3675. preConnectedAndroidDevice: AndroidDevice?
  3676. # Only present when socks proxy is supported.
  3677. socksSupport: SocksSupport?
  3678. commands:
  3679. newRequest:
  3680. title: Create request context
  3681. parameters:
  3682. baseURL: string?
  3683. userAgent: string?
  3684. ignoreHTTPSErrors: boolean?
  3685. extraHTTPHeaders:
  3686. type: array?
  3687. items: NameValue
  3688. failOnStatusCode: boolean?
  3689. clientCertificates:
  3690. type: array?
  3691. items:
  3692. type: object
  3693. properties:
  3694. origin: string
  3695. cert: binary?
  3696. key: binary?
  3697. passphrase: string?
  3698. pfx: binary?
  3699. maxRedirects: int?
  3700. httpCredentials:
  3701. type: object?
  3702. properties:
  3703. username: string
  3704. password: string
  3705. origin: string?
  3706. send:
  3707. type: enum?
  3708. literals:
  3709. - always
  3710. - unauthorized
  3711. proxy:
  3712. type: object?
  3713. properties:
  3714. server: string
  3715. bypass: string?
  3716. username: string?
  3717. password: string?
  3718. storageState:
  3719. type: object?
  3720. properties:
  3721. cookies:
  3722. type: array?
  3723. items: NetworkCookie
  3724. origins:
  3725. type: array?
  3726. items: SetOriginStorage
  3727. tracesDir: string?
  3728. returns:
  3729. request: APIRequestContext
  3730. DebugController:
  3731. type: interface
  3732. commands:
  3733. initialize:
  3734. internal: true
  3735. parameters:
  3736. codegenId: string
  3737. sdkLanguage: SDKLanguage
  3738. setReportStateChanged:
  3739. internal: true
  3740. parameters:
  3741. enabled: boolean
  3742. setRecorderMode:
  3743. internal: true
  3744. parameters:
  3745. mode:
  3746. type: enum
  3747. literals:
  3748. - inspecting
  3749. - recording
  3750. - none
  3751. testIdAttributeName: string?
  3752. generateAutoExpect: boolean?
  3753. highlight:
  3754. internal: true
  3755. parameters:
  3756. selector: string?
  3757. ariaTemplate: string?
  3758. hideHighlight:
  3759. internal: true
  3760. resume:
  3761. internal: true
  3762. kill:
  3763. internal: true
  3764. events:
  3765. inspectRequested:
  3766. parameters:
  3767. selector: string
  3768. locator: string
  3769. ariaSnapshot: string
  3770. setModeRequested:
  3771. parameters:
  3772. mode: string
  3773. stateChanged:
  3774. parameters:
  3775. pageCount: int
  3776. sourceChanged:
  3777. parameters:
  3778. text: string
  3779. header: string?
  3780. footer: string?
  3781. actions:
  3782. type: array?
  3783. items: string
  3784. paused:
  3785. parameters:
  3786. paused: boolean
  3787. SocksSupport:
  3788. type: interface
  3789. commands:
  3790. socksConnected:
  3791. internal: true
  3792. parameters:
  3793. uid: string
  3794. host: string
  3795. port: int
  3796. socksFailed:
  3797. internal: true
  3798. parameters:
  3799. uid: string
  3800. errorCode: string
  3801. socksData:
  3802. internal: true
  3803. parameters:
  3804. uid: string
  3805. data: binary
  3806. socksError:
  3807. internal: true
  3808. parameters:
  3809. uid: string
  3810. error: string
  3811. socksEnd:
  3812. internal: true
  3813. parameters:
  3814. uid: string
  3815. events:
  3816. socksRequested:
  3817. parameters:
  3818. uid: string
  3819. host: string
  3820. port: int
  3821. socksData:
  3822. parameters:
  3823. uid: string
  3824. data: binary
  3825. socksClosed:
  3826. parameters:
  3827. uid: string
  3828. JsonPipe:
  3829. type: interface
  3830. commands:
  3831. send:
  3832. internal: true
  3833. parameters:
  3834. message: json
  3835. close:
  3836. internal: true
  3837. events:
  3838. message:
  3839. parameters:
  3840. message: json
  3841. closed:
  3842. parameters:
  3843. reason: string?
  3844. ExpectedTextValue:
  3845. type: object
  3846. properties:
  3847. string: string?
  3848. regexSource: string?
  3849. regexFlags: string?
  3850. matchSubstring: boolean?
  3851. ignoreCase: boolean?
  3852. normalizeWhiteSpace: boolean?
  3853. SelectorEngine:
  3854. type: object
  3855. properties:
  3856. name: string
  3857. source: string
  3858. contentScript: boolean?
  3859. FormField:
  3860. type: object
  3861. properties:
  3862. name: string
  3863. value: string?
  3864. file:
  3865. type: object?
  3866. properties:
  3867. name: string
  3868. mimeType: string?
  3869. buffer: binary
  3870. LifecycleEvent:
  3871. type: enum
  3872. literals:
  3873. - load
  3874. - domcontentloaded
  3875. - networkidle
  3876. - commit
  3877. ConsoleMessagesFilter:
  3878. type: enum
  3879. literals:
  3880. - all
  3881. - since-navigation
  3882. RecorderSource:
  3883. type: object
  3884. properties:
  3885. isRecorded: boolean
  3886. id: string
  3887. label: string
  3888. text: string
  3889. language: string
  3890. highlight:
  3891. type: array
  3892. items:
  3893. type: object
  3894. properties:
  3895. line: int
  3896. type: string
  3897. revealLine: int?
  3898. group: string?
  3899. IndexedDBDatabase:
  3900. type: object
  3901. properties:
  3902. name: string
  3903. version: int
  3904. stores:
  3905. type: array
  3906. items:
  3907. type: object
  3908. properties:
  3909. name: string
  3910. autoIncrement: boolean
  3911. keyPath: string?
  3912. keyPathArray:
  3913. type: array?
  3914. items: string
  3915. records:
  3916. type: array
  3917. items:
  3918. type: object
  3919. properties:
  3920. key: json?
  3921. keyEncoded: json?
  3922. value: json?
  3923. valueEncoded: json?
  3924. indexes:
  3925. type: array
  3926. items:
  3927. type: object
  3928. properties:
  3929. name: string
  3930. keyPath: string?
  3931. keyPathArray:
  3932. type: array?
  3933. items: string
  3934. multiEntry: boolean
  3935. unique: boolean
  3936. SetOriginStorage:
  3937. type: object
  3938. properties:
  3939. origin: string
  3940. localStorage:
  3941. type: array
  3942. items: NameValue
  3943. indexedDB:
  3944. type: array?
  3945. items: IndexedDBDatabase
  3946. OriginStorage:
  3947. type: object
  3948. properties:
  3949. origin: string
  3950. localStorage:
  3951. type: array
  3952. items: NameValue
  3953. indexedDB:
  3954. type: array?
  3955. items: IndexedDBDatabase
  3956. RecordHarOptions:
  3957. type: object
  3958. properties:
  3959. content:
  3960. type: enum?
  3961. literals:
  3962. - embed
  3963. - attach
  3964. - omit
  3965. mode:
  3966. type: enum?
  3967. literals:
  3968. - full
  3969. - minimal
  3970. urlGlob: string?
  3971. urlRegexSource: string?
  3972. urlRegexFlags: string?
  3973. harPath: string?
  3974. resourcesDir: string?
  3975. CDPSession:
  3976. type: interface
  3977. commands:
  3978. send:
  3979. title: Send CDP command
  3980. group: configuration
  3981. parameters:
  3982. method: string
  3983. params: json?
  3984. returns:
  3985. result: json
  3986. detach:
  3987. title: Detach CDP session
  3988. group: configuration
  3989. events:
  3990. event:
  3991. parameters:
  3992. method: string
  3993. params: json?
  3994. close:
  3995. BindingCall:
  3996. type: interface
  3997. initializer:
  3998. frame: Frame
  3999. name: string
  4000. args:
  4001. type: array
  4002. items: SerializedValue
  4003. commands:
  4004. reject:
  4005. internal: true
  4006. parameters:
  4007. error: SerializedError
  4008. resolve:
  4009. internal: true
  4010. parameters:
  4011. result: SerializedArgument
  4012. Debugger:
  4013. type: interface
  4014. extends: EventTarget
  4015. commands:
  4016. requestPause:
  4017. title: Pause on next call
  4018. group: configuration
  4019. resume:
  4020. title: Resume
  4021. group: configuration
  4022. next:
  4023. title: Step to next call
  4024. group: configuration
  4025. runTo:
  4026. title: Run to location
  4027. group: configuration
  4028. parameters:
  4029. location:
  4030. type: object
  4031. properties:
  4032. file: string
  4033. line: int?
  4034. column: int?
  4035. events:
  4036. pausedStateChanged:
  4037. parameters:
  4038. pausedDetails:
  4039. type: object?
  4040. properties:
  4041. location:
  4042. type: object
  4043. properties:
  4044. file: string
  4045. line: int?
  4046. column: int?
  4047. title: string
  4048. stack: string?
  4049. Dialog:
  4050. type: interface
  4051. initializer:
  4052. page: Page?
  4053. type: string
  4054. message: string
  4055. defaultValue: string
  4056. commands:
  4057. accept:
  4058. title: Accept dialog
  4059. parameters:
  4060. promptText: string?
  4061. dismiss:
  4062. title: Dismiss dialog
  4063. # Copyright (c) Microsoft Corporation.
  4064. #
  4065. # Licensed under the Apache License, Version 2.0 (the "License");
  4066. # you may not use this file except in compliance with the License.
  4067. # You may obtain a copy of the License at
  4068. #
  4069. # http://www.apache.org/licenses/LICENSE-2.0
  4070. #
  4071. # Unless required by applicable law or agreed to in writing, software
  4072. # distributed under the License is distributed on an "AS IS" BASIS,
  4073. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4074. # See the License for the specific language governing permissions and
  4075. # limitations under the License.
  4076. SerializedValue:
  4077. type: object
  4078. # Exactly one of the properties must be present.
  4079. properties:
  4080. n: float?
  4081. b: boolean?
  4082. s: string?
  4083. v:
  4084. type: enum?
  4085. literals:
  4086. - null
  4087. - undefined
  4088. - NaN
  4089. - Infinity
  4090. - -Infinity
  4091. - "-0"
  4092. # String representation of the Date.
  4093. d: string?
  4094. # String representation of the URL.
  4095. u: string?
  4096. # String representation of BigInt.
  4097. bi: string?
  4098. # Typed array.
  4099. ta:
  4100. type: object?
  4101. properties:
  4102. b: binary
  4103. k:
  4104. type: enum
  4105. literals:
  4106. - i8
  4107. - ui8
  4108. - ui8c
  4109. - i16
  4110. - ui16
  4111. - i32
  4112. - ui32
  4113. - f32
  4114. - f64
  4115. - bi64
  4116. - bui64
  4117. # Serialized Error object.
  4118. e:
  4119. type: object?
  4120. properties:
  4121. m: string
  4122. n: string
  4123. s: string
  4124. # Regular expression pattern and flags.
  4125. r:
  4126. type: object?
  4127. properties:
  4128. p: string
  4129. f: string
  4130. a:
  4131. type: array?
  4132. items: SerializedValue
  4133. # Object with keys and values.
  4134. o:
  4135. type: array?
  4136. items:
  4137. type: object
  4138. properties:
  4139. k: string
  4140. v: SerializedValue
  4141. # An index in the handles array from SerializedArgument.
  4142. h: int?
  4143. # Index of the object in value-type for circular reference resolution.
  4144. id: int?
  4145. # Ref to the object in value-type for circular reference resolution.
  4146. ref: int?
  4147. SerializedArgument:
  4148. type: object
  4149. properties:
  4150. value: SerializedValue
  4151. handles:
  4152. type: array
  4153. items: Channel
  4154. SerializedError:
  4155. type: object
  4156. properties:
  4157. error:
  4158. type: object?
  4159. properties:
  4160. message: string
  4161. name: string
  4162. stack: string?
  4163. value: SerializedValue?
  4164. # Copyright (c) Microsoft Corporation.
  4165. #
  4166. # Licensed under the Apache License, Version 2.0 (the "License");
  4167. # you may not use this file except in compliance with the License.
  4168. # You may obtain a copy of the License at
  4169. #
  4170. # http://www.apache.org/licenses/LICENSE-2.0
  4171. #
  4172. # Unless required by applicable law or agreed to in writing, software
  4173. # distributed under the License is distributed on an "AS IS" BASIS,
  4174. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4175. # See the License for the specific language governing permissions and
  4176. # limitations under the License.
  4177. StackFrame:
  4178. type: object
  4179. properties:
  4180. file: string
  4181. line: int
  4182. column: int
  4183. function: string?
  4184. Point:
  4185. type: object
  4186. properties:
  4187. x: float
  4188. y: float
  4189. Rect:
  4190. type: object
  4191. properties:
  4192. x: float
  4193. y: float
  4194. width: float
  4195. height: float
  4196. URLPattern:
  4197. type: object
  4198. properties:
  4199. hash: string
  4200. hostname: string
  4201. password: string
  4202. pathname: string
  4203. port: string
  4204. protocol: string
  4205. search: string
  4206. username: string
  4207. NameValue:
  4208. type: object
  4209. properties:
  4210. name: string
  4211. value: string
  4212. # Copyright (c) Microsoft Corporation.
  4213. #
  4214. # Licensed under the Apache License, Version 2.0 (the "License");
  4215. # you may not use this file except in compliance with the License.
  4216. # You may obtain a copy of the License at
  4217. #
  4218. # http://www.apache.org/licenses/LICENSE-2.0
  4219. #
  4220. # Unless required by applicable law or agreed to in writing, software
  4221. # distributed under the License is distributed on an "AS IS" BASIS,
  4222. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4223. # See the License for the specific language governing permissions and
  4224. # limitations under the License.
  4225. Tracing:
  4226. type: interface
  4227. commands:
  4228. tracingStart:
  4229. title: Start tracing
  4230. group: configuration
  4231. parameters:
  4232. name: string?
  4233. snapshots: boolean?
  4234. screenshots: boolean?
  4235. live: boolean?
  4236. tracingStartChunk:
  4237. title: Start tracing
  4238. group: configuration
  4239. parameters:
  4240. name: string?
  4241. title: string?
  4242. returns:
  4243. traceName: string
  4244. tracingGroup:
  4245. title: Trace "{name}"
  4246. parameters:
  4247. name: string
  4248. location:
  4249. type: object?
  4250. properties:
  4251. file: string
  4252. line: int?
  4253. column: int?
  4254. tracingGroupEnd:
  4255. title: Group end
  4256. tracingStopChunk:
  4257. title: Stop tracing
  4258. group: configuration
  4259. parameters:
  4260. mode:
  4261. type: enum
  4262. literals:
  4263. - archive
  4264. - discard
  4265. - entries
  4266. returns:
  4267. # The artifact may be missing if the browser closes while tracing is being stopped.
  4268. # Or it can be missing if client-side compression is taking place.
  4269. artifact: Artifact?
  4270. # For local mode, these are all entries.
  4271. entries:
  4272. type: array?
  4273. items: NameValue
  4274. tracingStop:
  4275. title: Stop tracing
  4276. group: configuration
  4277. harStart:
  4278. internal: true
  4279. parameters:
  4280. page: Page?
  4281. options: RecordHarOptions
  4282. returns:
  4283. harId: string
  4284. harExport:
  4285. internal: true
  4286. parameters:
  4287. harId: string?
  4288. mode:
  4289. type: enum
  4290. literals:
  4291. - archive
  4292. - entries
  4293. returns:
  4294. # Present when mode is 'archive'.
  4295. artifact: Artifact?
  4296. # Present when mode is 'entries'.
  4297. entries:
  4298. type: array?
  4299. items: NameValue
  4300. # Copyright (c) Microsoft Corporation.
  4301. #
  4302. # Licensed under the Apache License, Version 2.0 (the "License");
  4303. # you may not use this file except in compliance with the License.
  4304. # You may obtain a copy of the License at
  4305. #
  4306. # http://www.apache.org/licenses/LICENSE-2.0
  4307. #
  4308. # Unless required by applicable law or agreed to in writing, software
  4309. # distributed under the License is distributed on an "AS IS" BASIS,
  4310. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4311. # See the License for the specific language governing permissions and
  4312. # limitations under the License.
  4313. Worker:
  4314. type: interface
  4315. extends: EventTarget
  4316. initializer:
  4317. url: string
  4318. commands:
  4319. disconnect:
  4320. title: Disconnect from worker
  4321. parameters:
  4322. reason: string?
  4323. flags:
  4324. pausesBeforeAction: true
  4325. evaluateExpression:
  4326. title: Evaluate
  4327. parameters:
  4328. expression: string
  4329. isFunction: boolean?
  4330. arg: SerializedArgument
  4331. returns:
  4332. value: SerializedValue
  4333. evaluateExpressionHandle:
  4334. title: Evaluate
  4335. parameters:
  4336. expression: string
  4337. isFunction: boolean?
  4338. arg: SerializedArgument
  4339. returns:
  4340. handle: JSHandle
  4341. updateSubscription:
  4342. internal: true
  4343. parameters:
  4344. event:
  4345. type: enum
  4346. literals:
  4347. - console
  4348. enabled: boolean
  4349. events:
  4350. console:
  4351. parameters:
  4352. $mixin: ConsoleMessage
  4353. close: