{"id":316875,"date":"2021-01-25T03:00:34","date_gmt":"2021-01-25T03:00:34","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=316875"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=316875","title":{"rendered":"\u041f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 iOS. \u0427\u0430\u0441\u0442\u044c 2. \u041a\u0430\u043a \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u0441\u0442\u0430\u0445"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e53\/907\/e75\/e53907e756b11593858f6a0d9e6451b6.jpg\" width=\"1625\" height=\"916\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/company\/vivid_money\/blog\/533180\/\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 ui-\u0442\u0435\u0441\u0442\u044b \u0438 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c accessibilityidentifier.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c:<\/p>\n<ol>\n<li>\n<p>\u041a\u0430\u043a \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0432\u0430\u0448\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0441\u0441\u0435\u0440\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<\/li>\n<\/ol>\n<h2>\u041a\u0430\u043a \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b<\/h2>\n<p>\u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u0439\u0434\u0438\u0448\u043d\u0438\u043a\u0430 \u0443 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438.<\/p>\n<pre><code class=\"swift\">XCUIApplication().buttons[\"Help\"]<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 id \u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0439\u0442\u0438 \u0435\u0433\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 XCUIElementQuery. \u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438.<\/p>\n<pre><code class=\"swift\">\/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 scroll view (\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u0430 scroll view) XCUIApplication().scrollViews[\"Main\"].children(matching: .button)  \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 scroll view (\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u0430 scroll view, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438 \u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432) XCUIApplication().scrollViews[\"Main\"].descendants(matching: .button)      \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 XCUIApplication().buttons.element(boundBy: 3)  \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432 scroll view ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 label = identifier XCUIApplication().scrollViews[\"Main\"].containing(NSPredicate(format: \"label == %@\",\"identifier\").element  \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 XCUIApplication().buttons.firstMatch<\/code><\/pre>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e NSPredicate \u2014 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u043e \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u0432\u0430\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044e. <a href=\"https:\/\/www.hackingwithswift.com\/read\/38\/7\/examples-of-using-nspredicate-to-filter-nsfetchrequest\">\u0421\u0442\u0430\u0442\u044c\u044f \u0441 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c NSPredicate<\/a>.  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439:<\/p>\n<pre><code class=\"swift\">let moneyTitle: XCUIElement = XCUIApplication().staticTexts[\"accessibilityID\"]<\/code><\/pre>\n<h2>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h2>\n<h3>\u041d\u0430\u0436\u0430\u0442\u0438\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432 \u0441\u0432\u043e\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c: \u043d\u0430\u0436\u0430\u0442\u0438\u0435, \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0438 drag&amp;drop ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b \u2014 Tapping and Pressing.<\/p>\n<pre><code class=\"swift\">\/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 XCUIApplication().buttons.element.tap()  \/\/ C\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 XCUIApplication().buttons.element.doubleTap()  \/\/ \u0423\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0432 forDuration XCUIApplication().buttons.element.press(forDuration: 3)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 XCUIApplication().buttons.element.press(forDuration: 3, thenDragTo: XCUIApplication().searchFields.element)<\/code><\/pre>\n<h3>\u0412\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0431\u0443\u043a\u0432\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435:<\/p>\n<pre><code class=\"swift\">XCUIApplication().textFields.element.tap() XCUIApplication().keys[\"h\"].tap() XCUIApplication().keys[\"e\"].tap() XCUIApplication().keys[\"l\"].tap() XCUIApplication().keys[\"p\"].tap()<\/code><\/pre>\n<p>\u041b\u0438\u0431\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0446\u0435\u043b\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"swift\">XCUIApplication().textFields.element.typeText(\"help\")<\/code><\/pre>\n<p><a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\/1500968-typetext\">\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u043c\u0435\u0442\u043e\u0434\u0443 typeText<\/a><\/p>\n<h3>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445.<\/p>\n<pre><code class=\"swift\">\/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0434\u0432\u0443\u043c\u044f \u043f\u0430\u043b\u044c\u0446\u0430\u043c\u0438 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 XCUIApplication().buttons.element.twoFingerTap()  \/*      \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438      \u0432 withNumberOfTaps \u0438 \u0441\u0442\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \"\u043f\u0430\u043b\u044c\u0446\u0430\u043c\u0438\" \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438      \u0432 numberOfTouches *\/ XCUIApplication().buttons.element.tap(withNumberOfTaps: 1, numberOfTouches: 1)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b \u2014 Multiple Taps.<\/p>\n<h3>\u0416\u0435\u0441\u0442\u044b<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0436\u0435\u0441\u0442\u044b \u0432 \u0441\u0432\u043e\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445.<\/p>\n<pre><code class=\"swift\">\/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0441\u0432\u0430\u0439\u043f \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 swipeLeft() swipeRight() swipeUp() swipeDown()  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0441\u0432\u0430\u0439\u043f \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e swipeLeft(velocity: 0.5) swipeRight(velocity: 0.5) swipeUp(velocity: 0.5) swipeDown(velocity: 0.5)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u044f ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (withScale \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 1) XCUIApplication().images.element(boundBy: 0).pinch(withScale: 2, velocity: 1)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043e\u0442\u0434\u0430\u043b\u0435\u043d\u0438\u044f ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (withScale \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0442 0 \u0434\u043e 1) XCUIApplication().images.element(boundBy: 0).pinch(withScale: 0.5, velocity: 1)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 XCUIApplication().images.element(boundBy: 0).rotate(0.5, withVelocity: 0.5)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b \u2014 Performing Gestures.<\/p>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 UISlider<\/h3>\n<p>UISlider \u2014 \u044d\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9ba\/cc9\/921\/9bacc9921a62361430e567ec5f075a80.png\" width=\"632\" height=\"684\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430 \u0432 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0435, \u043c\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 0 \u0434\u043e 1. \u0413\u0434\u0435 0 \u2014 \u044d\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0435, \u0430 1 \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0430\u0439\u0434\u0435\u0440 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 100 \u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 25. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"swift\">XCUIApplication().sliders.element.adjust(toNormalizedSliderPosition: 0.25)<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 UIPickerView \u0438 UIDatePicker<\/h3>\n<p>UIPickerView \u0438 UIDatePicker \u2014 \u044d\u0442\u043e ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 &#171;\u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0438&#187; \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/318\/de1\/07f\/318de107fc0932ee441f1fc87490f000.png\" width=\"572\" height=\"1238\"><figcaption><\/figcaption><\/figure>\n<p>XCUIElement \u0438\u043c\u0435\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 UIPickerView \u0438 UIDatePicker:<\/p>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u043f\u0438\u043a\u0435\u0440\u043e\u0432 \u0441 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043b\u0435\u0441\u043e\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 element(), \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043f\u0438\u043a\u0435\u0440\u043e\u0432 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043a\u043e\u043b\u0435\u0441\u0430\u043c\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043a\u043e\u043b\u0435\u0441\u0443 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">\/\/ \u041f\u0438\u043a\u0435\u0440 \u0441 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043b\u0435\u0441\u043e\u043c XCUIApplication().pickerWheels.element.adjust(toPickerWheelValue: \"BMW\")  \/\/ \u041f\u0438\u043a\u0435\u0440 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043a\u043e\u043b\u0435\u0441\u0430\u043c\u0438 XCUIApplication().pickerWheels.elementBoundByIndex(0).adjust(toPickerWheelValue: \"BMW\") XCUIApplication().pickerWheels.elementBoundByIndex(1).adjust(toPickerWheelValue: \"X6\")<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u043b\u0435\u0440\u0442\u043e\u043c<\/h3>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u043b\u0435\u0440\u0442 \u2014 \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f97\/a0d\/c46\/f97a0dc4624c1c4b3d478f2b08a3683f.png\" width=\"632\" height=\"1368\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c, \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 addUIInterruptionMonitor(withDescription:handler:)<\/p>\n<p>\u0413\u0434\u0435 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>withDescription \u2014 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0430\u043b\u0435\u0440\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>handler &#8212; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0442\u0435\u0441\u0442\u0430\u0445:<\/p>\n<pre><code class=\"swift\">addUIInterruptionMonitor(withDescription: \"Current Location Not Available\") { alert in     alert.buttons[\"OK\"].tap()     return true }<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 Navigation Bar<\/h3>\n<p>Navigation bar \u2014 \u044d\u0442\u043e \u043f\u0430\u043d\u0435\u043b\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 status bar \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/53b\/d06\/a53\/53bd06a53a24d26f465dd3445c6e0bf4.png\" width=\"632\" height=\"684\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0432 Navigation Bar.<\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0438\u0445 \u0438\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441 \u043d\u0438\u043c\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"swift\">\/\/ \u0418\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0439\u043d\u044e\u044e \u043b\u0435\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 Navigation bar  let leftNavBarButton = XCUIApplication().navigationBars.children(matching: .button).firstMatch  \/\/ \u0418\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0442\u0435\u0441\u0442 \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0432 Navigation bar  let topicNavBar = XCUIApplication().navigationBars.children(matching: .staticTexts).firstMatch  \/\/ \u0418\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0439\u043d\u044e\u044e \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 Navigation bar let rightNavBarButton = XCUIApplication().navigationBars.children(matching: .button).element(boundBy: 1)  \/\/ \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432 Navigation bar  leftNavBarButton.tap() rightNavBarButton.tap()  \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432 Navigation bar  XCTAssertEqual(topicNavBar.title, \"Topic\")<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 Tab bar<\/h3>\n<p>Tab bar \u2014 \u044d\u0442\u043e \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041e\u043d\u0430 \u0434\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ac2\/761\/a78\/ac2761a78c14f268e608d093248b818d.png\" width=\"632\" height=\"684\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0432\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043f\u0430\u0442\u044c \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 Tab bar.<\/p>\n<pre><code class=\"swift\">\/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443  XCUIApplication().tabBars.buttons.element(boundBy: 0) \/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0440\u0435\u0442\u044c\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 XCUIApplication().tabBars.buttons.element(boundBy: 2)<\/code><\/pre>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432:<\/h2>\n<p>\u0410\u0441\u0441\u0435\u0440\u0442\u044b \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"swift\">\/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 XCTAssertTrue(XCUIApplication().buttons[\"Warning\"].exists)  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0430 XCTAssertFalse(XCUIApplication().buttons[\"Warning\"].isSelected)  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e title \u043a\u043d\u043e\u043f\u043a\u0438 \u0440\u0430\u0432\u0435\u043d - Buy XCTAssertEqual(XCUIApplication().buttons.element.title, \"Buy\")  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e placeholder \u0432 textFields \u043d\u0435 \u0440\u0430\u0432\u0435\u043d - placeHolder XCTAssertNotEqual(XCUIApplication().textFields.element.placeholderValue, \"placeHolder\")  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e value \u0432 textFields \u0440\u0430\u0432\u043d\u043e - value XCTAssertEqual(XCUIApplication().textFields.element.value, \"value\")<\/code><\/pre>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b Test Assertions<\/p>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielementattributes\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/h2>\n<p>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0435 \u0442\u0430\u043a \u0441\u043b\u043e\u0436\u043d\u043e, \u043a\u0430\u043a \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0432\u044b\u0448\u0435, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 ui-\u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u043e \u0436\u0438\u0437\u043d\u0435\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u041a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043f\u043e\u0441\u043b\u0435\u0443\u0441\u043b\u043e\u0432\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0435\u0440\u043c\u0438\u0448\u0435\u043d\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0442\u0435\u0441\u0442\u043e\u0432 (\u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0433\u0430\u043b\u0435\u0440\u0435\u0435, \u0444\u043e\u0442\u043e \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435);<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e bundle identifier (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0430\u0444\u0430\u0440\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435);<\/p>\n<\/li>\n<li>\n<p>\u0418 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/vivid_money\/blog\/538708\/\"> https:\/\/habr.com\/ru\/company\/vivid_money\/blog\/538708\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/company\/vivid_money\/blog\/533180\/\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 ui-\u0442\u0435\u0441\u0442\u044b \u0438 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c accessibilityidentifier.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c:<\/p>\n<ol>\n<li>\n<p>\u041a\u0430\u043a \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0432\u0430\u0448\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0441\u0441\u0435\u0440\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<\/li>\n<\/ol>\n<h2>\u041a\u0430\u043a \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b<\/h2>\n<p>\u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0430\u0439\u0434\u0438\u0448\u043d\u0438\u043a\u0430 \u0443 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438.<\/p>\n<pre><code class=\"swift\">XCUIApplication().buttons[\"Help\"]<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 id \u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0439\u0442\u0438 \u0435\u0433\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 XCUIElementQuery. \u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438.<\/p>\n<pre><code class=\"swift\">\/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 scroll view (\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u0430 scroll view) XCUIApplication().scrollViews[\"Main\"].children(matching: .button)  \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 scroll view (\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u0430 scroll view, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438 \u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432) XCUIApplication().scrollViews[\"Main\"].descendants(matching: .button)      \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 XCUIApplication().buttons.element(boundBy: 3)  \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432 scroll view ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 label = identifier XCUIApplication().scrollViews[\"Main\"].containing(NSPredicate(format: \"label == %@\",\"identifier\").element  \/\/ \u041d\u0430\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 XCUIApplication().buttons.firstMatch<\/code><\/pre>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e NSPredicate \u2014 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u043e \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u0432\u0430\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044e. <a href=\"https:\/\/www.hackingwithswift.com\/read\/38\/7\/examples-of-using-nspredicate-to-filter-nsfetchrequest\">\u0421\u0442\u0430\u0442\u044c\u044f \u0441 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c NSPredicate<\/a>.  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439:<\/p>\n<pre><code class=\"swift\">let moneyTitle: XCUIElement = XCUIApplication().staticTexts[\"accessibilityID\"]<\/code><\/pre>\n<h2>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h2>\n<h3>\u041d\u0430\u0436\u0430\u0442\u0438\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432 \u0441\u0432\u043e\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c: \u043d\u0430\u0436\u0430\u0442\u0438\u0435, \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0438 drag&amp;drop ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b \u2014 Tapping and Pressing.<\/p>\n<pre><code class=\"swift\">\/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 XCUIApplication().buttons.element.tap()  \/\/ C\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 XCUIApplication().buttons.element.doubleTap()  \/\/ \u0423\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0432 forDuration XCUIApplication().buttons.element.press(forDuration: 3)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 XCUIApplication().buttons.element.press(forDuration: 3, thenDragTo: XCUIApplication().searchFields.element)<\/code><\/pre>\n<h3>\u0412\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0431\u0443\u043a\u0432\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435:<\/p>\n<pre><code class=\"swift\">XCUIApplication().textFields.element.tap() XCUIApplication().keys[\"h\"].tap() XCUIApplication().keys[\"e\"].tap() XCUIApplication().keys[\"l\"].tap() XCUIApplication().keys[\"p\"].tap()<\/code><\/pre>\n<p>\u041b\u0438\u0431\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0446\u0435\u043b\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"swift\">XCUIApplication().textFields.element.typeText(\"help\")<\/code><\/pre>\n<p><a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\/1500968-typetext\">\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u043c\u0435\u0442\u043e\u0434\u0443 typeText<\/a><\/p>\n<h3>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u0432 \u0441\u0432\u043e\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445.<\/p>\n<pre><code class=\"swift\">\/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0434\u0432\u0443\u043c\u044f \u043f\u0430\u043b\u044c\u0446\u0430\u043c\u0438 \u043d\u0430 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 XCUIApplication().buttons.element.twoFingerTap()  \/*      \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438      \u0432 withNumberOfTaps \u0438 \u0441\u0442\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \"\u043f\u0430\u043b\u044c\u0446\u0430\u043c\u0438\" \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438      \u0432 numberOfTouches *\/ XCUIApplication().buttons.element.tap(withNumberOfTaps: 1, numberOfTouches: 1)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b \u2014 Multiple Taps.<\/p>\n<h3>\u0416\u0435\u0441\u0442\u044b<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0436\u0435\u0441\u0442\u044b \u0432 \u0441\u0432\u043e\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445.<\/p>\n<pre><code class=\"swift\">\/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0441\u0432\u0430\u0439\u043f \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 swipeLeft() swipeRight() swipeUp() swipeDown()  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0441\u0432\u0430\u0439\u043f \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e swipeLeft(velocity: 0.5) swipeRight(velocity: 0.5) swipeUp(velocity: 0.5) swipeDown(velocity: 0.5)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u044f ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (withScale \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 1) XCUIApplication().images.element(boundBy: 0).pinch(withScale: 2, velocity: 1)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043e\u0442\u0434\u0430\u043b\u0435\u043d\u0438\u044f ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (withScale \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0442 0 \u0434\u043e 1) XCUIApplication().images.element(boundBy: 0).pinch(withScale: 0.5, velocity: 1)  \/\/ \u0421\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 XCUIApplication().images.element(boundBy: 0).rotate(0.5, withVelocity: 0.5)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielement\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b \u2014 Performing Gestures.<\/p>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 UISlider<\/h3>\n<p>UISlider \u2014 \u044d\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430 \u0432 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0435, \u043c\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 0 \u0434\u043e 1. \u0413\u0434\u0435 0 \u2014 \u044d\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u0435, \u0430 1 \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0430\u0439\u0434\u0435\u0440 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c 100 \u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 25. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"swift\">XCUIApplication().sliders.element.adjust(toNormalizedSliderPosition: 0.25)<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 UIPickerView \u0438 UIDatePicker<\/h3>\n<p>UIPickerView \u0438 UIDatePicker \u2014 \u044d\u0442\u043e ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 &#171;\u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0438&#187; \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>XCUIElement \u0438\u043c\u0435\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 UIPickerView \u0438 UIDatePicker:<\/p>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u043f\u0438\u043a\u0435\u0440\u043e\u0432 \u0441 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043b\u0435\u0441\u043e\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 element(), \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043f\u0438\u043a\u0435\u0440\u043e\u0432 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043a\u043e\u043b\u0435\u0441\u0430\u043c\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043a\u043e\u043b\u0435\u0441\u0443 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"swift\">\/\/ \u041f\u0438\u043a\u0435\u0440 \u0441 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043b\u0435\u0441\u043e\u043c XCUIApplication().pickerWheels.element.adjust(toPickerWheelValue: \"BMW\")  \/\/ \u041f\u0438\u043a\u0435\u0440 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043a\u043e\u043b\u0435\u0441\u0430\u043c\u0438 XCUIApplication().pickerWheels.elementBoundByIndex(0).adjust(toPickerWheelValue: \"BMW\") XCUIApplication().pickerWheels.elementBoundByIndex(1).adjust(toPickerWheelValue: \"X6\")<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u043b\u0435\u0440\u0442\u043e\u043c<\/h3>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u043b\u0435\u0440\u0442 \u2014 \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c, \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 addUIInterruptionMonitor(withDescription:handler:)<\/p>\n<p>\u0413\u0434\u0435 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435:<\/p>\n<ul>\n<li>\n<p>withDescription \u2014 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0430\u043b\u0435\u0440\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>handler &#8212; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0442\u0435\u0441\u0442\u0430\u0445:<\/p>\n<pre><code class=\"swift\">addUIInterruptionMonitor(withDescription: \"Current Location Not Available\") { alert in     alert.buttons[\"OK\"].tap()     return true }<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 Navigation Bar<\/h3>\n<p>Navigation bar \u2014 \u044d\u0442\u043e \u043f\u0430\u043d\u0435\u043b\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 status bar \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0432 Navigation Bar.<\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0438\u0445 \u0438\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441 \u043d\u0438\u043c\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"swift\">\/\/ \u0418\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0439\u043d\u044e\u044e \u043b\u0435\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 Navigation bar  let leftNavBarButton = XCUIApplication().navigationBars.children(matching: .button).firstMatch  \/\/ \u0418\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0442\u0435\u0441\u0442 \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0432 Navigation bar  let topicNavBar = XCUIApplication().navigationBars.children(matching: .staticTexts).firstMatch  \/\/ \u0418\u043d\u0438\u0446\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0439\u043d\u044e\u044e \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 Navigation bar let rightNavBarButton = XCUIApplication().navigationBars.children(matching: .button).element(boundBy: 1)  \/\/ \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u0432 Navigation bar  leftNavBarButton.tap() rightNavBarButton.tap()  \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432 Navigation bar  XCTAssertEqual(topicNavBar.title, \"Topic\")<\/code><\/pre>\n<h3>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 Tab bar<\/h3>\n<p>Tab bar \u2014 \u044d\u0442\u043e \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041e\u043d\u0430 \u0434\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0432\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043f\u0430\u0442\u044c \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 Tab bar.<\/p>\n<pre><code class=\"swift\">\/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443  XCUIApplication().tabBars.buttons.element(boundBy: 0) \/\/ \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0440\u0435\u0442\u044c\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 XCUIApplication().tabBars.buttons.element(boundBy: 2)<\/code><\/pre>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432:<\/h2>\n<p>\u0410\u0441\u0441\u0435\u0440\u0442\u044b \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"swift\">\/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 XCTAssertTrue(XCUIApplication().buttons[\"Warning\"].exists)  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0430 XCTAssertFalse(XCUIApplication().buttons[\"Warning\"].isSelected)  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e title \u043a\u043d\u043e\u043f\u043a\u0438 \u0440\u0430\u0432\u0435\u043d - Buy XCTAssertEqual(XCUIApplication().buttons.element.title, \"Buy\")  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e placeholder \u0432 textFields \u043d\u0435 \u0440\u0430\u0432\u0435\u043d - placeHolder XCTAssertNotEqual(XCUIApplication().textFields.element.placeholderValue, \"placeHolder\")  \/\/ \u0410\u0441\u0441\u0435\u0440\u0442, \u0447\u0442\u043e value \u0432 textFields \u0440\u0430\u0432\u043d\u043e - value XCTAssertEqual(XCUIApplication().textFields.element.value, \"value\")<\/code><\/pre>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0440\u0430\u0437\u0434\u0435\u043b Test Assertions<\/p>\n<p>\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developer.apple.com\/documentation\/xctest\/xcuielementattributes\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/h2>\n<p>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 ui-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0435 \u0442\u0430\u043a \u0441\u043b\u043e\u0436\u043d\u043e, \u043a\u0430\u043a \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0432\u044b\u0448\u0435, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 ui-\u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u043e \u0436\u0438\u0437\u043d\u0435\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>\u041a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043f\u043e\u0441\u043b\u0435\u0443\u0441\u043b\u043e\u0432\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0435\u0440\u043c\u0438\u0448\u0435\u043d\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0442\u0435\u0441\u0442\u043e\u0432 (\u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0433\u0430\u043b\u0435\u0440\u0435\u0435, \u0444\u043e\u0442\u043e \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435);<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e bundle identifier (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0430\u0444\u0430\u0440\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435);<\/p>\n<\/li>\n<li>\n<p>\u0418 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/vivid_money\/blog\/538708\/\"> https:\/\/habr.com\/ru\/company\/vivid_money\/blog\/538708\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-316875","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/316875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316875"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/316875\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}