{"id":69561,"date":"2019-12-30T16:43:47","date_gmt":"2019-12-30T11:13:47","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=69561"},"modified":"2024-04-12T14:21:53","modified_gmt":"2024-04-12T08:51:53","slug":"xcuitest-mobile-gestures","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/","title":{"rendered":"XCUITest Mobile Gestures"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/mobile-testing-appium-tutorials\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to tutorial<\/a><\/p>\n\n\n<h1><strong>XCUITest Mobile Gestures<\/strong><\/h1>\n<p>Let us now learn more about XCUITest Mobile Gestures. So before we begin, we all know that Apple&#8217;s XCTest framework does not natively support W3C standards for TouchAction interface implementation. Although, it provides rich set of gestures, including these, that are unique for iOS platform. It is possible to directly invoke these gestures in Appium.&nbsp;It is important to remember that XCTest and WDA are being constantly changed. This means all &#8220;mobile: *&#8221; commands can be also subject of change in Appium without any preliminary notice.<\/p>\n<p><em>mobile: swipe<\/em><\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>direction: Either &#8216;up&#8217;, &#8216;down&#8217;, &#8216;left&#8217; or &#8216;right&#8217;. The parameter is mandatory<\/li>\n<li>element: The internal element identifier (as hexadecimal hash string) to swipe on. Application element will be used instead if this parameter is not provided<\/li>\n<\/ul>\n<p><em>mobile: scroll<\/em><\/p>\n<p>Scrolls the element or the whole screen. Different scrolling strategies are supported. Arguments define the choosen strategy: either &#8216;name&#8217;, &#8216;direction&#8217;, &#8216;predicateString&#8217; or &#8216;toVisible&#8217; in that order. Although, there is one known limitation there: in case it is necessary to perform too many scroll gestures on parent container to reach the necessary child element (tens of them) then the method call may fail.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<li>name<\/li>\n<li>direction<\/li>\n<li>predicateString<\/li>\n<li>toVisible<\/li>\n<\/ul>\n<p><em>mobile: doubleTap<\/em><\/p>\n<p>Performs double tap gesture on the given element or on the screen.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<li>x: Screen x tap coordinate of type float.<\/li>\n<li>y: Screen y tap coordinate of type float.<\/li>\n<\/ul>\n<p><em>mobile: touchAndHold<\/em><\/p>\n<p>Performs long press gesture on the given element or on the screen.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<li>duration<\/li>\n<li>x: Screen x long tap coordinate of type float.<\/li>\n<li>y: Screen y long tap coordinate of type float.<\/li>\n<\/ul>\n<p><em>mobile: twoFingerTap<\/em><\/p>\n<p>Performs two finger tap gesture on the given element or on the application element.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<\/ul>\n<p><em>mobile: tap<\/em><\/p>\n<p>Performs tap gesture by coordinates on the given element or on the screen.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<li>x: x tap coordinate of type float. Mandatory parameter<\/li>\n<li>y: y tap coordinate of type float. Mandatory parameter<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><em>mobile: dragFromToForDuration<\/em><\/p>\n<p>Performs drag and drop gesture by coordinates. This can be done either on an element or on the screen<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<li>duration<\/li>\n<li>fromX: The x coordinate of starting drag point (type float). Mandatory parameter<\/li>\n<li>fromY: The y coordinate of starting drag point (type float). Mandatory parameter<\/li>\n<li>toX: The x coordinate of ending drag point (type float). Mandatory parameter<\/li>\n<li>toY: The y coordinate of ending drag point (type float). Mandatory parameter<\/li>\n<\/ul>\n<p><em>mobile: selectPickerWheelValue<\/em><\/p>\n<p>Performs selection of the next or previous picker wheel value. This might be useful if these values are populated dynamically, so you don&#8217;t know which one to select or value selection does not work because of XCTest bug.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>element<\/li>\n<li>order<\/li>\n<li>offset<\/li>\n<\/ul>\n<p><em>mobile: alert<\/em><\/p>\n<p>Performs operations on NSAlert instance.<\/p>\n<p><strong>Supported arguments<\/strong><\/p>\n<ul>\n<li>action<\/li>\n<li>buttonLabel<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong>Enrich your profile and become Job Ready. Practice and Prepare for&nbsp;<a href=\"https:\/\/www.vskills.in\/certification\/testing\/mobile-testing-appium-professional\">Mobile Testing (Appium) Exam<\/a>&nbsp;Now!<\/strong><\/h4>\n<h4><strong>Get expert advice and hundreds of Free Test \u2013 Try&nbsp;<a href=\"https:\/\/www.vskills.in\/practice\/index.php?route=test\/search&amp;search=appium\">Mobile Testing (Appium) Practice Questions<\/a>&nbsp;Now!<\/strong><\/h4>\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/mobile-testing-appium-tutorials\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to tutorial XCUITest Mobile Gestures Let us now learn more about XCUITest Mobile Gestures. So before we begin, we all know that Apple&#8217;s XCTest framework does not natively support W3C standards for TouchAction interface implementation. Although, it provides rich set of gestures, including these, that are unique for iOS platform. It is possible&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[7891],"tags":[7983],"class_list":["post-69561","page","type-page","status-publish","hentry","category-mobile-testing-appium","tag-xcuitest-mobile-gestures"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>XCUITest Mobile Gestures - VskillsTutorial<\/title>\n<meta name=\"description\" content=\"Get ready to boost your learning and prepare to become Certified Mobile Testing Professional. Learn mor about XCUITest Mobile Gestures Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"XCUITest Mobile Gestures - VskillsTutorial\" \/>\n<meta property=\"og:description\" content=\"Get ready to boost your learning and prepare to become Certified Mobile Testing Professional. Learn mor about XCUITest Mobile Gestures Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:51:53+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/\",\"name\":\"XCUITest Mobile Gestures - VskillsTutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2019-12-30T11:13:47+00:00\",\"dateModified\":\"2024-04-12T08:51:53+00:00\",\"description\":\"Get ready to boost your learning and prepare to become Certified Mobile Testing Professional. Learn mor about XCUITest Mobile Gestures Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"XCUITest Mobile Gestures\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"XCUITest Mobile Gestures - VskillsTutorial","description":"Get ready to boost your learning and prepare to become Certified Mobile Testing Professional. Learn mor about XCUITest Mobile Gestures Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/","og_locale":"en_US","og_type":"article","og_title":"XCUITest Mobile Gestures - VskillsTutorial","og_description":"Get ready to boost your learning and prepare to become Certified Mobile Testing Professional. Learn mor about XCUITest Mobile Gestures Now!","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:51:53+00:00","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/","name":"XCUITest Mobile Gestures - VskillsTutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2019-12-30T11:13:47+00:00","dateModified":"2024-04-12T08:51:53+00:00","description":"Get ready to boost your learning and prepare to become Certified Mobile Testing Professional. Learn mor about XCUITest Mobile Gestures Now!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/xcuitest-mobile-gestures\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"XCUITest Mobile Gestures"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/69561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=69561"}],"version-history":[{"count":5,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/69561\/revisions"}],"predecessor-version":[{"id":84622,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/69561\/revisions\/84622"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=69561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=69561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=69561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}