{"id":298339,"date":"2020-02-07T09:00:07","date_gmt":"2020-02-07T09:00:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298339"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-02-07T09:00:07","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298339","title":{"rendered":"Playwright \u2014 \u0434\u0440\u0430\u043c\u0430\u0442\u0443\u0440\u0433\u0438\u044f \u043e\u0442 Microsoft \u0438 \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/jugru\/blog\/487294\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4s\/uo\/vi\/4suovicfujj3hh3az0sngchkl-i.jpeg\"><\/p>\n<p>  \u042f \u0434\u0435\u0441\u044f\u0442\u044c \u043b\u0435\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e \u0438 \u043f\u0438\u0448\u0443 \u043a\u043e\u0434, \u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043e\u0434\u0430 \u2014 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e \u0434\u043e\u043a\u043b\u0430\u0434\u044b \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c \u043a\u043e\u043c\u0438\u0442\u0435\u0442\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Heisenbug. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0441\u043a\u0432\u043e\u0437\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u0430\u0445, \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f\u0445 \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Playwright \u0432\u0435\u0440\u0441\u0438\u0438 0.10.0.<\/p>\n<h2><font color=\"#DB8E0D\">\u0418\u0437 \u043a\u043e\u043d\u0446\u0430 \u0432 \u043a\u043e\u043d\u0435\u0446<\/font><\/h2>\n<p>  \u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u0441\u043a\u0432\u043e\u0437\u043d\u044b\u0435 (end-to-end) \u0442\u0435\u0441\u0442\u044b? \u041e\u043d\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u044e\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044f \u043e\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0438 \u0445\u043e\u0447\u0443, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432\u0441\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u2014 \u0434\u043e\u0440\u043e\u0436\u0435 \u0438 \u0434\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u043a\u043e\u0439.<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: Selenium, Puppeteer, Selenoid, Cypress \u0438 \u0434\u0440\u0443\u0433\u0438\u0435. \u0414\u0432\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u0437\u0430\u0434 \u0432\u044b\u0448\u0435\u043b \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u2014 Playwright, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0410\u043d\u0434\u0440\u0435\u0439 \u041b\u0443\u0448\u043d\u0438\u043a\u043e\u0432, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Puppeteer. \u042d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hb\/y0\/ds\/hby0dst9ao9dadh5jktcqslxydq.png\" width=\"450\" height=\"225\"><br \/>  <i><a href=\"https:\/\/twitter.com\/aslushnikov\/status\/1220045633282662401\">\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0432\u0438\u0442<\/a> \u0410\u043d\u0434\u0440\u0435\u044f \u041b\u0443\u0448\u043d\u0438\u043a\u043e\u0432\u0430 \u0441 \u0430\u043d\u043e\u043d\u0441\u043e\u043c.<\/i><\/p>\n<h2><font color=\"#DB8E0D\">Puppeteer vs. Playwright<\/font><\/h2>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b Puppeteer \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u043d \u0431\u044b\u043b \u043d\u0435\u043f\u043b\u043e\u0445. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u044f \u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u0443 Puppeteer \u0431\u044b\u043b \u043c\u0430\u0436\u043e\u0440\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0432\u0435\u0440\u0441\u0438\u0438 <a href=\"https:\/\/github.com\/puppeteer\/puppeteer\/releases\/tag\/v2.0.0\">2.0<\/a>. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u0435\u0433\u043e <a href=\"https:\/\/github.com\/puppeteer\/puppeteer\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>, \u0442\u043e \u0443\u0432\u0438\u0434\u0435\u043b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:<\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cv\/bx\/xk\/cvbxxkio0kezoxyp0fzq_6dgylw.png\" width=\"500\" height=\"500\"><br \/>  <i>\u0412\u0440\u043e\u0434\u0435, \u044f \u043d\u0435 \u0434\u0430\u043b\u044c\u0442\u043e\u043d\u0438\u043a, \u043d\u043e \u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0432\u0430\u0442\u043e.<\/i><\/p>\n<p>  \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0435\u043c \u043b\u0443\u0447\u0448\u0435 Playwright \u2014 \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u043b\u0435\u0436\u0430\u0449\u0438\u0439 <a href=\"https:\/\/github.com\/microsoft\/playwright\">\u043d\u0430 GitHub<\/a> \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 Microsoft. <\/p>\n<p>  \u0427\u0435\u043c \u0445\u043e\u0440\u043e\u0448 Puppeteer? \u041e\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 headless-\u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <a href=\"https:\/\/chromedevtools.github.io\/devtools-protocol\/\">DevTools \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0435\u0435 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 Selenium, \u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <i>\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u043c JavaScript<\/i>. <\/p>\n<p>  \u0410 \u0447\u0435\u043c \u0445\u043e\u0440\u043e\u0448 Playwright? \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043e\u043d \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0435 \u043f\u043b\u044e\u0448\u043a\u0438 Puppeteer. \u0410 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u2014 \u0432 \u043a\u043e\u0434\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c <i>\u043b\u044e\u0431\u043e\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440<\/i>: <i>WebKit<\/i>, Chromium \u0438 Firefox. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041c\u0438\u043d\u0443\u0442\u043a\u0430 \u0441\u0430\u043c\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f: \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0434\u0432\u0438\u0436\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\"><a href=\"https:\/\/webkit.org\/\">WebKit<\/a> \u2014 \u044d\u0442\u043e \u0434\u0432\u0438\u0436\u043e\u043a <a href=\"https:\/\/www.apple.com\/safari\/\">Safari<\/a> \u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432.<\/p>\n<p>  <a href=\"https:\/\/www.chromium.org\/\">Chromium<\/a> \u2014 \u044d\u0442\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430 \u0434\u0432\u0438\u0436\u043a\u0435 <a href=\"https:\/\/blinkforhome.com\/\">Blink<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043a\u043e\u043c Webkit. \u0421\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 Blink \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <a href=\"https:\/\/www.google.com\/intl\/en\/chrome\/\">Google Chrome<\/a>, <a href=\"https:\/\/browser.yandex.ru\/\">\u042f\u043d\u0434\u0435\u043a\u0441.\u0411\u0440\u0430\u0443\u0437\u0435\u0440<\/a>, \u043d\u043e\u0432\u044b\u0439 <a href=\"https:\/\/support.microsoft.com\/ru-ru\/help\/4501095\/download-the-new-microsoft-edge-based-on-chromium\">Microsoft Edge<\/a>, \u0430 \u0435\u0449\u0451 \u043d\u043e\u0432\u0430\u044f <a href=\"https:\/\/www.opera.com\/\">Opera<\/a> \u0438 <a href=\"https:\/\/vivaldi.com\/\">Vivaldi<\/a>.<\/p>\n<p>  <a href=\"https:\/\/www.mozilla.org\/en-US\/firefox\/new\/\">Firefox<\/a> \u2014 \u044d\u0442\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430 \u0434\u0432\u0438\u0436\u043a\u0435 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Gecko\">Gecko<\/a>. \u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u0435\u0440\u0435\u0435\u0434\u0435\u0442 ~~\u043d\u0430 Chro~~ \u043d\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a <a href=\"https:\/\/servo.org\/\">Servo<\/a>, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Rust.  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u043d\u0430 Playwright? \u041c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f <a href=\"https:\/\/www.npmjs.com\/\">npm<\/a>, \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0425\u0430\u0431\u0440, \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0447\u0430\u0448\u043a\u0430 \u043a\u043e\u0444\u0435 \u0438 15 \u0441 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043e\u0439 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<p>  <b>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Playwright<\/b>. \u041f\u0438\u0448\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:<br \/>  <code>npm i playwright<\/code><\/p>\n<p>  <b>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0438\u043c \u0425\u0430\u0431\u0440.<\/b> \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"javascript\">const playwright = require('playwright');  (async () =&gt; {    for (const browserType of ['chromium', 'firefox', 'webkit']) {        const browser = await playwright[browserType].launch();        const context = await browser.newContext();        const page = await context.newPage('http:\/\/habr.com\/');         await page.screenshot({ path: `screenshots\/example-${browserType}.png` });        await browser.close();    } })(); <\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u043d\u0430 Puppeteer \u0431\u044b\u043b \u0431\u044b \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435:<\/p>\n<pre><code class=\"javascript\">const puppeteer = require('puppeteer');  (async () =&gt; {    const browser = await puppeteer.launch();    const page = await browser.newPage();    await page.goto('https:\/\/habr.com');    await page.screenshot({path: 'screenshots\/example.png'});     await browser.close(); })(); <\/code><\/pre>\n<p>  \u0422\u0435\u0441\u0442 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0432 \u0442\u0440\u0451\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445. \u041f\u0440\u0430\u0432\u0434\u0430, \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0432 \u043a\u0430\u043a\u0438\u0445 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b. \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e Playwright <i>\u0430\u0432\u0442\u043e\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438<\/i> \u0441\u043a\u0430\u0447\u0430\u0435\u0442 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440:<\/p>\n<pre><code class=\"javascript\"> const browser = await chromium.launch();  \/\/ Or 'firefox' or 'webkit'.  const context = await browser.newContext(); <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432 Puppeteer, \u043d\u0443\u0436\u043d\u043e <a href=\"https:\/\/github.com\/puppeteer\/puppeteer#default-runtime-settings\">\u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0443\u0442\u044c<\/a> \u043a \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0443. \u0412 PlayWright \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u0442. \u041a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b, \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u0432\u0438\u0436\u043a\u0430, \u043e \u0447\u0451\u043c \u0443\u0436\u0435 <a href=\"https:\/\/github.com\/microsoft\/playwright\/issues\/812\">\u0434\u0438\u0441\u043a\u0443\u0442\u0438\u0440\u0443\u044e\u0442<\/a> \u043d\u0430 GitHub.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b \u043b\u044e\u0431\u0438\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b, \u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b. Playwright \u0438 Puppeteer \u0434\u0435\u043b\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0432 Chromium:<\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/eo\/co\/se\/eocosenzdb_yy4todfphijs42u4.png\" width=\"600\" height=\"300\"><br \/>  <i>\u041f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0448\u0440\u0438\u0444\u0442\u044b \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u042f \u0437\u0430\u0432\u0451\u043b <a href=\"https:\/\/github.com\/microsoft\/playwright\/issues\/870\">\u0442\u0438\u043a\u0435\u0442<\/a> \u043d\u0430 GitHub.<\/i><\/p>\n<p>  Playwright \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 WebKit, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0442\u0435\u0441\u0442\u044b \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445. \u041d\u043e \u0432\u0435\u0434\u044c \u0432\u0441\u0435 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u044b \u0438 \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u0435\u0441\u0442\u043e\u0432? \u042f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b 76 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432 \u043a\u043e\u0434\u0435 <a href=\"https:\/\/github.com\/Microsoft\/playwright\/blob\/master\/src\/deviceDescriptors.ts\">deviceDescriptors.ts<\/a>, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 <i>\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438<\/i> BlackBerry \u0438 JioPhone 2. \u0418\u0437 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e: \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c iPhone 8 \u0438 iPhone 8 \u0432 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435. \u041a\u043e\u0434 \u0442\u0435\u0441\u0442\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0442\u0435\u0441\u0442\u043e\u043c \u0434\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430:<\/p>\n<pre><code class=\"javascript\">const { webkit, devices } = require('playwright'); const deviceType = devices['iPhone 8'];  (async () =&gt; {    const browser = await webkit.launch();    const context = await browser.newContext({        viewport: deviceType.viewport,        userAgent: deviceType.userAgent    });    const page = await context.newPage('http:\/\/habr.com');    await page.screenshot({ path: `example-${deviceType.name}.png`});    await browser.close(); })(); <\/code><\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0444\u0438\u0448\u043a\u0430 Playwright \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438, \u043e\u043d\u0430 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u0430\u0440\u0442. \u041f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b:<\/p>\n<pre><code class=\"javascript\">const context = await browser.newContext({    viewport: iPhone11.viewport,    userAgent: iPhone11.userAgent,    geolocation: { longitude: 12.492507, latitude: 41.889938 },    permissions: { 'https:\/\/yandex.ru\/maps': ['geolocation'] } }); <\/code><\/pre>\n<p>  \u042f \u0432 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u0433\u043e\u0434 \u0438 \u043b\u044e\u0431\u043b\u044e \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0442\u0435\u0441\u0442. \u0412 Puppeteer \u0431\u044b\u043b\u0430 \u043e\u043f\u0446\u0438\u044f <code>headless: false<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0430 \u043e\u043a\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u0422\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u043e\u043f\u0446\u0438\u044f \u0435\u0441\u0442\u044c \u0443 Playwright:<\/p>\n<pre><code class=\"javascript\">puppeteer.launch({headless: false}); playwright.launch({headless: false}); <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 \u043e\u0431\u0435\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0445 \u2014 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439, \u0442\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u0442\u044c \u0438 \u043f\u043e\u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c. \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Puppeteer \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/puppeteer\/puppeteer#debugging-tips\">\u0446\u0435\u043b\u044b\u0439 \u0430\u0431\u0437\u0430\u0446<\/a>, \u0430 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Playwright \u2014 \u043d\u0438\u0447\u0435\u0433\u043e. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Playwright \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043a\u043e\u0434\u0430, \u043d\u043e \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/microsoft\/playwright\/issues\/660\">\u0442\u0438\u043a\u0435\u0442<\/a> \u043d\u0430 GitHub. \u042d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043a\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043e\u0432\u043e\u0434 \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 open source-\u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0410 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430 Playwright \u0438 Jest \u044f \u0437\u0430\u043f\u0443\u0448\u0438\u043b \u0432 \u0441\u0432\u043e\u0439 <a href=\"https:\/\/github.com\/volekerb\/PlayWrightExamples\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>.<\/p>\n<h2><font color=\"#DB8E0D\">\u041f\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0442\u044c?<\/font><\/h2>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Playwright \u0433\u043e\u0442\u043e\u0432\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0431\u0430\u0433\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 <a href=\"https:\/\/github.com\/microsoft\/playwright\/issues\/829\">\u043f\u0438\u0448\u0443\u0442<\/a>, \u0447\u0442\u043e \u043f\u043e\u0444\u0438\u043a\u0441\u044f\u0442, \u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0445\u0443\u0436\u0435, \u0447\u0435\u043c \u0443 Puppeteer. \u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043d\u0430 Playwright, \u0431\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u0437\u0430\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0438\u043a\u0435\u0442\u044b.<\/p>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 Playwright \u0445\u043e\u0447\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0441\u0430\u043c\u043e\u0435 \u043b\u0443\u0447\u0448\u0435\u0435. \u042f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432 \u0442\u0438\u043a\u0435\u0442\u0430\u0445 \u043d\u0430 GitHub \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u0439 \u043e\u0431 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0438 API \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, <a href=\"https:\/\/github.com\/microsoft\/playwright\/issues\/820\">\u043a\u0430\u043a \u0432 Cypress<\/a>.<\/p>\n<p>  Playwright \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, \u0438 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u041f\u0440\u0430\u0432\u0434\u0430, \u0441\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0435\u0433\u043e \u0432\u0435\u0440\u0441\u0438\u044f 0.10.0, \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0430 \u043d\u0430 SlackOverflow \u0432\u0441\u0435\u0433\u043e \u0448\u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u042f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 \u0440\u0435\u043b\u0438\u0437\u0430\u043c\u0438 Playwright, \u043d\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0442\u043e\u0440\u043e\u043f\u0438\u0442\u044c\u0441\u044f \u0441 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f API. <\/p>\n<h2><font color=\"#DB8E0D\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Playwright \u043d\u0430 Heisenbug<\/font><\/h2>\n<p>  \u0414\u0435\u043b\u044e\u0441\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u044c\u044e: \u0410\u043d\u0434\u0440\u0435\u0439 \u041b\u0443\u0448\u043d\u0438\u043a\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0441 \u0434\u043e\u043a\u043b\u0430\u0434\u043e\u043c \u043e Playwright \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Heisenbug 2020 Piter, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0439\u0434\u0451\u0442 8-9 \u0430\u043f\u0440\u0435\u043b\u044f \u0432 \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433\u0435. \u041a \u043d\u0435\u043c\u0443 \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<ul>\n<li>\u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u043e\u0432\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Playwright \u0438 \u043f\u0440\u0438\u0447\u0451\u043c \u0442\u0443\u0442 <a href=\"https:\/\/translate.yandex.ru\/?lang=en-ru&amp;text=playwright\">\u0434\u0440\u0430\u043c\u0430\u0442\u0443\u0440\u0433\u0438\u044f<\/a><\/li>\n<li>\u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0434\u043e\u043b\u0433\u043e \u043b\u0438 \u0436\u0434\u0430\u0442\u044c \u0440\u0435\u043b\u0438\u0437\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 1.0<\/li>\n<li>\u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0437\u0435\u043b\u0435\u043d\u0435\u044e\u0442 \u0431\u0435\u0439\u0434\u0436\u0438\u043a\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 Puppeteer<\/li>\n<\/ul>\n<blockquote><p><b>\u0411\u0438\u043b\u0435\u0442\u044b \u2014 <a href=\"https:\/\/heisenbug-piter.ru\/registration\/?utm_source=habr&amp;utm_medium=487294&amp;utm_campaign=heisen20piter\">\u043d\u0430 \u0441\u0430\u0439\u0442\u0435 Heisenbug<\/a>.<\/b> \u041c\u043d\u0435\u043d\u0438\u044f \u043e Playwright \u0438 Puppeteer \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p><\/blockquote>\n<p>  \u0410 \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u043e\u0441\u0442 \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 Puppeteer, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 <a href=\"https:\/\/www.youtube.com\/watch?v=qpW69uD0w8o\">\u0434\u043e\u043a\u043b\u0430\u0434 \u0410\u043d\u0434\u0440\u0435\u044f<\/a> \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Heisenbug, \u0433\u0434\u0435 \u043e\u043d 55 \u043c\u0438\u043d\u0443\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043e Puppeteer.<\/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\/jugru\/blog\/487294\/\"> https:\/\/habr.com\/ru\/company\/jugru\/blog\/487294\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/jugru\/blog\/487294\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4s\/uo\/vi\/4suovicfujj3hh3az0sngchkl-i.jpeg\"><\/p>\n<p>  \u042f \u0434\u0435\u0441\u044f\u0442\u044c \u043b\u0435\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e \u0438 \u043f\u0438\u0448\u0443 \u043a\u043e\u0434, \u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0433\u043e\u0434\u0430 \u2014 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e \u0434\u043e\u043a\u043b\u0430\u0434\u044b \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c \u043a\u043e\u043c\u0438\u0442\u0435\u0442\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Heisenbug. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0441\u043a\u0432\u043e\u0437\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u0430\u0445, \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f\u0445 \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Playwright \u0432\u0435\u0440\u0441\u0438\u0438 0.10.0.<\/p>\n<h2><font color=\"#DB8E0D\">\u0418\u0437 \u043a\u043e\u043d\u0446\u0430 \u0432 \u043a\u043e\u043d\u0435\u0446<\/font><\/h2>\n<p>  \u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u0441\u043a\u0432\u043e\u0437\u043d\u044b\u0435 (end-to-end) \u0442\u0435\u0441\u0442\u044b? \u041e\u043d\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u044e\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044f \u043e\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0438 \u0445\u043e\u0447\u0443, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432\u0441\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u2014 \u0434\u043e\u0440\u043e\u0436\u0435 \u0438 \u0434\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u043a\u043e\u0439.<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: Selenium, Puppeteer, Selenoid, Cypress \u0438 \u0434\u0440\u0443\u0433\u0438\u0435. \u0414\u0432\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u0437\u0430\u0434 \u0432\u044b\u0448\u0435\u043b \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u2014 Playwright, \u043d\u0430\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0410\u043d\u0434\u0440\u0435\u0439 \u041b\u0443\u0448\u043d\u0438\u043a\u043e\u0432, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Puppeteer. \u042d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u0440\u043e\u0441\u0441-\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432.<\/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-298339","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298339","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=298339"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298339\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}