protocol.yml 83 KB

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