1"use strict";(self.webpackChunkKatalon_Docs=self.webpackChunkKatalon_Docs||[]).push([[9076],{28453:(e,o,n)=>{n.d(o,{R:()=>a,x:()=>d});var t=n(96540);const s={},i=t.createContext(s);function a(e){const o=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function d(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(i.Provider,{value:o},e.children)}},85989:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>l,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>t,toc:()=>r});const t=JSON.parse('{"id":"keywords/keyword-description-in-katalon-studio/windows-keywords/windows-close-application","title":"[Windows] Close Application","description":"Description","source":"@site/docs/katalon-studio/keywords/keyword-description-in-katalon-studio/windows-keywords/windows-close-application.md","sourceDirName":"keywords/keyword-description-in-katalon-studio/windows-keywords","slug":"/keywords/keyword-description-in-katalon-studio/windows-keywords/windows-close-application","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/windows-keywords/windows-close-application","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1758935351000,"frontMatter":{"title":"[Windows] Close Application"},"sidebar":"katalon-studio","previous":{"title":"[Windows] Clear Text","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/windows-keywords/windows-clear-text"},"next":{"title":"[Windows] Click","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/windows-keywords/windows-click"}}');var s=n(74848),i=n(28453);const a={title:"[Windows] Close Application"},d=void 0,l={},r=[{value:"Description",id:"description",level:2},{value:"Example",id:"example",level:2}];function c(e){const o={code:"code",h2:"h2",pre:"pre",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.h2,{id:"description",children:"Description"}),"\n",(0,s.jsxs)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:["Trigger a closing event of the running application on the Windows system. This action is similar to pressing ",(0,s.jsx)("span",{className:"ph uicontrol",children:"ALT"})," + ",(0,s.jsx)("span",{className:"ph uicontrol",children:"F4"})," and does not force the application to close. "]}),"\n",(0,s.jsx)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:"If there is a pop-up confirmation, you need to take some extra steps to actually close it."}),"\n",(0,s.jsxs)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:["Keyword name: ",(0,s.jsx)("code",{className:"ph codeph",children:"closeApplication"})]}),"\n",(0,s.jsx)(o.h2,{id:"example",children:"Example"}),"\n",(0,s.jsx)(o.pre,{children:(0,s.jsx)(o.code,{className:"language-jsx",children:'"Start the note pad application"\nWindows.startApplication(\'C:\\\\Windows\\\\System32\\\\notepad.exe\')\n\n"Close note pad application"\nWindows.closeApplication()\n'})})]})}function p(e={}){const{wrapper:o}={...(0,i.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.