1"use strict";(self.webpackChunkKatalon_Docs=self.webpackChunkKatalon_Docs||[]).push([[13649],{28453:(e,_,a)=>{a.d(_,{R:()=>i,x:()=>s});var t=a(96540);const d={},n=t.createContext(d);function i(e){const _=t.useContext(n);return t.useMemo((function(){return"function"==typeof e?e(_):{..._,...e}}),[_,e])}function s(e){let _;return _=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),t.createElement(n.Provider,{value:_},e.children)}},63064:(e,_,a)=>{a.r(_),a.d(_,{assets:()=>c,contentTitle:()=>s,default:()=>b,frontMatter:()=>i,metadata:()=>t,toc:()=>r});const t=JSON.parse('{"id":"keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-tap","title":"[Mobile] Tap","description":"Description","source":"@site/docs/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-tap.md","sourceDirName":"keywords/keyword-description-in-katalon-studio/mobile-keywords","slug":"/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-tap","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-tap","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1758935351000,"frontMatter":{"title":"[Mobile] Tap"},"sidebar":"katalon-studio","previous":{"title":"[Mobile] Take Raw Screenshot","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-take-raw-screenshot"},"next":{"title":"[Mobile] Tap At Position","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-tap-at-position"}}');var d=a(74848),n=a(28453);const i={title:"[Mobile] Tap"},s=void 0,c={},r=[{value:'<a class="anchor_top_offset"></a>Description',id:"description",level:2},{value:'<a class="anchor_top_offset"></a>Parameters',id:"parameters",level:2},{value:'<a class="anchor_top_offset"></a>Example',id:"example",level:2}];function o(e){const _={h2:"h2",...(0,n.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(_.h2,{id:"description",children:[(0,d.jsx)("a",{id:"id_0__id_1",class:"anchor_top_offset"}),"Description"]}),"\n",(0,d.jsx)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:"Tap on a mobile element."}),"\n",(0,d.jsxs)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:["Keyword name: ",(0,d.jsx)("code",{className:"ph codeph",children:"Mobile.tap"})]}),"\n",(0,d.jsxs)(_.h2,{id:"parameters",children:[(0,d.jsx)("a",{id:"id_0__id_2",class:"anchor_top_offset"}),"Parameters"]}),"\n",(0,d.jsxs)("table",{xmlns:"http://www.w3.org/1999/xhtml",className:"table anchor_top_offset",id:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7",children:[(0,d.jsx)("caption",{}),(0,d.jsx)("thead",{className:"thead",children:(0,d.jsxs)("tr",{className:!0,children:[(0,d.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1",children:"Param"}),(0,d.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2",children:"Param Type"}),(0,d.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3",children:"Required"}),(0,d.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4",children:"Description"})]})}),(0,d.jsxs)("tbody",{className:"tbody",children:[(0,d.jsxs)("tr",{className:!0,children:[(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"to"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"TestObject"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"Yes"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"Represent a mobile element."})]}),(0,d.jsxs)("tr",{className:!0,children:[(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"timeout"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"int"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"Yes"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"Maximum period of time (in seconds) that system will wait to return result."})]}),(0,d.jsxs)("tr",{className:!0,children:[(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"flowControl"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"FailureHandling"}),(0,d.jsx)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:"Optional"}),(0,d.jsxs)("td",{className:"entry",headers:"id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__1 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__2 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__3 id_0__2ca65798-daeb-4b88-9c0e-b85730f26db7__entry__4 ",children:["Specify ",(0,d.jsx)("a",{className:"xref",href:"/katalon-studio/maintain-tests/configure-failure-handling-settings-in-katalon-studio",children:"failure handling"})," schema to determine whether the execution should be allowed to continue or stop."]})]})]})]}),"\n",(0,d.jsxs)(_.h2,{id:"example",children:[(0,d.jsx)("a",{id:"id_0__id_3",class:"anchor_top_offset"}),"Example"]}),"\n",(0,d.jsx)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:"You want to tap on 'Graphics' control:"}),"\n",(0,d.jsx)("pre",{xmlns:"http://www.w3.org/1999/xhtml",className:"pre codeblock",children:(0,d.jsxs)("code",{children:["import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase","\n","import static com.kms.katalon.core.testdata.TestDataFactory.findTestData","\n","import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject","\n","import internal.GlobalVariable as GlobalVariable","\n","import com.kms.katalon.core.configuration.RunConfiguration as RunConfiguration","\n","import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile","\n","import com.kms.katalon.core.util.internal.PathUtil as PathUtil","\n","\n","'Start application on current selected android's device'","\n","Mobile.startApplication(GlobalVariable.G_AndroidApp, false)","\n","\n","'Tap on graphics control'","\n","Mobile.tap(findTestObject('Application/android.widget.TextView - Graphics'), GlobalVariable.G_Timeout)","\n","\n","'Close application on current selected android's device'","\n","Mobile.closeApplication()","\n"]})})]})}function b(e={}){const{wrapper:_}={...(0,n.R)(),...e.components};return _?(0,d.jsx)(_,{...e,children:(0,d.jsx)(o,{...e})}):o(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.