{"id":464326,"date":"2025-06-24T21:02:19","date_gmt":"2025-06-24T21:02:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=464326"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-06-24T21:02:19","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=464326","title":{"rendered":"<span>C \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u043f\u0440\u043e MCP, \u043d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e-\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h4>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f: \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u044b Model Context Protocol (MCP) \u2014 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0438\u0437 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0442\u044e\u0433\u0430. YouTube, Twitter, \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u2014 \u0432\u0441\u0435 \u0436\u0443\u0436\u0436\u0430\u0442:<\/h4>\n<blockquote>\n<p>\u00abMCP \u044d\u0442\u043e \u043f\u0440\u043e\u0440\u044b\u0432\u00bb,<br \/>\u00ab\u041d\u043e\u0432\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u0435\u0431\u0430\u0433\u0430\u00bb,<br \/>\u00ab\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f AI \u0432 \u0442\u0435\u0441\u0442\u044b \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f\u00bb&#8230;<\/p>\n<\/blockquote>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0440\u0443\u0442\u043e. \u041d\u043e, \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, <strong>\u0432\u0441\u0451 \u0441\u043b\u043e\u0436\u043d\u043e, \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0438 \u043d\u0430 \u043f\u0442\u0438\u0447\u044c\u0435\u043c \u044f\u0437\u044b\u043a\u0435<\/strong>. \u042f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u042d\u0442\u043e \u043d\u0435 \u043c\u043e\u0439, \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0442 GPT, \u043d\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0438 \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043f\u0440\u0430\u0432\u043a\u0430\u043c\u0438 \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u0411\u0435\u0437 \u0437\u0430\u0443\u043c\u043d\u044b\u0445 \u0444\u0440\u0430\u0437, \u0437\u0430\u0442\u043e \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438, \u043c\u044f\u0441\u043e\u043c \u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u044f\u043c\u0438. \u0417\u0430\u043f\u0440\u043e\u0441 \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u044b\u043c:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u044a\u044f\u0441\u043d\u0438 \u043f\u043e-\u043f\u0430\u0446\u0430\u043d\u0441\u043a\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u043e\u0434\u043d\u043e?<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043c\u043d\u0435, \u0435\u0441\u043b\u0438 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0443 \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0443\u043f\u0430\u043b \u0442\u0435\u0441\u0442?<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83e\uddc1 \u041a\u043e\u043c\u0443 \u043f\u0438\u0440\u043e\u0436\u043e\u0447\u0435\u043a, \u043a\u043e\u043c\u0443 \u043f\u043e \u0448\u0430\u043d\u0441\u043e\u043d\u0447\u0438\u043a\u0443<\/h4>\n<p>\u0412\u043e\u0442 \u043a\u0441\u0442\u0430\u0442\u0438 <strong>\u043b\u0430\u0439\u0444\u0445\u0430\u043a<\/strong>, \u0435\u0441\u043b\u0438 \u0442\u044b \u0445\u043e\u0447\u0435\u0448\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0432\u0440\u0443\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0442\u0435\u043c\u0443:<\/p>\n<blockquote>\n<p><strong>\u041f\u043e\u043f\u0440\u043e\u0441\u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0435\u0451 &#171;\u043f\u043e-\u043f\u0430\u0446\u0430\u043d\u0441\u043a\u0438&#187; \u0438\u043b\u0438 &#171;\u043a\u0430\u043a \u0431\u0430\u0431\u0443\u043b\u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u0435\u043c\u0443 \u0441\u043b\u0430\u0434\u043a\u043e\u043c\u0443 \u043f\u0438\u0440\u043e\u0436\u043e\u0447\u043a\u0443&#187;<\/strong> \u2014 \u043a\u043e\u043c\u0443 \u043a\u0430\u043a \u0431\u043b\u0438\u0436\u0435.<\/p>\n<\/blockquote>\n<p>\u0422\u0430\u043a \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u0438 \u0432\u043d\u044f\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u043e\u0440. \u0422\u0430\u043a\u043e\u0439, \u0433\u0434\u0435 \u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e &#171;\u0447\u0442\u043e&#187;, \u043d\u043e \u0438 &#171;\u0437\u0430\u0447\u0435\u043c&#187;.<\/p>\n<p>\u041d\u0443 \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, <strong>\u0447\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0442\u0430\u043a\u043e\u0439 \u2014 MCP<\/strong> \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0418\u0418 \u0434\u0435\u0431\u0430\u0433 \u2014 \u043a\u0430\u043a \u0441\u043b\u0435\u043f\u043e\u0439 \u0441 \u0433\u0440\u0430\u043d\u0430\u0442\u043e\u0439.<\/p>\n<p>\ud83d\udc47 \u041f\u043e\u0435\u0445\u0430\u043b\u0438.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/316\/a0a\/a78\/316a0aa783e8b02b5b84dd303948591c.png\" alt=\"\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0443 \u0418\u0418 \u0432\u0441\u0451 \u0435\u0449\u0451 \u043f\u043b\u043e\u0445\u043e\u0432\u0430\u0442\u043e ;)\" title=\"\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0443 \u0418\u0418 \u0432\u0441\u0451 \u0435\u0449\u0451 \u043f\u043b\u043e\u0445\u043e\u0432\u0430\u0442\u043e ;)\" width=\"1024\" height=\"1536\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/316\/a0a\/a78\/316a0aa783e8b02b5b84dd303948591c.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/316\/a0a\/a78\/316a0aa783e8b02b5b84dd303948591c.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0443 \u0418\u0418 \u0432\u0441\u0451 \u0435\u0449\u0451 \u043f\u043b\u043e\u0445\u043e\u0432\u0430\u0442\u043e \ud83d\ude09<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u043a\u0435\u0439, \u0431\u0440\u0430\u0442, \u0449\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0442\u044b \u0432 \u0442\u0435\u043c\u0435 <a href=\"https:\/\/playwright.dev\/\" rel=\"noopener noreferrer nofollow\">Playwright<\/a>, \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u044b, \u0434\u0435\u0431\u0430\u0433 \u2014 \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u0432\u0430\u0439 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <strong>Model Context Protocol (MCP)<\/strong> \u0438 \u0437\u0430\u0447\u0435\u043c \u043e\u043d \u043d\u0443\u0436\u0435\u043d.<\/p>\n<h4>\ud83d\udca1 \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Model Context Protocol?<\/h4>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c: \u0443 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c \u0442\u0435\u0441\u0442, \u043e\u043d \u043f\u0430\u0434\u0430\u0435\u0442, \u0438 \u0442\u044b \u0442\u0430\u043a\u043e\u0439: <strong>&#171;\u0401\u043f\u0442, \u0447\u0442\u043e \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u0442\u0430\u043a? \u041f\u043e\u0447\u0435\u043c\u0443?&#187;<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0443\u0442 \u0438 \u0432\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>Model Context Protocol<\/strong> \u2014 \u044d\u0442\u043e \u0442\u0430\u043a\u0430\u044f <strong>\u043f\u0440\u043e\u0442\u0443\u0445\u0430<\/strong> (\u0438\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0435\u0441\u043b\u0438 \u043f\u043e-\u0441\u0435\u0440\u044c\u0451\u0437\u043a\u0435), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 <strong>LLM (\u0442\u0438\u043f\u0430 GPT)<\/strong> <strong>\u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/strong> \u0443\u043f\u0430\u0432\u0448\u0435\u0433\u043e \u0442\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0431\u044b\u043b\u0438 \u0448\u0430\u0433\u0438,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u043b\u043e\u0433\u0438,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 \u0431\u044b\u043b HTML,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83d\udd27 MCP \u2014 \u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0418\u0418 \u0432\u0441\u0451 \u043c\u044f\u0441\u043e, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0441\u0442\u044c.<\/h4>\n<p>\u0422\u044b \u0436 \u043d\u0435 \u0434\u0430\u0448\u044c \u0434\u0440\u0443\u0433\u0443 \u0447\u0438\u043d\u0438\u0442\u044c \u0434\u0432\u0438\u0436\u043e\u043a, \u0435\u0441\u043b\u0438 \u043e\u043d \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430 \u043c\u0430\u0448\u0438\u043d\u0430, \u0434\u0430? \u0422\u0430\u043a \u0438 \u0442\u0443\u0442: MCP \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0434\u0430\u0442\u044c \u0418\u0418 \u043f\u043e\u043b\u043d\u044b\u0439 \u0440\u0430\u0441\u043a\u043b\u0430\u0434, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433.<\/p>\n<h4>\ud83d\udce6 \u041f\u0440\u0438\u043c\u0435\u0440: \u0431\u0435\u0437 MCP \u0438 \u0441 MCP<\/h4>\n<h3>\ud83d\udeab \u0411\u0435\u0437 MCP: \u0422\u044b \u043a\u0438\u0434\u0430\u0435\u0448\u044c \u0432 GPT \u0432\u043e\u0442 \u044d\u0442\u043e:<\/h3>\n<pre><code>Error: Timeout 30000ms exceeded. waiting for selector \"#submit-btn\" <\/code><\/pre>\n<p>GPT \u0442\u0430\u043a\u043e\u0439: \u00ab\u041d\u0443\u2026 \u043c\u043e\u0436\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c\u2026 \u043f\u0440\u043e\u0432\u0435\u0440\u044c \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u00bb.<br \/> \u2014 \u041f\u0430\u0446\u0430\u043d\u0441\u043a\u0438\u0439 \u043e\u0442\u0432\u0435\u0442, \u043d\u043e <strong>\u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u044b\u0439<\/strong>.<\/p>\n<h3>\u2705 \u0421 MCP GPT \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442:<\/h3>\n<pre><code class=\"json\">{   \"selector\": \"#submit-btn\",   \"action\": \"click\",   \"htmlSnapshot\": \"&lt;div&gt;&lt;button id='submit-btn' disabled&gt;Send&lt;\/button&gt;&lt;\/div&gt;\",   \"logs\": [\"click intercepted by disabled button\"],   \"testTitle\": \"should submit the form\",   \"location\": \"tests\/form.spec.ts:23\" } <\/code><\/pre>\n<p>GPT: <strong>&#171;\u0411\u0440\u0430\u0442\u0430\u043d, \u043a\u043d\u043e\u043f\u043a\u0430-\u0442\u043e \u0435\u0441\u0442\u044c, \u043d\u043e <\/strong><code><strong>disabled<\/strong><\/code><strong>. \u041d\u0430\u0434\u043e \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439. \u041f\u0440\u043e\u0432\u0435\u0440\u044c, \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u044b.&#187;<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 <strong>\u0443\u043c\u043d\u0430\u044f \u043f\u043e\u043c\u043e\u0449\u044c<\/strong>, \u0430 \u043d\u0435 \u0433\u0430\u0434\u0430\u043d\u0438\u0435.<\/p>\n<h4>\ud83e\udde0 MCP \u2260 \u043c\u0430\u0433\u0438\u044f, MCP = \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430<\/h4>\n<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u0430\u043a \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u0443 \u043e\u0431 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0442\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>DOM<\/p>\n<\/li>\n<li>\n<p>\u043e\u0448\u0438\u0431\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0448\u0430\u0433\u0438 \u0442\u0435\u0441\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0437\u043e\u0432\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83e\udd16 \u0413\u0434\u0435 \u044d\u0442\u043e \u044e\u0437\u0430\u0435\u0442\u0441\u044f?<\/h4>\n<ul>\n<li>\n<p>Microsoft Playwright MCP \u2014 \u044d\u0442\u043e <strong>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong> \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043e\u0440\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u0443\u043b\u0437\u0430\u0445 \u0442\u0438\u043f\u0430 <a href=\"https:\/\/github.com\/lunin-vadim\/playwright-ai-auto-debug\" rel=\"noopener noreferrer nofollow\"><code>playwright-ai-auto-debug<\/code><\/a> \u2014 (\u043f\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 <a href=\"https:\/\/github.com\/lunin-vadim\/playwright-ai-auto-debug\/pull\/1\" rel=\"noopener noreferrer nofollow\">PR<\/a> \u0432\u0438\u0441\u0438\u0442).<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u0418\u0418 \u0448\u0430\u0440\u0438\u043b, <strong>\u0447\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e<\/strong>, \u0430 \u043d\u0435 \u0433\u0430\u0434\u0430\u043b \u043d\u0430 \u043a\u043e\u0444\u0435\u0439\u043d\u043e\u0439 \u0433\u0443\u0449\u0435.<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83d\udee0 \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0435\u0431\u0430\u0433\u0430<\/h4>\n<p>\u0422\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0448\u044c:<\/p>\n<pre><code>await page.click('#submit-btn'); <\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0448\u044c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre><code>TimeoutError: waiting for selector \"#submit-btn\" <\/code><\/pre>\n<p>\u0410 \u0432 MCP \u0443\u043b\u0435\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"json\">{   \"selector\": \"#submit-btn\",   \"action\": \"click\",   \"pageContent\": \"...\",   \"trace\": \"...\",   \"playwrightVersion\": \"1.43.1\",   \"screenshot\": \"base64image\",   \"logs\": [     \"selector matched 0 elements\",     \"DOM mutated\",     \"navigation happened\"   ] } <\/code><\/pre>\n<p>\u0418\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442:<br \/> \ud83d\udc49 &#171;\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0431\u044b\u043b, \u043d\u043e \u043f\u0440\u043e\u043f\u0430\u043b \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u2014 \u0442\u0435\u0431\u0435 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c <code>navigation<\/code> \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>waitForSelector<\/code> \u0437\u0430\u043d\u043e\u0432\u043e.&#187;<\/p>\n<h4>\ud83e\udde2 \u0418\u0442\u043e\u0433\u043e \u043f\u043e-\u043f\u0430\u0446\u0430\u043d\u0441\u043a\u0438:<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">MCP \u2014 \u044d\u0442\u043e&#8230;<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u044b \u0434\u043b\u044f LLM<\/p>\n<\/td>\n<td>\n<p align=\"left\">&#171;\u0411\u0440\u0430\u0442, \u0432\u043e\u0442 \u0442\u0435\u0431\u0435 \u0432\u0441\u0435 \u0443\u043b\u0438\u043a\u0438, \u0440\u0430\u0437\u0431\u0435\u0440\u0438&#187;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0418\u0418 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0432\u0435\u0442\u044b, \u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f\u0430 \u043a\u0430\u043a .har, \u043d\u043e \u0434\u043b\u044f Playwright + \u0442\u0435\u0441\u0442\u043e\u0432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u041e\u0441\u043d\u043e\u0432\u0430 \u0443\u043c\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e-\u0434\u0435\u0431\u0430\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0435\u0437 \u043d\u0435\u0433\u043e GPT \u043a\u0430\u043a \u0441\u043b\u0435\u043f\u043e\u0439 \u043a\u043e\u0442\u0451\u043d\u043e\u043a<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\ud83d\udccc \u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043c\u043e\u0439\u00a0<a href=\"https:\/\/t.me\/it_vadimqa\" rel=\"noopener noreferrer nofollow\">Telegram-\u043a\u0430\u043d\u0430\u043b \u043f\u0440\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, AI \u0438 IT \u0432 \u0446\u0435\u043b\u043e\u043c!<\/a>\u00a0\u2014 \u0442\u0430\u043c \u0434\u0435\u043b\u044e\u0441\u044c \u043c\u044b\u0441\u043b\u044f\u043c\u0438, \u043d\u043e\u0432\u043e\u0441\u0442\u044f\u043c\u0438 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0438\u0437 \u0436\u0438\u0437\u043d\u0438!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/920882\/\"> https:\/\/habr.com\/ru\/articles\/920882\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h4>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f: \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u044b Model Context Protocol (MCP) \u2014 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0438\u0437 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0442\u044e\u0433\u0430. YouTube, Twitter, \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u2014 \u0432\u0441\u0435 \u0436\u0443\u0436\u0436\u0430\u0442:<\/h4>\n<blockquote>\n<p>\u00abMCP \u044d\u0442\u043e \u043f\u0440\u043e\u0440\u044b\u0432\u00bb,<br \/>\u00ab\u041d\u043e\u0432\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u0435\u0431\u0430\u0433\u0430\u00bb,<br \/>\u00ab\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f AI \u0432 \u0442\u0435\u0441\u0442\u044b \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f\u00bb&#8230;<\/p>\n<\/blockquote>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0440\u0443\u0442\u043e. \u041d\u043e, \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, <strong>\u0432\u0441\u0451 \u0441\u043b\u043e\u0436\u043d\u043e, \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0438 \u043d\u0430 \u043f\u0442\u0438\u0447\u044c\u0435\u043c \u044f\u0437\u044b\u043a\u0435<\/strong>. \u042f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u042d\u0442\u043e \u043d\u0435 \u043c\u043e\u0439, \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0442 GPT, \u043d\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0438 \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043f\u0440\u0430\u0432\u043a\u0430\u043c\u0438 \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u0411\u0435\u0437 \u0437\u0430\u0443\u043c\u043d\u044b\u0445 \u0444\u0440\u0430\u0437, \u0437\u0430\u0442\u043e \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438, \u043c\u044f\u0441\u043e\u043c \u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u044f\u043c\u0438. \u0417\u0430\u043f\u0440\u043e\u0441 \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u044b\u043c:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u044a\u044f\u0441\u043d\u0438 \u043f\u043e-\u043f\u0430\u0446\u0430\u043d\u0441\u043a\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u043e\u0434\u043d\u043e?<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043c\u043d\u0435, \u0435\u0441\u043b\u0438 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0443 \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0443\u043f\u0430\u043b \u0442\u0435\u0441\u0442?<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83e\uddc1 \u041a\u043e\u043c\u0443 \u043f\u0438\u0440\u043e\u0436\u043e\u0447\u0435\u043a, \u043a\u043e\u043c\u0443 \u043f\u043e \u0448\u0430\u043d\u0441\u043e\u043d\u0447\u0438\u043a\u0443<\/h4>\n<p>\u0412\u043e\u0442 \u043a\u0441\u0442\u0430\u0442\u0438 <strong>\u043b\u0430\u0439\u0444\u0445\u0430\u043a<\/strong>, \u0435\u0441\u043b\u0438 \u0442\u044b \u0445\u043e\u0447\u0435\u0448\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0432\u0440\u0443\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0442\u0435\u043c\u0443:<\/p>\n<blockquote>\n<p><strong>\u041f\u043e\u043f\u0440\u043e\u0441\u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0435\u0451 &#171;\u043f\u043e-\u043f\u0430\u0446\u0430\u043d\u0441\u043a\u0438&#187; \u0438\u043b\u0438 &#171;\u043a\u0430\u043a \u0431\u0430\u0431\u0443\u043b\u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u0435\u043c\u0443 \u0441\u043b\u0430\u0434\u043a\u043e\u043c\u0443 \u043f\u0438\u0440\u043e\u0436\u043e\u0447\u043a\u0443&#187;<\/strong> \u2014 \u043a\u043e\u043c\u0443 \u043a\u0430\u043a \u0431\u043b\u0438\u0436\u0435.<\/p>\n<\/blockquote>\n<p>\u0422\u0430\u043a \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u0438 \u0432\u043d\u044f\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u043e\u0440. \u0422\u0430\u043a\u043e\u0439, \u0433\u0434\u0435 \u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e &#171;\u0447\u0442\u043e&#187;, \u043d\u043e \u0438 &#171;\u0437\u0430\u0447\u0435\u043c&#187;.<\/p>\n<p>\u041d\u0443 \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, <strong>\u0447\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0442\u0430\u043a\u043e\u0439 \u2014 MCP<\/strong> \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0418\u0418 \u0434\u0435\u0431\u0430\u0433 \u2014 \u043a\u0430\u043a \u0441\u043b\u0435\u043f\u043e\u0439 \u0441 \u0433\u0440\u0430\u043d\u0430\u0442\u043e\u0439.<\/p>\n<p>\ud83d\udc47 \u041f\u043e\u0435\u0445\u0430\u043b\u0438.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0443 \u0418\u0418 \u0432\u0441\u0451 \u0435\u0449\u0451 \u043f\u043b\u043e\u0445\u043e\u0432\u0430\u0442\u043e \ud83d\ude09<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u043a\u0435\u0439, \u0431\u0440\u0430\u0442, \u0449\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0442\u044b \u0432 \u0442\u0435\u043c\u0435 <a href=\"https:\/\/playwright.dev\/\" rel=\"noopener noreferrer nofollow\">Playwright<\/a>, \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u044b, \u0434\u0435\u0431\u0430\u0433 \u2014 \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u0432\u0430\u0439 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <strong>Model Context Protocol (MCP)<\/strong> \u0438 \u0437\u0430\u0447\u0435\u043c \u043e\u043d \u043d\u0443\u0436\u0435\u043d.<\/p>\n<h4>\ud83d\udca1 \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Model Context Protocol?<\/h4>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c: \u0443 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c \u0442\u0435\u0441\u0442, \u043e\u043d \u043f\u0430\u0434\u0430\u0435\u0442, \u0438 \u0442\u044b \u0442\u0430\u043a\u043e\u0439: <strong>&#171;\u0401\u043f\u0442, \u0447\u0442\u043e \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u0442\u0430\u043a? \u041f\u043e\u0447\u0435\u043c\u0443?&#187;<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0443\u0442 \u0438 \u0432\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>Model Context Protocol<\/strong> \u2014 \u044d\u0442\u043e \u0442\u0430\u043a\u0430\u044f <strong>\u043f\u0440\u043e\u0442\u0443\u0445\u0430<\/strong> (\u0438\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0435\u0441\u043b\u0438 \u043f\u043e-\u0441\u0435\u0440\u044c\u0451\u0437\u043a\u0435), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 <strong>LLM (\u0442\u0438\u043f\u0430 GPT)<\/strong> <strong>\u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/strong> \u0443\u043f\u0430\u0432\u0448\u0435\u0433\u043e \u0442\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0431\u044b\u043b\u0438 \u0448\u0430\u0433\u0438,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0438\u0435 \u043b\u043e\u0433\u0438,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u043e\u0439 \u0431\u044b\u043b HTML,<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83d\udd27 MCP \u2014 \u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0418\u0418 \u0432\u0441\u0451 \u043c\u044f\u0441\u043e, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0441\u0442\u044c.<\/h4>\n<p>\u0422\u044b \u0436 \u043d\u0435 \u0434\u0430\u0448\u044c \u0434\u0440\u0443\u0433\u0443 \u0447\u0438\u043d\u0438\u0442\u044c \u0434\u0432\u0438\u0436\u043e\u043a, \u0435\u0441\u043b\u0438 \u043e\u043d \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430 \u043c\u0430\u0448\u0438\u043d\u0430, \u0434\u0430? \u0422\u0430\u043a \u0438 \u0442\u0443\u0442: MCP \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0434\u0430\u0442\u044c \u0418\u0418 \u043f\u043e\u043b\u043d\u044b\u0439 \u0440\u0430\u0441\u043a\u043b\u0430\u0434, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433.<\/p>\n<h4>\ud83d\udce6 \u041f\u0440\u0438\u043c\u0435\u0440: \u0431\u0435\u0437 MCP \u0438 \u0441 MCP<\/h4>\n<h3>\ud83d\udeab \u0411\u0435\u0437 MCP: \u0422\u044b \u043a\u0438\u0434\u0430\u0435\u0448\u044c \u0432 GPT \u0432\u043e\u0442 \u044d\u0442\u043e:<\/h3>\n<pre><code>Error: Timeout 30000ms exceeded. waiting for selector \"#submit-btn\" <\/code><\/pre>\n<p>GPT \u0442\u0430\u043a\u043e\u0439: \u00ab\u041d\u0443\u2026 \u043c\u043e\u0436\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c\u2026 \u043f\u0440\u043e\u0432\u0435\u0440\u044c \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u00bb.<br \/> \u2014 \u041f\u0430\u0446\u0430\u043d\u0441\u043a\u0438\u0439 \u043e\u0442\u0432\u0435\u0442, \u043d\u043e <strong>\u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u044b\u0439<\/strong>.<\/p>\n<h3>\u2705 \u0421 MCP GPT \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442:<\/h3>\n<pre><code class=\"json\">{   \"selector\": \"#submit-btn\",   \"action\": \"click\",   \"htmlSnapshot\": \"&lt;div&gt;&lt;button id='submit-btn' disabled&gt;Send&lt;\/button&gt;&lt;\/div&gt;\",   \"logs\": [\"click intercepted by disabled button\"],   \"testTitle\": \"should submit the form\",   \"location\": \"tests\/form.spec.ts:23\" } <\/code><\/pre>\n<p>GPT: <strong>&#171;\u0411\u0440\u0430\u0442\u0430\u043d, \u043a\u043d\u043e\u043f\u043a\u0430-\u0442\u043e \u0435\u0441\u0442\u044c, \u043d\u043e <\/strong><code><strong>disabled<\/strong><\/code><strong>. \u041d\u0430\u0434\u043e \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439. \u041f\u0440\u043e\u0432\u0435\u0440\u044c, \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u044b.&#187;<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 <strong>\u0443\u043c\u043d\u0430\u044f \u043f\u043e\u043c\u043e\u0449\u044c<\/strong>, \u0430 \u043d\u0435 \u0433\u0430\u0434\u0430\u043d\u0438\u0435.<\/p>\n<h4>\ud83e\udde0 MCP \u2260 \u043c\u0430\u0433\u0438\u044f, MCP = \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430<\/h4>\n<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u0430\u043a \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u0443 \u043e\u0431 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0442\u0435\u0441\u0442\u0430:<\/p>\n<ul>\n<li>\n<p>DOM<\/p>\n<\/li>\n<li>\n<p>\u043e\u0448\u0438\u0431\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0448\u0430\u0433\u0438 \u0442\u0435\u0441\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0437\u043e\u0432\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83e\udd16 \u0413\u0434\u0435 \u044d\u0442\u043e \u044e\u0437\u0430\u0435\u0442\u0441\u044f?<\/h4>\n<ul>\n<li>\n<p>Microsoft Playwright MCP \u2014 \u044d\u0442\u043e <strong>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong> \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043e\u0440\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u0443\u043b\u0437\u0430\u0445 \u0442\u0438\u043f\u0430 <a href=\"https:\/\/github.com\/lunin-vadim\/playwright-ai-auto-debug\" rel=\"noopener noreferrer nofollow\"><code>playwright-ai-auto-debug<\/code><\/a> \u2014 (\u043f\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 <a href=\"https:\/\/github.com\/lunin-vadim\/playwright-ai-auto-debug\/pull\/1\" rel=\"noopener noreferrer nofollow\">PR<\/a> \u0432\u0438\u0441\u0438\u0442).<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u0418\u0418 \u0448\u0430\u0440\u0438\u043b, <strong>\u0447\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e<\/strong>, \u0430 \u043d\u0435 \u0433\u0430\u0434\u0430\u043b \u043d\u0430 \u043a\u043e\u0444\u0435\u0439\u043d\u043e\u0439 \u0433\u0443\u0449\u0435.<\/p>\n<\/li>\n<\/ul>\n<h4>\ud83d\udee0 \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0435\u0431\u0430\u0433\u0430<\/h4>\n<p>\u0422\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0448\u044c:<\/p>\n<pre><code>await page.click('#submit-btn'); <\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0448\u044c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre><code>TimeoutError: waiting for selector \"#submit-btn\" <\/code><\/pre>\n<p>\u0410 \u0432 MCP \u0443\u043b\u0435\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"json\">{   \"selector\": \"#submit-btn\",   \"action\": \"click\",   \"pageContent\": \"...\",   \"trace\": \"...\",   \"playwrightVersion\": \"1.43.1\",   \"screenshot\": \"base64image\",   \"logs\": [     \"selector matched 0 elements\",     \"DOM mutated\",     \"navigation happened\"   ] } <\/code><\/pre>\n<p>\u0418\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442:<br \/> \ud83d\udc49 &#171;\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0431\u044b\u043b, \u043d\u043e \u043f\u0440\u043e\u043f\u0430\u043b \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u2014 \u0442\u0435\u0431\u0435 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c <code>navigation<\/code> \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>waitForSelector<\/code> \u0437\u0430\u043d\u043e\u0432\u043e.&#187;<\/p>\n<h4>\ud83e\udde2 \u0418\u0442\u043e\u0433\u043e \u043f\u043e-\u043f\u0430\u0446\u0430\u043d\u0441\u043a\u0438:<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">MCP \u2014 \u044d\u0442\u043e&#8230;<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u044b \u0434\u043b\u044f LLM<\/p>\n<\/td>\n<td>\n<p align=\"left\">&#171;\u0411\u0440\u0430\u0442, \u0432\u043e\u0442 \u0442\u0435\u0431\u0435 \u0432\u0441\u0435 \u0443\u043b\u0438\u043a\u0438, \u0440\u0430\u0437\u0431\u0435\u0440\u0438&#187;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0418\u0418 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0432\u0435\u0442\u044b, \u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f\u0430 \u043a\u0430\u043a .har, \u043d\u043e \u0434\u043b\u044f Playwright + \u0442\u0435\u0441\u0442\u043e\u0432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"341\" width=\"341\">\n<p align=\"left\">\u041e\u0441\u043d\u043e\u0432\u0430 \u0443\u043c\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e-\u0434\u0435\u0431\u0430\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0435\u0437 \u043d\u0435\u0433\u043e GPT \u043a\u0430\u043a \u0441\u043b\u0435\u043f\u043e\u0439 \u043a\u043e\u0442\u0451\u043d\u043e\u043a<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\ud83d\udccc \u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043c\u043e\u0439\u00a0<a href=\"https:\/\/t.me\/it_vadimqa\" rel=\"noopener noreferrer nofollow\">Telegram-\u043a\u0430\u043d\u0430\u043b \u043f\u0440\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, AI \u0438 IT \u0432 \u0446\u0435\u043b\u043e\u043c!<\/a>\u00a0\u2014 \u0442\u0430\u043c \u0434\u0435\u043b\u044e\u0441\u044c \u043c\u044b\u0441\u043b\u044f\u043c\u0438, \u043d\u043e\u0432\u043e\u0441\u0442\u044f\u043c\u0438 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0438\u0437 \u0436\u0438\u0437\u043d\u0438!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/920882\/\"> https:\/\/habr.com\/ru\/articles\/920882\/<\/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-464326","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/464326","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=464326"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/464326\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=464326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=464326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=464326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}