[{"data":1,"prerenderedAt":445},["ShallowReactive",2],{"content-\u002Fguides\u002Fautomate-cookie-windows":3,"step-reference-paths":357,"content-doc-\u002Fguides\u002Fautomate-cookie-windows-inline":444},{"id":4,"title":5,"body":6,"date":333,"description":334,"extension":335,"meta":336,"navigation":351,"order":352,"path":353,"seo":354,"stem":355,"__hash__":356},"guides\u002Fguides\u002Fautomate-cookie-windows.md","Automate closing cookie windows, notification prompts and pop-ups",{"type":7,"value":8,"toc":324},"minimark",[9,12,16,21,23,63,67,69,106,111,127,130,142,146,148,151,155,172,176,178,250,254,256],[10,11],"hr",{},[13,14,15],"p",{},"A cookie window, a \"turn on notifications\" prompt, a newsletter box or a \"save your login\" dialog often appears in a cloud run that you never see on the same site. The cloud browser starts with no cookies and no login, it may be in a country where the site has to ask, and the site treats it as a first visit. If the automation does not expect the dialog, its next click lands on the overlay and the run fails. One optional click after the page opens handles it, whatever the dialog is.",[17,18,20],"h2",{"id":19},"before-you-begin","Before you begin",[10,22],{},[24,25,26,39],"ul",{},[27,28,29,30,38],"li",{},"An automation with a ",[31,32,34],"a",{"href":33},"\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fgo-to-page",[35,36,37],"strong",{},"Go to page"," step, or a step after which the dialog appears, such as a login.",[27,40,41,42,45,46,45,49,45,52,45,55,58,59,62],{},"The text of the button that closes the dialog, as it reads on screen: ",[35,43,44],{},"Accept all",", ",[35,47,48],{},"Reject all",[35,50,51],{},"Not Now",[35,53,54],{},"No thanks",[35,56,57],{},"Dismiss"," or ",[35,60,61],{},"Close",".",[17,64,66],{"id":65},"step-1-add-an-optional-click-that-presses-the-button-by-its-text","Step 1: Add an optional click that presses the button by its text",[10,68],{},[70,71,72,85,97],"ol",{},[27,73,74,75,81,82,84],{},"Directly after the step the dialog appears on, add a ",[31,76,78],{"href":77},"\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclick-element",[35,79,80],{},"Click element"," step. For a cookie window that is the ",[35,83,37],{}," step. For Instagram's notifications prompt it is the login.",[27,86,87,88,92,93,96],{},"Click ",[89,90,91],"code",{},"Select"," to open the selector tool, then click ",[35,94,95],{},"Custom"," in its toolbar.",[27,98,99,100,103,104,62],{},"Tick ",[35,101,102],{},"Use element text instead of HTML"," and type the button's label into the field, for example ",[35,105,51],{},[107,108],"img",{"src":109,"alt":110},"\u002Fguides\u002Fselector-tool-match-by-text.webp","The selector tool in Custom mode with Use element text instead of HTML ticked and Not Now typed into the field",[70,112,114,120],{"start":113},4,[27,115,87,116,119],{},[35,117,118],{},"Complete",". Matching by text works whichever cookie provider or site built the dialog, because the label is what you see rather than a class that changes.",[27,121,122,123,126],{},"Turn on ",[89,124,125],{},"Optional click",". If the dialog does not appear in a run, the step is skipped without an error and the automation continues.",[13,128,129],{},"The dialog is closed when it shows and ignored when it does not. The steps after it work on the page as normal.",[131,132,133],"blockquote",{},[13,134,135,138,139,141],{},[35,136,137],{},"Note:"," For cookies, rejecting usually keeps the site simpler on later pages. Accept them when the site needs them to work. For notification prompts, ",[35,140,51],{}," is the answer: a cloud browser cannot receive notifications.",[17,143,145],{"id":144},"example-instagrams-notifications-prompt","Example: Instagram's notifications prompt",[10,147],{},[13,149,150],{},"After signing in, Instagram shows this over the feed. The automation's next click would land on it.",[107,152],{"src":153,"alt":154},"\u002Fguides\u002Finstagram-2fa-notifications-prompt.webp","Instagram's Turn on Notifications prompt over the feed after signing in, with Turn On and Not Now buttons",[13,156,157,158,160,161,163,164,166,167,171],{},"A ",[35,159,80],{}," step with the text ",[35,162,51],{}," and ",[89,165,125],{}," on, placed after the login, closes it. The ",[31,168,170],{"href":169},"\u002Fguides\u002Finstagram-login-with-2fa","Instagram 2FA guide"," has the full login with this step in place.",[17,173,175],{"id":174},"if-selecting-by-text-does-not-work","If selecting by text does not work",[10,177],{},[24,179,180,216,237],{},[27,181,182,185,186,189,190,193,194,196,197,199,200,202,203,205,206,208,209,211,212,62],{},[35,183,184],{},"A custom CSS selector."," Open the site logged out so the dialog shows, right-click the button, choose ",[35,187,188],{},"Inspect",", and copy a stable id or class from it, such as ",[89,191,192],{},"#onetrust-accept-btn-handler",". In the ",[35,195,80],{}," step click ",[89,198,91],{},", then ",[35,201,95],{},", paste the selector into the field with ",[35,204,102],{}," unticked, and click ",[35,207,118],{},". Keep ",[89,210,125],{}," on. See ",[31,213,215],{"href":214},"\u002Fdocs\u002Fno-code-tool\u002Fthe-builder\u002Fselector-tool\u002Fcustom-css-selectors","custom CSS selectors",[27,217,218,221,222,228,229,232,233,236],{},[35,219,220],{},"Press keys to reach the button."," Add a ",[31,223,225],{"href":224},"\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fpress-key",[35,226,227],{},"Press key(s)"," step after the dialog appears with as many ",[35,230,231],{},"Tab"," presses as it takes to focus the button, then ",[35,234,235],{},"Enter",". Count the presses on the site logged out. This breaks if the dialog's layout changes.",[27,238,239,242,243,246,247,249],{},[35,240,241],{},"Store the cookie."," Turn on ",[89,244,245],{},"Store Cookie"," on the ",[35,248,37],{}," step. After one run has answered a cookie window, later runs keep the site's cookie and are not asked again until it expires. Keep the optional click for when it does. Prompts that a site shows every time, such as notifications, still need the click.",[17,251,253],{"id":252},"example-a-login-page-with-a-cookie-window","Example: a login page with a cookie window",[10,255],{},[257,258,259,274],"build-steps",{},[260,261,263],"template",{"v-slot:description":262},"",[70,264,265,268,271],{},[27,266,267],{},"Open the site's login page.",[27,269,270],{},"If a cookie window appears, reject the optional cookies and carry on either way.",[27,272,273],{},"Then sign in and do the work.",[260,275,276],{"v-slot:steps":262},[277,278,279],"guide",{},[24,280,281,293,315],{},[27,282,283,286,287,289,290,292],{},[35,284,285],{},"1.0"," ",[89,288,37],{},": the site's login page, ",[89,291,245],{}," on. {line=1}",[27,294,295,286,298,300,301,303,304,306,307,309,310,45,312,314],{},[35,296,297],{},"2.0",[89,299,80],{},": ",[89,302,91],{}," is ",[35,305,95],{}," with ",[35,308,102],{}," ticked and the text ",[35,311,48],{},[89,313,125],{}," on. {line=2}",[27,316,317,286,320,323],{},[35,318,319],{},"3.0",[89,321,322],{},"Log in with credentials",": the saved login, then the steps the automation is for. {line=3}",{"title":262,"searchDepth":325,"depth":325,"links":326},3,[327,329,330,331,332],{"id":19,"depth":328,"text":20},2,{"id":65,"depth":328,"text":66},{"id":144,"depth":328,"text":145},{"id":174,"depth":328,"text":175},{"id":252,"depth":328,"text":253},"2026-10-07","Cookie windows, \"turn on notifications\" prompts and other pop-ups appear in cloud runs and break the next click. Add one optional click that presses the dialog's button by its text, so the run closes it when it shows and carries on when it does not.","md",{"socialImage":337,"updated":338,"read":339,"level":340,"type":341,"format":277,"intent_type":342,"intent":343,"tags":344,"platfrom":349},"\u002Fsocial\u002Fguides\u002Fautomate-cookie-windows.png","2026-10-08","5 minutes","Easy","no-code","pattern","Interact with pages",[345,346,347,348],"cookies","pop-ups","cloud","selectors",[350],"Any",true,null,"\u002Fguides\u002Fautomate-cookie-windows",{"title":5,"description":334},"guides\u002Fautomate-cookie-windows","3aneCvzz3liNfLeAdgK5J7j47beeQiugPO5yqxK5ta8",{"add error metadata":358,"add row numbers":359,"append or merge data":360,"back":361,"clear cookies":362,"clear data from a google sheet":363,"click element":77,"click multiple elements":364,"click social media buttons":365,"get clipboard contents":366,"close browser tab":367,"conditionally jump to another":368,"continue only if a condition is met":369,"count rows":370,"create a new google sheet":371,"get current bot url":372,"enter custom data":373,"date picker":374,"date and time":375,"delete from google drive":376,"delete rows from a google sheet":377,"display a message":378,"download file from url":379,"download file":380,"download files":381,"download a file to google drive":382,"edit row":383,"end loop":384,"end run":385,"enter text":386,"export to csv":387,"find row":388,"generate authenticator code":389,"generate random password":390,"get a list of links from a page":391,"get a list of links from a url":392,"get data from a url":393,"get data from a webpage":394,"go to page":33,"group steps":395,"if a condition is true, run steps":396,"if else condition":397,"import csv file":398,"integrate ai":399,"interact":400,"join different data sources based on matching columns":401,"jump to another":402,"log in with credentials":403,"loop":404,"mouse click and drag":405,"move a google sheet to a new folder in google drive":406,"open a new tab":407,"press keys(s)":224,"read data from a google sheet":408,"read data from airtable":409,"read data from excel sheet":410,"read file from google drive":411,"read local file":412,"receive data from another app":413,"remove duplicates":414,"remove html code":415,"remove results that contain certain words":416,"remove results which do not contain certain words":417,"replace text":418,"restart browser":419,"rollover element":420,"run another axiom":421,"save page html":422,"save screenshot locally":423,"save screenshot to google drive":424,"scrape metadata":425,"select list":426,"select random rows":427,"send an email":428,"solve captcha":429,"split a name into columns":430,"split by character":431,"swap rows and columns":432,"switch browser tab":433,"trigger webhook":434,"try catch":435,"upload a file":436,"upload a file from google drive":437,"wait":438,"wait for 2fa code":439,"write data to a google sheet":440,"write data to airtable":441,"write data to a excel sheet":442,"write javascript":443,"loop through data":404,"if condition":396,"get data from bot's current page":394,"get data from a bot url":393,"find row in a google sheet":388,"edit row in a google sheet":383,"press key(s)":224,"try \u002F catch":435,"interact with a page":400,"write data to an excel sheet":442,"get current url":372,"conditionally jump to another step":368,"jump to another step":402,"save page as html":422},"\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fadd-error-metadata","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fadd-row-numbers","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fappend-or-merge-data","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fback","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclear-cookies","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclear-data-from-a-google-sheet","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclick-multiple-elements","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclick-social-media-buttons","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclipboard","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fclose-tab","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fconditionall-jump-step","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fcontinue-if-condition-met","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fcount-rows","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fcreate-a-new-google-sheet","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fcurrent-url","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fcustom-data","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdate-picker","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdate-time","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdelete-files-from-google-drive","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdelete-rows-from-a-google-sheet","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdisplay-a-message","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdownload-file-from-url","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdownload-file-step","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdownload-files","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fdownload-files-to-google-drive","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fedit-row","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fend-loop","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fend-run","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fenter-text","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fexport-csv-file","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Ffind-row","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fgenerate-authenticator-code","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fgenerate-random-password","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fget-a-list-of-links-to-pages","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fget-a-list-of-links-url","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fget-data-from-url","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fget-data-from-website","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fgroup-steps","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fif-condtion","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fif-else-condition","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fimport-csv-file","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fintegrate-ai","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Finteract-with-a-pages-interface","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fjoin-different-data-sources","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fjump-step","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Flog-in-with-credentials","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Floop","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fmouse-click-and-drag","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fmove-a-google-sheet","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fopen-tab","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fread-data-from-a-google-sheet-step","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fread-data-from-airtable","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fread-data-from-excel","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fread-file-from-google-drive","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fread-local-file","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Freceive-data-from-another-app","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fremove-duplicates","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fremove-html-code","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fremove-results-that-contain-certain-words","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fremove-results-which-do-not-contain-certain-words","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Freplace-text-step","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Frestart-browser","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Frollover-element","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Frun-another-axiom","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsave-page-as-html","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsave-screenshot-locally","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsave-screenshot-to-google-drive","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fscrape-metadata","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fselect-list","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fselect-random-rows","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsend-an-email","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsolve-captcha","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsplit-a-name-into-columns","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fsplit-by-character","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fswap-rows-and-columns","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fswitch-browser-tab","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Ftrigger-webhook","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Ftry-catch","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fupload-file","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fupload-file-google-drive","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fwait","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fwait-for-2fa-code","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fwrite-data-to-a-google-sheet-step","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fwrite-data-to-airtable","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fwrite-data-to-an-excel-sheet","\u002Fdocs\u002Fno-code-tool\u002Freference\u002Fsteps\u002Fwrite-javascript",{"id":4,"title":5,"body":6,"date":333,"description":334,"extension":335,"meta":336,"navigation":351,"order":352,"path":353,"seo":354,"stem":355,"__hash__":356,"socialImage":337,"updated":338,"read":339,"level":340,"type":341,"format":277,"intent_type":342,"intent":343,"tags":344,"platfrom":349},1791457643704]