[{"data":1,"prerenderedAt":1076},["ShallowReactive",2],{"SiteFooter_cLEacilcm59lTjFJjLY6mXNWLL0ETtzOIiZwIHgDpy0":3,"doc-\u002Fdocs\u002Fhttp\u002Froute-rules":17,"docs-nav":909,"nav-compare":1044,"editor-14ba57c":1054,"editor-1ozr0h8":1056,"editor-beqf8m":1058,"editor-h7jvy4":1060,"editor-17vc114":1062,"editor-1fcv1or":1064,"editor-k8qr9k":1066,"editor-1lxyj5q":1068,"editor-1ldsf8x":1070,"editor-1rlyl59":1072,"editor-wyk5uy":1074},["Island",4],{"key":5,"result":6},"SiteFooter_cLEacilcm59lTjFJjLY6mXNWLL0ETtzOIiZwIHgDpy0",{"head":7},{"style":8},[9,11,13,15],{"innerHTML":10},".site-footer[data-v-8bb1d4ae]{border-top:1px solid var(--line);background:var(--chrome);padding:var(--sp-8) var(--gutter) var(--sp-10);gap:var(--sp-6);flex-direction:column;display:flex}.links[data-v-8bb1d4ae]{gap:var(--sp-4);grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));max-width:62rem;display:grid}.links a[data-v-8bb1d4ae]{align-items:flex-start;gap:var(--sp-3);padding:var(--sp-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);border-bottom:1px solid var(--line);display:flex}.links a[data-v-8bb1d4ae]:focus-visible,.links a[data-v-8bb1d4ae]:hover{border-color:var(--line-strong)}.links[data-v-8bb1d4ae] .mark,.links[data-v-8bb1d4ae] .rf-mark{width:1.35rem;height:1.35rem;color:var(--dim);flex:none;margin-top:.1rem}.links a[data-v-8bb1d4ae]:hover .mark,.links a[data-v-8bb1d4ae]:hover .rf-mark{color:var(--red)}.links span[data-v-8bb1d4ae]{flex-direction:column;gap:2px;min-width:0;display:flex}.links b[data-v-8bb1d4ae]{font-family:var(--font-display);font-size:.85rem;font-weight:400}.links small[data-v-8bb1d4ae]{color:var(--faint);font-size:.78rem}.colophon[data-v-8bb1d4ae]{color:var(--faint);margin:0;font-size:.75rem}@supports (corner-shape:bevel){.links a[data-v-8bb1d4ae]{corner-shape:bevel}}",{"innerHTML":12},".mark[data-v-cc0d96a5]{vertical-align:-.125em;flex:none;width:1em;height:1em}",{"innerHTML":14},".mark[data-v-26f5673d]{vertical-align:-.125em;flex:none;width:1em;height:1em}",{"innerHTML":16},".rf-mark[data-v-26317b3e]{fill:currentColor;stroke:none;flex:none}",{"id":18,"title":19,"body":20,"description":901,"extension":902,"meta":903,"navigation":350,"order":261,"path":904,"section":905,"seo":906,"stem":907,"__hash__":908},"docs\u002Fdocs\u002Fhttp\u002Froute-rules.md","Route rules",{"type":21,"value":22,"toc":883},"minimark",[23,36,44,50,80,122,127,150,158,169,173,198,219,226,230,237,295,299,305,399,412,416,433,442,449,452,470,474,489,527,531,534,538,551,555,563,567,576,580,600,653,657,673,688,692,700,704,744,748,762,779,799,803,818,822,837,841,848,854,866,872,879],[24,25,26,30,31,35],"p",{},[27,28],"since",{"version":29},"21.1.0"," A ",[32,33,34],"strong",{},"route rule"," sits on a context or a page and handles\nmatching requests before they reach the network:",[37,38,41],"doc-figure",{"alt":39,"src":40},"Three rows, one per keyword, each with the columns Page, Route rule and Server. Abort Requests: the request goes from the page to the rule, which sends a network error back; the server is not reached. Mock Responses: the rule sends a mock response back; the server is not reached. Modify Responses: the rule sends a changed request to the server, gets the real response, and sends a changed response back to the page.","\u002Fimages\u002Froute-rules\u002Ftraffic.svg",[24,42,43],{},"Where a request goes under each kind of rule.",[45,46],"doc-table",{":head":47,":rows":48,":nowrap":49},"[\"Keyword\",\"The request\",\"Use it to\"]","[[\"[`Abort Requests`](\u002Fkeywords#abort-requests)\",\"fails with a network error\",\"test an error path or an outage, block analytics\"],[\"[`Mock Responses`](\u002Fkeywords#mock-responses)\",\"gets a mock response, the server never sees it\",\"test the frontend without the backend, get a `500` on demand\"],[\"[`Modify Responses`](\u002Fkeywords#modify-responses)\",\"reaches the server; you change the request and the real response\",\"use another backend, add a header, set one JSON field to an edge case\"]]","[0]",[51,52,57],"pre",{"className":53,"code":54,"language":55,"meta":56,"style":56},"language-robot-repl shiki shiki-themes github-light github-dark","Abort Requests      **\u002Fanalytics\u002F**\nMock Responses      **\u002Fapi\u002Forders    json=${orders}\nModify Responses    **\u002Fapi\u002Forders    status=500    headers={\"Retry-After\": \"5\"}\n","robot-repl","",[58,59,60,68,74],"code",{"__ignoreMap":56},[61,62,65],"span",{"class":63,"line":64},"line",1,[61,66,67],{},"Abort Requests      **\u002Fanalytics\u002F**\n",[61,69,71],{"class":63,"line":70},2,[61,72,73],{},"Mock Responses      **\u002Fapi\u002Forders    json=${orders}\n",[61,75,77],{"class":63,"line":76},3,[61,78,79],{},"Modify Responses    **\u002Fapi\u002Forders    status=500    headers={\"Retry-After\": \"5\"}\n",[24,81,82,83,86,87,90,91,94,95,97,98,103,104,110,111,114,115,121],{},"All three take ",[58,84,85],{},"matcher",", ",[58,88,89],{},"times"," and ",[58,92,93],{},"on",", and return the rule id. ",[58,96,85],{},"\nfollows the ",[99,100,102],"a",{"href":101},"\u002Fdocs\u002Fhttp\u002Foverview#matchers","shared rules","; a function gets the\nrequest ",[99,105,109],{"href":106,"rel":107},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FURL",[108],"nofollow","URL",":\n",[58,112,113],{},"url => url.searchParams.get('id') === '7'",". Route rules see page traffic only, not\n",[99,116,118],{"href":117},"\u002Fdocs\u002Fhttp\u002Foverview#page-traffic-and-api-traffic",[58,119,120],{},"Send API Request",".",[123,124,126],"h2",{"id":125},"context-or-page","Context or Page",[128,129,130,139],"ul",{},[131,132,133,138],"li",{},[32,134,135],{},[58,136,137],{},"on=Context",", the default: every page of the active context, also pages opened\nlater.",[131,140,141,146,147,121],{},[32,142,143],{},[58,144,145],{},"on=Page",": the active page only. The rule stays on that page; it does not follow\n",[58,148,149],{},"Switch Page",[51,151,156],{"className":152,"code":154,"language":155,"meta":56},[153],"language-text","Context · rule A  (on=Context)\n│\n├── Page 1 · rule B  (on=Page)   ← A and B\n├── Page 2                       ← A\n└── Page 3 · opened later        ← A\n","text",[58,157,154],{"__ignoreMap":56},[24,159,160,161,164,165,121],{},"Both survive ",[58,162,163],{},"Go To",". Another context gets neither, see\n",[99,166,168],{"href":167},"\u002Fdocs\u002Fconcepts\u002Fbrowser-context-page#the-context","Browser, context and page",[123,170,172],{"id":171},"when-a-rule-ends","When a rule ends",[174,175,176,179,189],"ol",{},[131,177,178],{},"Its context or page closes.",[131,180,181,182,185,186,121],{},"You remove it with ",[58,183,184],{},"Remove Route Rule"," or ",[58,187,188],{},"Remove All Route Rules",[131,190,191,192,194,195,197],{},"It has handled ",[58,193,89],{}," requests. ",[58,196,89],{}," must be 1 or more.",[199,200,202],"doc-note",{"kind":201},"warning",[24,203,204,205,208,209,215,216,218],{},"A rule does ",[32,206,207],{},"not"," end with the test or suite. In a suite that shares one context,\na rule from one test still handles requests in the next. Open a\n",[99,210,212],{"href":211},"\u002Fkeywords#new-context",[58,213,214],{},"New Context"," per test, or call ",[58,217,188],{}," in\nthe test teardown.",[24,220,221,222,225],{},"A context opened inside a test closes with it under the default\n",[58,223,224],{},"auto_closing_level=TEST",", and its rules go with it.",[123,227,229],{"id":228},"rule-order","Rule order",[24,231,232,233,236],{},"The ",[32,234,235],{},"newest rule wins",", and a Page rule wins over a Context rule. When it ends, the\nnext older rule takes over:",[51,238,242],{"className":239,"code":240,"language":241,"meta":56,"style":56},"language-robot shiki shiki-themes github-light github-dark","*** Test Cases ***\nOrders Show An Error Once\n    New Page          ${APP_URL}\n    Mock Responses    **\u002Fapi\u002Forders    json=${orders}\n    Mock Responses    **\u002Fapi\u002Forders    status=500    times=1\n    Click             id=reload-orders    # gets the 500\n    Get Text          id=orders-status    ==    error\n    Click             id=reload-orders    # gets ${orders}\n    Get Text          id=orders-status    ==    loaded\n","robot",[58,243,244,249,254,259,265,271,277,283,289],{"__ignoreMap":56},[61,245,246],{"class":63,"line":64},[61,247,248],{},"*** Test Cases ***\n",[61,250,251],{"class":63,"line":70},[61,252,253],{},"Orders Show An Error Once\n",[61,255,256],{"class":63,"line":76},[61,257,258],{},"    New Page          ${APP_URL}\n",[61,260,262],{"class":63,"line":261},4,[61,263,264],{},"    Mock Responses    **\u002Fapi\u002Forders    json=${orders}\n",[61,266,268],{"class":63,"line":267},5,[61,269,270],{},"    Mock Responses    **\u002Fapi\u002Forders    status=500    times=1\n",[61,272,274],{"class":63,"line":273},6,[61,275,276],{},"    Click             id=reload-orders    # gets the 500\n",[61,278,280],{"class":63,"line":279},7,[61,281,282],{},"    Get Text          id=orders-status    ==    error\n",[61,284,286],{"class":63,"line":285},8,[61,287,288],{},"    Click             id=reload-orders    # gets ${orders}\n",[61,290,292],{"class":63,"line":291},9,[61,293,294],{},"    Get Text          id=orders-status    ==    loaded\n",[123,296,298],{"id":297},"outage-and-recovery","Outage and recovery",[24,300,301,302,304],{},"A fixed number of failures with ",[58,303,89],{},", or an outage that ends when the test\nremoves the rule:",[51,306,308],{"className":239,"code":307,"language":241,"meta":56,"style":56},"*** Test Cases ***\nOrders Recover After Two Failures\n    New Page          ${APP_URL}\n    Abort Requests    **\u002Fapi\u002Forders    times=2\n    Click             id=reload-orders    # aborted\n    Click             id=reload-orders    # aborted\n    Click             id=reload-orders    # reaches the server\n    Get Text          id=orders-status    ==    loaded\n\nOrders Recover When The Outage Ends\n    New Page             ${APP_URL}\n    ${rule} =            Abort Requests    **\u002Fapi\u002Forders\n    Click                id=reload-orders\n    Get Text             id=orders-status    ==    error\n    Remove Route Rule    ${rule}\n    Click                id=reload-orders\n    Get Text             id=orders-status    ==    loaded\n",[58,309,310,314,319,323,328,333,337,342,346,352,358,364,370,376,382,388,393],{"__ignoreMap":56},[61,311,312],{"class":63,"line":64},[61,313,248],{},[61,315,316],{"class":63,"line":70},[61,317,318],{},"Orders Recover After Two Failures\n",[61,320,321],{"class":63,"line":76},[61,322,258],{},[61,324,325],{"class":63,"line":261},[61,326,327],{},"    Abort Requests    **\u002Fapi\u002Forders    times=2\n",[61,329,330],{"class":63,"line":267},[61,331,332],{},"    Click             id=reload-orders    # aborted\n",[61,334,335],{"class":63,"line":273},[61,336,332],{},[61,338,339],{"class":63,"line":279},[61,340,341],{},"    Click             id=reload-orders    # reaches the server\n",[61,343,344],{"class":63,"line":285},[61,345,294],{},[61,347,348],{"class":63,"line":291},[61,349,351],{"emptyLinePlaceholder":350},true,"\n",[61,353,355],{"class":63,"line":354},10,[61,356,357],{},"Orders Recover When The Outage Ends\n",[61,359,361],{"class":63,"line":360},11,[61,362,363],{},"    New Page             ${APP_URL}\n",[61,365,367],{"class":63,"line":366},12,[61,368,369],{},"    ${rule} =            Abort Requests    **\u002Fapi\u002Forders\n",[61,371,373],{"class":63,"line":372},13,[61,374,375],{},"    Click                id=reload-orders\n",[61,377,379],{"class":63,"line":378},14,[61,380,381],{},"    Get Text             id=orders-status    ==    error\n",[61,383,385],{"class":63,"line":384},15,[61,386,387],{},"    Remove Route Rule    ${rule}\n",[61,389,391],{"class":63,"line":390},16,[61,392,375],{},[61,394,396],{"class":63,"line":395},17,[61,397,398],{},"    Get Text             id=orders-status    ==    loaded\n",[24,400,401,404,405,90,408,411],{},[58,402,403],{},"Mock Responses"," with ",[58,406,407],{},"status=503",[58,409,410],{},"times=1"," does the same with an error\nresponse instead of a network error.",[123,413,415],{"id":414},"abort-requests","Abort Requests",[24,417,418,421,422,425,426,432],{},[58,419,420],{},"errorCode"," is the network error, ",[58,423,424],{},"failed"," by default; see\n",[99,427,429],{"href":428},"\u002Fkeywords#type--aborterrorcode",[58,430,431],{},"AbortErrorCode"," for all of them.",[51,434,436],{"className":53,"code":435,"language":55,"meta":56,"style":56},"Abort Requests    **\u002Fapi\u002F**    errorCode=timedout\n",[58,437,438],{"__ignoreMap":56},[61,439,440],{"class":63,"line":64},[61,441,435],{},[24,443,444,445,448],{},"Chromium reports the matching error, ",[58,446,447],{},"net::ERR_TIMED_OUT"," here. Firefox and WebKit\nreport most codes as one generic failure, so check the error text only in Chromium.",[123,450,403],{"id":451},"mock-responses",[24,453,454,455,458,459,462,463,466,467,121],{},"A mock response is a ",[58,456,457],{},"status"," (100 to 599, ",[58,460,461],{},"200"," by default), ",[58,464,465],{},"headers"," and at most\none payload. No payload is an empty body, as for a ",[58,468,469],{},"204",[45,471],{":head":472,":rows":473,":nowrap":49},"[\"Payload\",\"Is\",\"Content-Type\"]","[[\"`body`\",\"Text, `bytes`, a `Secret`, or a JSON value, see [Bodies](\u002Fdocs\u002Fhttp\u002Foverview#bodies)\",\"text: `text\u002Fplain; charset=utf-8`, bytes: `application\u002Foctet-stream`, JSON: `application\u002Fjson`\"],[\"`json`\",\"A JSON value. A string becomes a JSON string, in quotes\",\"`application\u002Fjson`\"],[\"`path`\",\"The bytes of a file, binary too\",\"from the extension, `charset=utf-8` for `text\u002F`; else `application\u002Foctet-stream`\"],[\"none\",\"An empty body\",\"none; WebKit reports `application\u002Foctet-stream`\"]]",[51,475,477],{"className":53,"code":476,"language":55,"meta":56,"style":56},"Mock Responses    **\u002Fapi\u002Forders    status=201    body=created    headers={\"Location\": \"\u002Fapi\u002Forders\u002F7\"}\nMock Responses    **\u002Fimg\u002Flogo.png    path=${CURDIR}\u002Flogo.png\n",[58,478,479,484],{"__ignoreMap":56},[61,480,481],{"class":63,"line":64},[61,482,483],{},"Mock Responses    **\u002Fapi\u002Forders    status=201    body=created    headers={\"Location\": \"\u002Fapi\u002Forders\u002F7\"}\n",[61,485,486],{"class":63,"line":70},[61,487,488],{},"Mock Responses    **\u002Fimg\u002Flogo.png    path=${CURDIR}\u002Flogo.png\n",[128,490,491,496,511,514,521],{},[131,492,493,495],{},[58,494,465],{}," is the whole header set: there is no real response to merge with. A\nContent-Type in it always wins.",[131,497,498,499,502,503,506,507,510],{},"JSON text you already have goes in ",[58,500,501],{},"body"," with a Content-Type header. A JSON ",[58,504,505],{},"null","\nbody is ",[58,508,509],{},"body=null"," with one.",[131,512,513],{},"A text file in another encoding than UTF-8 needs its Content-Type, with charset.",[131,515,516,517,520],{},"Python reads ",[58,518,519],{},"path",", so the file needs to exist only where the tests run.",[131,522,523,524,121],{},"There is no reason phrase: the browser shows the standard one, or ",[58,525,526],{},"Unknown",[123,528,530],{"id":529},"modify-responses","Modify Responses",[24,532,533],{},"The request reaches the server, and only what you give changes. Give at least one;\nthe page keeps the URL it asked for.",[45,535],{":head":536,":rows":537,":nowrap":49},"[\"Argument\",\"Changes\"]","[[\"`request_url`\",\"Where the request goes: absolute, or relative to the original URL\"],[\"`request_method`\",\"The method the server gets\"],[\"`request_headers`\",\"Merged onto the real request headers\"],[\"`request_body`\",\"The body the server gets, see [Bodies](\u002Fdocs\u002Fhttp\u002Foverview#bodies)\"],[\"`status`\",\"The status the page gets\"],[\"`headers`\",\"Merged onto the real response headers\"],[\"`body`, `json`, `path`\",\"Replace the real body, as in [Mock Responses](#mock-responses)\"],[\"`json_patch`\",\"Changes fields of the real JSON body\"]]",[24,539,540,541,86,543,86,546,90,548,121],{},"Give at most one of ",[58,542,501],{},[58,544,545],{},"json",[58,547,519],{},[58,549,550],{},"json_patch",[552,553,554],"h3",{"id":465},"Headers",[24,556,557,90,559,562],{},[58,558,465],{},[58,560,561],{},"request_headers"," merge onto the real headers. Names compare\ncase-insensitively, and a value you give wins:",[45,564],{":head":565,":rows":566,":nowrap":49},"[\"Value\",\"Header\"]","[[\"text, `Secret`, number, boolean\",\"set to that value\"],[\"`\\\"\\\"`\",\"sent empty\"],[\"`None`\",\"removed\"]]",[51,568,570],{"className":53,"code":569,"language":55,"meta":56,"style":56},"Modify Responses    **\u002Fapp.html    headers={\"Content-Security-Policy\": None}\n",[58,571,572],{"__ignoreMap":56},[61,573,574],{"class":63,"line":64},[61,575,569],{},[552,577,579],{"id":578},"request-url-method-and-body","Request URL, method and body",[51,581,583],{"className":53,"code":582,"language":55,"meta":56,"style":56},"Modify Responses    **\u002Fapi\u002Forders    request_url=\u002Fapi\u002Fv2\u002Forders\nModify Responses    **\u002Fapi\u002F**        request_url=https:\u002F\u002Fstaging.example.com\u002Fapi\u002Forders\nModify Responses    **\u002Fapi\u002Fsearch    request_method=POST    request_body=${{ {\"q\": \"robot\"} }}\n",[58,584,585,590,595],{"__ignoreMap":56},[61,586,587],{"class":63,"line":64},[61,588,589],{},"Modify Responses    **\u002Fapi\u002Forders    request_url=\u002Fapi\u002Fv2\u002Forders\n",[61,591,592],{"class":63,"line":70},[61,593,594],{},"Modify Responses    **\u002Fapi\u002F**        request_url=https:\u002F\u002Fstaging.example.com\u002Fapi\u002Forders\n",[61,596,597],{"class":63,"line":76},[61,598,599],{},"Modify Responses    **\u002Fapi\u002Fsearch    request_method=POST    request_body=${{ {\"q\": \"robot\"} }}\n",[128,601,602,623,641],{},[131,603,604,605,608,609,90,612,615,616,622],{},"A changed URL gets the cookies the context holds ",[32,606,607],{},"for that URL",". The original\n",[58,610,611],{},"Cookie",[58,613,614],{},"Host"," are not forwarded, so all three browsers behave alike. Use\n",[99,617,619],{"href":618},"\u002Fkeywords#add-cookie",[58,620,621],{},"Add Cookie"," for a cookie on the new host.",[131,624,625,626,629,630,633,634,636,637,640],{},"A text or ",[58,627,628],{},"bytes"," ",[58,631,632],{},"request_body"," keeps the original Content-Type unless\n",[58,635,561],{}," sets one; a JSON value sets ",[58,638,639],{},"application\u002Fjson",". The length is\nrecalculated.",[131,642,643,185,646,649,650,652],{},[58,644,645],{},"GET",[58,647,648],{},"HEAD"," without ",[58,651,632],{}," sends no body, so an old form body is not\ncarried along.",[552,654,656],{"id":655},"response-body","Response body",[24,658,659,86,661,90,663,665,666,90,669,672],{},[58,660,501],{},[58,662,545],{},[58,664,519],{}," replace the real body; the real status and headers stay.\nThe real ",[58,667,668],{},"Content-Encoding",[58,670,671],{},"Content-Length"," are dropped, because the page gets\nthe new body already decoded.",[24,674,675,677,678,683,684,687],{},[58,676,550],{}," changes the real JSON body as an\n",[99,679,682],{"href":680,"rel":681},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc7386",[108],"RFC 7386 JSON Merge Patch",": dictionaries\nmerge at every depth, ",[58,685,686],{},"${None}"," deletes a key, anything else replaces the value\nwhole, a list included.",[45,689],{":head":690,":rows":691},"[\"Real body\",\"json_patch\",\"Page gets\"]","[[\"`{\\\"id\\\": 7, \\\"state\\\": \\\"open\\\"}`\",\"`{\\\"state\\\": \\\"cancelled\\\"}`\",\"`{\\\"id\\\": 7, \\\"state\\\": \\\"cancelled\\\"}`\"],[\"`{\\\"id\\\": 7, \\\"note\\\": \\\"x\\\"}`\",\"`{\\\"note\\\": None}`\",\"`{\\\"id\\\": 7}`\"],[\"`{\\\"order\\\": {\\\"id\\\": 7, \\\"total\\\": 12}}`\",\"`{\\\"order\\\": {\\\"total\\\": 0}}`\",\"`{\\\"order\\\": {\\\"id\\\": 7, \\\"total\\\": 0}}`\"],[\"`{\\\"items\\\": [1, 2, 3]}`\",\"`{\\\"items\\\": [4]}`\",\"`{\\\"items\\\": [4]}`\"]]",[24,693,694,696,697,699],{},[58,695,550],{}," takes only a dictionary; to replace the whole body, use ",[58,698,545],{},". The real\nContent-Type stays.",[552,701,703],{"id":702},"redirects-failures-and-timeouts","Redirects, failures and timeouts",[128,705,706,709,721,735],{},[131,707,708],{},"The real request follows up to 20 redirects. The page gets the final response at\nthe URL it asked for. The redirect target does not pass through route rules.",[131,710,711,713,714,716,717,720],{},[58,712,530],{}," passes as soon as the rule is added. When the real request\nfails later, because the server is unreachable, it times out or ",[58,715,550],{}," meets\na body that is not JSON, the page request fails as a network error. The error goes\nto ",[58,718,719],{},"playwright-log.txt"," with the rule id, without Playwright's call log.",[131,722,723,724,727,728,731,732,734],{},"The timeout is the browser timeout ",[32,725,726],{},"when the rule is added",". For a shorter one,\nwrap the keyword in ",[58,729,730],{},"Set Browser Timeout",". It also bounds how long\n",[58,733,184],{}," waits for a request the rule is handling.",[131,736,737,738,740,741,743],{},"A replaced body and ",[58,739,632],{}," can be at most about 4 MB. ",[58,742,550],{}," is\nsmall however large the real body is.",[123,745,747],{"id":746},"removing-rules","Removing rules",[24,749,750,755,756,761],{},[99,751,753],{"href":752},"\u002Fkeywords#remove-route-rule",[58,754,184],{}," removes one rule by its id, in\nany context. ",[99,757,759],{"href":758},"\u002Fkeywords#remove-all-route-rules",[58,760,188],{}," removes\nthe Context rules of the active context and the Page rules of all its pages.",[128,763,764,767,770],{},[131,765,766],{},"Both wait for a request the rule is handling, then the rule handles no more.",[131,768,769],{},"An unknown or ended id, no rules, or no open context are logged, and the keyword\npasses. So both are safe in a teardown.",[131,771,772,774,775,778],{},[58,773,188],{}," removes only the rules of this library, not a\n",[58,776,777],{},"page.route"," from a plugin or JavaScript extension.",[51,780,782],{"className":239,"code":781,"language":241,"meta":56,"style":56},"*** Settings ***\nSuite Setup      New Context\nTest Teardown    Remove All Route Rules\n",[58,783,784,789,794],{"__ignoreMap":56},[61,785,786],{"class":63,"line":64},[61,787,788],{},"*** Settings ***\n",[61,790,791],{"class":63,"line":70},[61,792,793],{},"Suite Setup      New Context\n",[61,795,796],{"class":63,"line":76},[61,797,798],{},"Test Teardown    Remove All Route Rules\n",[123,800,802],{"id":801},"cross-origin-requests","Cross-origin requests",[24,804,805,806,809,810,813,814,817],{},"A cross-origin mock response needs no CORS headers, also with credentials. A mock\nthat sets its own ",[58,807,808],{},"Access-Control-Allow-Origin"," is checked like a real response, so\n",[58,811,812],{},"*"," with credentials fails. The preflight ",[58,815,816],{},"OPTIONS"," request never reaches a rule.",[123,819,821],{"id":820},"service-workers-and-the-http-cache","Service workers and the HTTP cache",[128,823,824,834],{},[131,825,826,827,830,831,833],{},"A request that a service worker answers never reaches a rule. Open the context\nwith ",[58,828,829],{},"serviceWorkers=block"," in ",[58,832,214],{}," to route it.",[131,835,836],{},"Playwright turns off the HTTP cache once a context or page has a rule, so the page\nmay send more requests than without it.",[123,838,840],{"id":839},"logging","Logging",[24,842,843,844,847],{},"The keywords log the rule in ",[58,845,846],{},"log.html",", with header names but never values or\nbodies:",[51,849,852],{"className":850,"code":851,"language":155,"meta":56},[153],"Added route rule 3f1c…: abort **\u002Fapi\u002Forders with failed, times=2, on=Context.\nAdded route rule 7a2e…: mock **\u002Fapi\u002Forders with status 200 and json body, times=None, on=Context.\n",[58,853,851],{"__ignoreMap":56},[24,855,856,857,862,863,865],{},"Each request a rule handles is logged only in\n",[99,858,860],{"href":859},"\u002Fdocs\u002Fconcepts\u002Flogging#playwright-logtxt",[58,861,719],{},", so a rule that\nblocks hundreds of analytics calls keeps ",[58,864,846],{}," readable. Search it for the rule\nid:",[51,867,870],{"className":868,"code":869,"language":155,"meta":56},[153],"Route rule 3f1c… ran for GET https:\u002F\u002Fexample.com\u002Fapi\u002Forders\n",[58,871,869],{"__ignoreMap":56},[24,873,874,875,121],{},"For tokens in headers or bodies, see ",[99,876,878],{"href":877},"\u002Fdocs\u002Fhttp\u002Foverview#secrets","Secrets",[880,881,882],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":56,"searchDepth":70,"depth":70,"links":884},[885,886,887,888,889,890,891,897,898,899,900],{"id":125,"depth":70,"text":126},{"id":171,"depth":70,"text":172},{"id":228,"depth":70,"text":229},{"id":297,"depth":70,"text":298},{"id":414,"depth":70,"text":415},{"id":451,"depth":70,"text":403},{"id":529,"depth":70,"text":530,"children":892},[893,894,895,896],{"id":465,"depth":76,"text":554},{"id":578,"depth":76,"text":579},{"id":655,"depth":76,"text":656},{"id":702,"depth":76,"text":703},{"id":746,"depth":70,"text":747},{"id":801,"depth":70,"text":802},{"id":820,"depth":70,"text":821},{"id":839,"depth":70,"text":840},"Make requests of the page fail, answer them with a mock response, or change the real request and response. Where a rule lives, when it ends, and which one wins.","md",{},"\u002Fdocs\u002Fhttp\u002Froute-rules","http",{"title":19,"description":901},"docs\u002Fhttp\u002Froute-rules","kPf2fubizWuVKOJPENOcfrkjES10gdTU95xUhxgpJiQ",[910,915,919,922,926,930,934,939,943,947,951,955,959,963,964,968,972,977,981,985,989,994,998,1002,1006,1011,1015,1019,1023,1027,1031,1035,1040],{"path":911,"title":912,"description":913,"section":914,"order":267},"\u002Fdocs\u002Fconcepts\u002Farchitecture","How Browser works","Python, a Node process and Playwright — what runs where, and where the files land.","concepts",{"path":916,"title":917,"description":918,"section":914,"order":76},"\u002Fdocs\u002Fconcepts\u002Fassertions","Assertions","Almost every getter can assert, every assertion retries, and each return type allows different operators. The complete AssertionEngine reference.",{"path":920,"title":168,"description":921,"section":914,"order":64},"\u002Fdocs\u002Fconcepts\u002Fbrowser-context-page","The three layers Playwright is built on — and why a new context is the cheapest clean slate you will ever get.",{"path":923,"title":924,"description":925,"section":914,"order":273},"\u002Fdocs\u002Fconcepts\u002Flogging","Logging and debugging","Four places Browser tells you what happened — log.html, the Playwright log, traces and coverage.",{"path":927,"title":928,"description":929,"section":914,"order":70},"\u002Fdocs\u002Fconcepts\u002Fselectors","Finding elements","Which selector strategy to reach for, why the order matters, and how to chain across iframes and shadow DOM.",{"path":931,"title":932,"description":933,"section":914,"order":261},"\u002Fdocs\u002Fconcepts\u002Fwaiting","Waiting and promises","Most waiting is already done for you. This is the rest of it — Wait For Condition, and how to run keywords in parallel with Promise To.",{"path":935,"title":936,"description":937,"section":938,"order":267},"\u002Fdocs\u002Fextending\u002Fbrowser-as-a-base","Browser as a base","Own the Browser instance in your own library — what you get free, what one line restores, and what you build yourself.","extending",{"path":940,"title":941,"description":942,"section":938,"order":70},"\u002Fdocs\u002Fextending\u002Fjavascript-basics","Just enough JavaScript","The JavaScript you need to write extensions and Evaluate JavaScript, for people who write Python.",{"path":944,"title":945,"description":946,"section":938,"order":76},"\u002Fdocs\u002Fextending\u002Fjavascript-extensions","JavaScript extensions","Add keywords that run on the Node side with full Playwright access — and attach a debugger to them.",{"path":948,"title":949,"description":950,"section":938,"order":261},"\u002Fdocs\u002Fextending\u002Fpython-libraries","Your own Python library","Move business logic out of Robot Framework and keep Browser exactly as it is.",{"path":952,"title":953,"description":954,"section":938,"order":64},"\u002Fdocs\u002Fextending\u002Fpython-plugins","Python plugins","Add or replace keywords from Python, with access to the library's own API and to the Node side.",{"path":956,"title":957,"description":958,"section":938,"order":273},"\u002Fdocs\u002Fextending\u002Ftranslations","Translating keywords","Using a translation package to get keyword names and documentation in your language, and writing one for a language nobody has covered yet.",{"path":960,"title":961,"description":962,"section":905,"order":64},"\u002Fdocs\u002Fhttp\u002Foverview","HTTP traffic","Send requests, wait for them, and fail, mock or change them. Which keyword sees which request, and the rules they share for matchers, bodies and headers.",{"path":904,"title":19,"description":901,"section":905,"order":261},{"path":965,"title":966,"description":967,"section":905,"order":70},"\u002Fdocs\u002Fhttp\u002Fsending-requests","Sending requests","HTTP sends a request from the page, Send API Request from the context. Which one to use, and how each sends bodies, forms and files.",{"path":969,"title":970,"description":971,"section":905,"order":76},"\u002Fdocs\u002Fhttp\u002Fwaiting","Waiting for traffic","Wait For Request and Wait For Response wait for a request or response of the page and return what was sent and received. Start the wait before the action, with Promise To.",{"path":973,"title":974,"description":975,"section":976,"order":261},"\u002Fdocs\u002Fmobile\u002Fdevice-list","Every device descriptor","The full list of names Get Device accepts, with the viewport, pixel ratio, touch and engine each one sets — filterable and sortable.","mobile",{"path":978,"title":979,"description":980,"section":976,"order":70},"\u002Fdocs\u002Fmobile\u002Fdevices","Emulating a device","Device descriptors, what the six or seven properties they set actually change, and the one that emulation cannot give you.",{"path":982,"title":983,"description":984,"section":976,"order":64},"\u002Fdocs\u002Fmobile\u002Fresponsive","Testing responsive pages","Why a browser at a phone-sized viewport tests responsiveness properly, what emulation cannot tell you, and where real devices actually belong.",{"path":986,"title":987,"description":988,"section":976,"order":76},"\u002Fdocs\u002Fmobile\u002Ftouch","Touch, permissions and location","Tap and why it needs hasTouch, granting camera or notifications without a dialog, faking where the user is, and the gestures Browser has no keyword for.",{"path":990,"title":991,"description":992,"section":993,"order":76},"\u002Fdocs\u002Foperations\u002Fdocker","Running in Docker","The published Browser image, the four docker run flags that matter, and why running as root breaks Chromium.","operations",{"path":995,"title":996,"description":997,"section":993,"order":261},"\u002Fdocs\u002Foperations\u002Fdocker-images","Building your own image","Extending the published image with your dependencies, the version lock between Browser and Playwright, and using it as a CI job container.",{"path":999,"title":1000,"description":1001,"section":993,"order":70},"\u002Fdocs\u002Foperations\u002Fenvironment-variables","Environment variables","The variables that change how Browser behaves, which of them are safe in production, and the import parameters that should usually be preferred.",{"path":1003,"title":1004,"description":1005,"section":993,"order":64},"\u002Fdocs\u002Foperations\u002Fnode-process","The Node process","Browser starts a Node process to talk to Playwright. What that costs, how to share one across parallel runs, and how to pass it Node flags.",{"path":1007,"title":1008,"description":1009,"section":1010,"order":76},"\u002Fdocs\u002Frecording\u002Farguments","Keyword arguments","Turn a recorded value, part of it or part of a selector into an argument while you record — with or without a default, and everywhere it occurs.","recording",{"path":1012,"title":1013,"description":1014,"section":1010,"order":267},"\u002Fdocs\u002Frecording\u002Ffiles","Where recorded keywords go","The suite file, a resource file or only the log; written live after every action; what the recorder changes in a file and what it never touches.",{"path":1016,"title":1017,"description":1018,"section":1010,"order":279},"\u002Fdocs\u002Frecording\u002Fpractice","Good practice and limits","How to record keywords worth keeping, what to check before you commit one, what the recorder cannot do, and what to do when it goes wrong.",{"path":1020,"title":1021,"description":1022,"section":1010,"order":64},"\u002Fdocs\u002Frecording\u002Frecord-keywords","Recording keywords","Click through the page and get a reusable user keyword, written into your suite while you work. Record Keyword and Record Keywords in five minutes.",{"path":1024,"title":1025,"description":1026,"section":1010,"order":273},"\u002Fdocs\u002Frecording\u002Fselectors","Recording selectors","Pick an element in the live browser and get a selector for it — Playwright's or a CSS one, checked against the page while you edit it.",{"path":1028,"title":1029,"description":1030,"section":1010,"order":70},"\u002Fdocs\u002Frecording\u002Ftoolbar","The recorder toolbar","Name and start keywords, save, undo and discard them, end the session, and keep the toolbar out of the page's way.",{"path":1032,"title":1033,"description":1034,"section":1010,"order":261},"\u002Fdocs\u002Frecording\u002Fwhat-gets-recorded","What gets recorded","Which Browser keyword each action becomes, how popups, dialogs, downloads and uploads are handled, recording assertions, and the selectors the recorder writes.",{"path":1036,"title":1037,"description":1038,"section":1039,"order":70},"\u002Fdocs\u002Fstart\u002Fgetting-started","Getting started","Install Browser, write a first test, and run it.","start",{"path":1041,"title":1042,"description":1043,"section":1039,"order":64},"\u002Fdocs\u002Fstart\u002Finstallation","Installation","The two ways to install Browser — with a bundled Node.js runtime, or with one you provide yourself — and how to upgrade and remove each.",[1045,1048,1051],{"to":1046,"label":1047},"\u002Fwhy\u002Fvs-cypress","vs Cypress",{"to":1049,"label":1050},"\u002Fwhy\u002Fvs-playwright","vs Playwright Test",{"to":1052,"label":1053},"\u002Fwhy\u002Fvs-seleniumlibrary","vs SeleniumLibrary",[1055],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Abort Requests\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">      **\u002Fanalytics\u002F**\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Mock Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">      **\u002Fapi\u002Forders    json=\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Modify Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders    status=500    headers={\"Retry-After\": \"5\"}\u003C\u002Fspan>\u003C\u002Fspan>",[1057],"\u003Cspan class=\"line\">\u003Cspan>Context · rule A  (on=Context)\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan>│\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan>├── Page 1 · rule B  (on=Page)   ← A and B\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan>├── Page 2                       ← A\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan>└── Page 3 · opened later        ← A\u003C\u002Fspan>\u003C\u002Fspan>",[1059],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#FF6B5E;font-weight:bold\">*** Test Cases ***\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Orders Show An Error Once\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    New Page\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">          ${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">APP_URL\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Mock Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    json=\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Mock Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    status=500\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    times=1\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=reload-orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA;font-style:italic\">    # gets the 500\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Get Text\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">          id=orders-status\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    ==\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    error\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=reload-orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA;font-style:italic\">    # gets ${orders}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Get Text\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">          id=orders-status\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    ==\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    loaded\u003C\u002Fspan>\u003C\u002Fspan>",[1061],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#FF6B5E;font-weight:bold\">*** Test Cases ***\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Orders Recover After Two Failures\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    New Page\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">          ${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">APP_URL\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Abort Requests\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    times=2\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=reload-orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA;font-style:italic\">    # aborted\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=reload-orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA;font-style:italic\">    # aborted\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=reload-orders\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA;font-style:italic\">    # reaches the server\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Get Text\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">          id=orders-status\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    ==\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    loaded\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Orders Recover When The Outage Ends\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    New Page\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">             ${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">APP_URL\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#A9B4BA\">    ${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">rule\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003Cspan style=\"color:#FF6B5E\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#2BD9CC\">            Abort Requests\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">                id=reload-orders\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Get Text\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=orders-status\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    ==\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    error\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Remove Route Rule\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">    ${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">rule\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Click\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">                id=reload-orders\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">    Get Text\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">             id=orders-status\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    ==\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    loaded\u003C\u002Fspan>\u003C\u002Fspan>",[1063],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Abort Requests\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002F**    errorCode=timedout\u003C\u002Fspan>\u003C\u002Fspan>",[1065],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Mock Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders    status=201    body=created    headers={\"Location\": \"\u002Fapi\u002Forders\u002F7\"}\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Mock Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fimg\u002Flogo.png    path=\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">${\u003C\u002Fspan>\u003Cspan style=\"color:#FFB86B\">CURDIR\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">}\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">\u002Flogo.png\u003C\u002Fspan>\u003C\u002Fspan>",[1067],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Modify Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapp.html    headers={\"Content-Security-Policy\": None}\u003C\u002Fspan>\u003C\u002Fspan>",[1069],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Modify Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Forders    request_url=\u002Fapi\u002Fv2\u002Forders\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Modify Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002F**        request_url=https:\u002F\u002Fstaging.example.com\u002Fapi\u002Forders\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#2BD9CC\">Modify Responses\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    **\u002Fapi\u002Fsearch    request_method=POST    request_body=\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">${{\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\"> {\"\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">q\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">\":\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\"> \"\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">robot\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\">\"}\u003C\u002Fspan>\u003Cspan style=\"color:#A9B4BA\"> }}\u003C\u002Fspan>\u003C\u002Fspan>",[1071],"\u003Cspan class=\"line\">\u003Cspan style=\"color:#FF6B5E;font-weight:bold\">*** Settings ***\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#C9A6E9\">Suite Setup\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">      New Context\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan style=\"color:#C9A6E9\">Test Teardown\u003C\u002Fspan>\u003Cspan style=\"color:#E0D3A3\">    Remove All Route Rules\u003C\u002Fspan>\u003C\u002Fspan>",[1073],"\u003Cspan class=\"line\">\u003Cspan>Added route rule 3f1c…: abort **\u002Fapi\u002Forders with failed, times=2, on=Context.\u003C\u002Fspan>\u003C\u002Fspan>\u003Cspan class=\"line\">\u003Cspan>Added route rule 7a2e…: mock **\u002Fapi\u002Forders with status 200 and json body, times=None, on=Context.\u003C\u002Fspan>\u003C\u002Fspan>",[1075],"\u003Cspan class=\"line\">\u003Cspan>Route rule 3f1c… ran for GET https:\u002F\u002Fexample.com\u002Fapi\u002Forders\u003C\u002Fspan>\u003C\u002Fspan>",1795470908277]