{"id":318925,"date":"2021-03-03T09:00:06","date_gmt":"2021-03-03T09:00:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=318925"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=318925","title":{"rendered":"\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<blockquote>\n<p><em>\u0414\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u043a\u0443\u0440\u0441\u0430 <\/em><a href=\"https:\/\/otus.pw\/v8fH\/\"><em>\u00abPython QA Engineer\u00bb<\/em><\/a><em> \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u0435\u043c \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0432\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u0442\u0435\u043c\u0435 <\/em><a href=\"https:\/\/otus.pw\/pjAk\/\"><em>\u00ab\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 Jenkins\u00bb. <\/em><\/a><em>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u043e\u0432, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u0435\u043a\u0430\u043f\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0441\u0431\u043e\u0440\u043e\u043a.<\/em><\/p>\n<\/blockquote>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c1d\/881\/674\/c1d8816741b33cfdac3af3f504b14278.png\" width=\"780\" height=\"439\"><figcaption><\/figcaption><\/figure>\n<hr>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0430\u0448\u0435\u043c \u043e\u043f\u044b\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c python, selenium, \u0438 Pillow.<\/p>\n<p>\u0417\u0430\u0447\u0435\u043c? \u0423 \u043d\u0430\u0441 \u0431\u044b\u043b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 (~1000) \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 python, pytest, selenium, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0438 \u043a\u043b\u0438\u043a\u0430\u044e\u0442\u0441\u044f, \u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f (\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/github.com\/browserup\/browserup-proxy\"><u>browserup proxy<\/u><\/a>), \u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u043b\u0438 \u0431\u0430\u0433\u0438 \u0442\u0438\u043f\u0430 \u0442\u0430\u043a\u0438\u0445:&nbsp;&nbsp;<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c72\/db4\/1c9\/c72db41c902b26d9279ac0b50ea00bb2.png\" width=\"1412\" height=\"158\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043a\u0443, \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f (\u043d\u0435 \u0431\u0443\u0434\u0435\u0448\u044c \u0436\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0435\u0433\u043e \u0441\u0442\u0438\u043b\u0435\u0439).&nbsp;<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 selenium\u2019a \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e.&nbsp;<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a selenium \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/82a\/232\/20f\/82a23220fe383dfa6c8eb743eea27c2a.png\" width=\"1282\" height=\"390\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"python\">from selenium.webdriver import Chrome from collections import Counter  driver = Chrome() driver.get(\"https:\/\/go.mail.ru\/search?q=%D1%86%D0%B2%D0%B5%D1%82%D0%BE%D1%87%D0%BA%D0%B8%20%D0%BA%D0%B0%D1%80%D1%82%D0%B8%D0%BD%D0%BA%D0%B8\") elements = driver.find_elements_by_css_selector(\".SmackPicturesContent-smackImageItem\") print(Counter([el.is_displayed() for el in elements])) driver.quit()<\/code><\/pre>\n<p>\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 <code>Counter({True: 10})<\/code>, \u0445\u043e\u0442\u044f \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u044f\u0432\u043d\u043e \u043d\u0435 10, \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u00ab\u0432\u0438\u0434\u0438\u043c\u044b\u0445\u00bb \u043a\u0430\u0440\u0442\u043e\u0447\u0435\u043a \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043a\u0440\u043e\u043b\u043b.&nbsp;<\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u044f\u0432\u043d\u044b\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f (<code>visibility_of, visibility_of_all_elements_located<\/code>, etc), \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u0440\u0433\u0430\u044e\u0442 \u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <code>is_displayed<\/code>.&nbsp;<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/p>\n<p>\u041d\u0430\u043c \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f pytest \u0438 selenium, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043a\u0440\u0443\u0442\u0438\u043b\u0438\u0441\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b. \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0442, \u0430 \u0442\u043e \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u2014 \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u0438.&nbsp;<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a: <\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c\u043e\u043c, \u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0435\u0435 \u043a \u0442\u0435\u0441\u0442\u0443 (\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u044f, \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438);<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0438\u043c \u0432\u0441\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0438 \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u043a\u0443\u0441\u043e\u043a, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u0435\u0433\u043e, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u0432\u0441\u0435 \u043d\u0430 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433\u0435 \u0438 \u043f\u043e\u043f\u0438\u043a\u0441\u0435\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0430\u043c\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0440\u0435\u0437\u0430\u0435\u043c \u043d\u0430 \u0431\u043b\u043e\u043a\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 40\u044540 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u043b\u0438 \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u0432\u0430\u043b\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u0432\u0435\u0440\u0441\u0442\u043a\u0443, \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 <a href=\"https:\/\/github.com\/aikrasnov\/python-screenshot-example\"><u>\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/u><\/a>.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0442\u0435\u0441\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def test_search_block(self):    self.driver.get(\"https:\/\/go.mail.ru\/\")     def action():        self.driver.find_element_by_xpath(\"\/\/span[contains(text(), '\u0421\u043e\u0446\u0441\u0435\u0442\u0438')]\").click()     self.check_by_screenshot((By.CSS_SELECTOR, \".MainPage-verticalLinksWrapper\"), action=action)<\/code><\/pre>\n<p>\u0412 <code>action<\/code> \u043a\u043b\u0430\u0434\u0435\u043c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u0435\u0442\u0430\u043f\u044b, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0444\u0438\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0430 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0440\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u0442\u0435\u0441\u0442\u0438\u043d\u0433\u0430, \u0441 \u043f\u0440\u043e\u0434\u0430 \u0438 \u0434\u0438\u0444\u0444. \u0412\u0441\u0435 \u0442\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043e\u0442\u0447\u0435\u0442.<\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f <a href=\"https:\/\/github.com\/allure-framework\/allure2\/tree\/master\/plugins\/screen-diff-plugin\"><u>\u043f\u043b\u0430\u0433\u0438\u043d\u0443<\/u><\/a> \u0434\u043b\u044f \u0430\u043b\u043b\u044e\u0440\u0430 \u043e\u0442\u0447\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/128\/7b0\/09e\/1287b009eac3f691a7ae741443fc8da4.png\" width=\"1528\" height=\"884\"><figcaption><\/figcaption><\/figure>\n<p>&nbsp;\u0418 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e44\/432\/afb\/e44432afba0f5643dd058b103ddeebc0.png\" width=\"1528\" height=\"884\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/406\/77e\/b49\/40677eb490bbbd7e6f8659e90c2b2d4e.png\" width=\"1300\" height=\"790\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong><\/p>\n<ol>\n<li>\n<p>\u0410\u043d\u0442\u0438\u0430\u043b\u0430\u0439\u0437\u0438\u043d\u0433 \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0444\u043b\u0430\u043a\u0430\u043b\u0438 \u0442\u0435\u0441\u0442\u044b, \u0433\u0434\u0435 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0438 svg. \u0420\u0435\u0448\u0438\u043b\u0438 \u00ab\u0441\u043c\u0430\u0437\u0430\u0432\u00bb \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0446\u0432\u0435\u0442\u0430\u043c\u0438:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"python\">RED = \"red\" GREEN = \"green\" BLUE = \"blue\" ALPHA = \"alpha\"  # https:\/\/github.com\/rsmbl\/Resemble.js\/blob\/dec5ae1cf1d10c9027a94400a81c17d025a9d3b6\/resemble.js#L121 # https:\/\/github.com\/rsmbl\/Resemble.js\/blob\/dec5ae1cf1d10c9027a94400a81c17d025a9d3b6\/resemble.js#L981 tolerance = {    RED: 32,    GREEN: 32,    BLUE: 32,    ALPHA: 32, }<\/code><\/pre>\n<pre><code class=\"python\">def _is_color_similar(self, a, b, color):    \"\"\"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0445\u043e\u0436\u0435\u0441\u0442\u044c \u0446\u0432\u0435\u0442\u043e\u0432. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0442\u0435\u0441\u0442\u044b \u043d\u0435 \u0442\u0440\u0438\u0433\u0435\u0440\u0440\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0430\u043d\u0442\u0438\u0430\u043b\u0438\u0430\u0441\u0438\u043d\u0433 \u0434\u043e\u043f\u0443\u0441\u043a\u0438     \u0432 self.tolerance.    \"\"\"    if a is None and b is None:        return True     diff = abs(a - b)     if diff == 0:        return True    elif diff &lt; self.tolerance[color]:        return True     return False<\/code><\/pre>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 <a href=\"https:\/\/github.com\/rsmbl\/Resemble.js\/blob\/dec5ae1cf1d10c9027a94400a81c17d025a9d3b6\/resemble.js#L121\"><u>Resemble.js<\/u><\/a>. \u041d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0438\u0430\u043b\u0435\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u00ab\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438\u00bb \u0446\u0432\u0435\u0442\u0430\u043c\u0438, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u044e\u0442 \u043c\u043e\u0440\u0433\u0430\u0442\u044c \u0438\u0437-\u0437\u0430 \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043e\u0441\u043e\u0431\u043e \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def test_search_block(self):    self.driver.get(\"https:\/\/go.mail.ru\/\")     def action():        element = self.driver.find_element_by_xpath(\"\/\/span[contains(text(), '\u0421\u043e\u0446\u0441\u0435\u0442\u0438')]\")        self.driver.execute_script(\"arguments[0].remove()\", element)     self.check_by_screenshot((By.CSS_SELECTOR, \".MainVerticalsNav-listItemActive\"), action=action)<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0437\u0430\u043b\u0438\u0432\u043a\u0443, \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0438 \u0442.\u0434.<\/p>\n<ol start=\"2\">\n<li>\n<p>\u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0437\u0430\u0442\u0443\u0445\u0430\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u043e\u043b\u043b\u0431\u0430\u0440\u044b. \u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0443 \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432 \u0441\u043e\u0432\u043f\u0430\u043b \u2014 \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u0444\u043b\u0430\u043a\u0430\u043b\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u044d\u0434\u043b\u0435\u0441\u0441 \u0440\u0435\u0436\u0438\u043c\u0430 \u2014 \u0441\u043a\u0440\u043e\u043b\u043b\u0431\u0430\u0440\u044b \u043f\u0440\u043e\u043f\u0430\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u0442\u0430\u043b\u043e\u043d\u044b \u2014 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0438\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430 \u0441\u043e\u0431\u043e\u0439 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043e\u0442\u043a\u0430\u0437\u0443 \u043e\u0442 \u044d\u0442\u0430\u043b\u043e\u043d\u043e\u0432.&nbsp; \u0417\u0430\u043e\u0434\u043d\u043e \u043d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0430\u043b\u043e\u043d\u044b \u0431\u044b\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u0442\u0430\u043c \u0436\u0435, \u0433\u0434\u0435 \u0433\u043e\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b (\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0440\u0430\u0437\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e).<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 (\u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u0438 <a href=\"https:\/\/chromedriver.chromium.org\/mobile-emulation\"><u>\u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u0432 \u0445\u0440\u043e\u043c\u0435<\/u><\/a>) \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439. \u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"python\">def _get_raw_coords_by_locator(self, locator_type, query_string):    \"\"\"\u0411\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.\"\"\"    wait = WebDriverWait(self.driver, timeout=10, ignored_exceptions=Exception)    wait.until(lambda _: self.driver.find_element(locator_type, query_string).is_displayed(),                    message=\"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f\")       el = self.driver.find_element(locator_type, query_string)    location = el.location    size = el.size    x = location[\"x\"]    y = location[\"y\"]    width = location[\"x\"] + size['width']    height = location[\"y\"] + size['height']    return x, y, width, height<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0410 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e\u043f\u0440\u0430\u0432\u043a\u0443 \u043d\u0430 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439:<\/p>\n<pre><code class=\"python\">def _get_coords_by_locator(self, locator_type, query_string) -&gt; Tuple[int, int, int, int]:    x, y, width, height = self._get_raw_coords_by_locator(locator_type, query_string)    return x * self.pixel_ratio, y * self.pixel_ratio, width * self.pixel_ratio, height * self.pixel_ratio<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0443\u0447\u0435\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e, \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0438\u0442\u0441\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u043a\u0440\u043e\u043c\u0435 \u043d\u0443\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c:<\/p>\n<pre><code class=\"python\">from selenium.webdriver import Chrome, ChromeOptions  options = ChromeOptions() options.add_experimental_option(\"mobileEmulation\", {'deviceName': \"Nexus 5\"}) options.add_argument('--headless') caps = options.to_capabilities() driver = Chrome(desired_capabilities=caps) driver.get(\"https:\/\/go.mail.ru\/\") print(driver.find_element_by_xpath(\"\/\/body\").size) driver.save_screenshot(\"test.png\") driver.quit()<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442: <code>{'height': 640, 'width': 360}<\/code> \u0434\u043b\u044f \u0431\u043e\u0434\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u0418 \u0432 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0435\u0440\u043d\u0435\u0442 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 1080 \u0445 1920:<\/p>\n<pre><code class=\"python\">\u276f file test.png test.png: PNG image data, 1080 x 1920, 8-bit\/color RGBA, non-interlaced<\/code><\/pre>\n<p>4.\u0422\u0435\u0441\u0442\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0435\u043b\u0435\u043d\u044b\u043c\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u043b\u0438\u0437\u0430. \u041b\u044e\u0431\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043f\u043e\u043a\u0440\u044b\u0442\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0437\u0430\u0441\u0442\u0430\u0432\u044f\u0442 \u0442\u0435\u0441\u0442\u044b \u043f\u043e\u043a\u0440\u0430\u0441\u043d\u0435\u0442\u044c, \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u044e\u0442 \u0438\u0445 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c (\u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u0437\u0443\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043d\u0430 \u0442\u0435\u0441\u0442\u0438\u043d\u0433\u0435 \u0438 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433\u0435). \u0423 \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0438 \u043f\u043b\u044e\u0441: \u043d\u0430 \u0434\u0438\u0444\u0444\u0435 \u0432 \u043e\u0442\u0447\u0435\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u0438.&nbsp;<\/p>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 ~570 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442-\u0442\u0435\u0441\u0442\u043e\u0432 \u0432 \u0434\u0432\u0443\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 (\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0438 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u0430\u044f). \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 20 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0438 \u0438\u0434\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 15 \u043c\u0438\u043d\u0443\u0442. \u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0440\u0435\u043b\u0438\u0437\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u043e\u043c\u0430\u044e\u0442 \u0442\u0435\u0441\u0442\u044b, \u0444\u043b\u0430\u043a\u0430\u044e\u0449\u0438\u0445 \u2014 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 2-3%. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0442\u0435\u0441\u0442\u044b \u043f\u0430\u0434\u0430\u044e\u0442 \u0438\u0437-\u0437\u0430 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0430, \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0432\u0435\u0440\u0441\u0442\u043a\u0435. \u041f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0442\u043e\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u043e, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c-\u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u043c\u0438 (\u0442\u0435\u043a\u0441\u0442, \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c).&nbsp;&nbsp;<\/p>\n<p>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u0440\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/blog.rinatussenov.com\/automating-manual-visual-regression-tests-with-python-and-selenium-be66be950196\"><u>https:\/\/blog.rinatussenov.com\/automating-manual-visual-regression-tests-with-python-and-selenium-be66be950196<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><iframe loading=\"lazy\" title=\"\u0410\u043d\u0442\u043e\u043d \u0423\u0441\u043c\u0430\u043d\u0441\u043a\u0438\u0439 \u2014 \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/crbwyGlcXm0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe> <\/p>\n<\/li>\n<\/ol>\n<hr>\n<blockquote>\n<p>\u0423\u0437\u043d\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043a\u0443\u0440\u0441\u0435 <a href=\"https:\/\/otus.pw\/v8fH\/\">\u00abPython QA Engineer\u00bb<\/a>.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0432\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u0442\u0435\u043c\u0435 <a href=\"https:\/\/otus.pw\/pjAk\/\">\u00ab\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 Jenkins\u00bb. <\/a><\/p>\n<\/blockquote>\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\/otus\/blog\/545084\/\"> https:\/\/habr.com\/ru\/company\/otus\/blog\/545084\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<blockquote>\n<p><em>\u0414\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u043a\u0443\u0440\u0441\u0430 <\/em><a href=\"https:\/\/otus.pw\/v8fH\/\"><em>\u00abPython QA Engineer\u00bb<\/em><\/a><em> \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u0435\u043c \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0432\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u0442\u0435\u043c\u0435 <\/em><a href=\"https:\/\/otus.pw\/pjAk\/\"><em>\u00ab\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 Jenkins\u00bb. <\/em><\/a><em>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u043e\u0432, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u0435\u043a\u0430\u043f\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0441\u0431\u043e\u0440\u043e\u043a.<\/em><\/p>\n<\/blockquote>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<hr>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0430\u0448\u0435\u043c \u043e\u043f\u044b\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c python, selenium, \u0438 Pillow.<\/p>\n<p>\u0417\u0430\u0447\u0435\u043c? \u0423 \u043d\u0430\u0441 \u0431\u044b\u043b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 (~1000) \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 python, pytest, selenium, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0438 \u043a\u043b\u0438\u043a\u0430\u044e\u0442\u0441\u044f, \u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f (\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/github.com\/browserup\/browserup-proxy\"><u>browserup proxy<\/u><\/a>), \u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u043b\u0438 \u0431\u0430\u0433\u0438 \u0442\u0438\u043f\u0430 \u0442\u0430\u043a\u0438\u0445:&nbsp;&nbsp;<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043a\u0443, \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f (\u043d\u0435 \u0431\u0443\u0434\u0435\u0448\u044c \u0436\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0435\u0433\u043e \u0441\u0442\u0438\u043b\u0435\u0439).&nbsp;<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 selenium\u2019a \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e.&nbsp;<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a selenium \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"python\">from selenium.webdriver import Chrome from collections import Counter  driver = Chrome() driver.get(\"https:\/\/go.mail.ru\/search?q=%D1%86%D0%B2%D0%B5%D1%82%D0%BE%D1%87%D0%BA%D0%B8%20%D0%BA%D0%B0%D1%80%D1%82%D0%B8%D0%BD%D0%BA%D0%B8\") elements = driver.find_elements_by_css_selector(\".SmackPicturesContent-smackImageItem\") print(Counter([el.is_displayed() for el in elements])) driver.quit()<\/code><\/pre>\n<p>\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 <code>Counter({True: 10})<\/code>, \u0445\u043e\u0442\u044f \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u044f\u0432\u043d\u043e \u043d\u0435 10, \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u00ab\u0432\u0438\u0434\u0438\u043c\u044b\u0445\u00bb \u043a\u0430\u0440\u0442\u043e\u0447\u0435\u043a \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043a\u0440\u043e\u043b\u043b.&nbsp;<\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u044f\u0432\u043d\u044b\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f (<code>visibility_of, visibility_of_all_elements_located<\/code>, etc), \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u0440\u0433\u0430\u044e\u0442 \u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <code>is_displayed<\/code>.&nbsp;<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/p>\n<p>\u041d\u0430\u043c \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f pytest \u0438 selenium, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043a\u0440\u0443\u0442\u0438\u043b\u0438\u0441\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b. \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0442, \u0430 \u0442\u043e \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u2014 \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u0438.&nbsp;<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a: <\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c\u043e\u043c, \u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0435\u0435 \u043a \u0442\u0435\u0441\u0442\u0443 (\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u044f, \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438);<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0438\u043c \u0432\u0441\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0438 \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u043a\u0443\u0441\u043e\u043a, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u0435\u0433\u043e, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u0432\u0441\u0435 \u043d\u0430 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433\u0435 \u0438 \u043f\u043e\u043f\u0438\u043a\u0441\u0435\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0441\u0430\u043c\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0440\u0435\u0437\u0430\u0435\u043c \u043d\u0430 \u0431\u043b\u043e\u043a\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 40\u044540 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u043b\u0438 \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u0432\u0430\u043b\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u0432\u0435\u0440\u0441\u0442\u043a\u0443, \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 <a href=\"https:\/\/github.com\/aikrasnov\/python-screenshot-example\"><u>\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/u><\/a>.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0442\u0435\u0441\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def test_search_block(self):    self.driver.get(\"https:\/\/go.mail.ru\/\")     def action():        self.driver.find_element_by_xpath(\"\/\/span[contains(text(), '\u0421\u043e\u0446\u0441\u0435\u0442\u0438')]\").click()     self.check_by_screenshot((By.CSS_SELECTOR, \".MainPage-verticalLinksWrapper\"), action=action)<\/code><\/pre>\n<p>\u0412 <code>action<\/code> \u043a\u043b\u0430\u0434\u0435\u043c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u0435\u0442\u0430\u043f\u044b, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0444\u0438\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0430 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0440\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u0442\u0435\u0441\u0442\u0438\u043d\u0433\u0430, \u0441 \u043f\u0440\u043e\u0434\u0430 \u0438 \u0434\u0438\u0444\u0444. \u0412\u0441\u0435 \u0442\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043e\u0442\u0447\u0435\u0442.<\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f <a href=\"https:\/\/github.com\/allure-framework\/allure2\/tree\/master\/plugins\/screen-diff-plugin\"><u>\u043f\u043b\u0430\u0433\u0438\u043d\u0443<\/u><\/a> \u0434\u043b\u044f \u0430\u043b\u043b\u044e\u0440\u0430 \u043e\u0442\u0447\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>&nbsp;\u0418 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong><\/p>\n<ol>\n<li>\n<p>\u0410\u043d\u0442\u0438\u0430\u043b\u0430\u0439\u0437\u0438\u043d\u0433 \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0444\u043b\u0430\u043a\u0430\u043b\u0438 \u0442\u0435\u0441\u0442\u044b, \u0433\u0434\u0435 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0438 svg. \u0420\u0435\u0448\u0438\u043b\u0438 \u00ab\u0441\u043c\u0430\u0437\u0430\u0432\u00bb \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0446\u0432\u0435\u0442\u0430\u043c\u0438:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"python\">RED = \"red\" GREEN = \"green\" BLUE = \"blue\" ALPHA = \"alpha\"  # https:\/\/github.com\/rsmbl\/Resemble.js\/blob\/dec5ae1cf1d10c9027a94400a81c17d025a9d3b6\/resemble.js#L121 # https:\/\/github.com\/rsmbl\/Resemble.js\/blob\/dec5ae1cf1d10c9027a94400a81c17d025a9d3b6\/resemble.js#L981 tolerance = {    RED: 32,    GREEN: 32,    BLUE: 32,    ALPHA: 32, }<\/code><\/pre>\n<pre><code class=\"python\">def _is_color_similar(self, a, b, color):    \"\"\"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0445\u043e\u0436\u0435\u0441\u0442\u044c \u0446\u0432\u0435\u0442\u043e\u0432. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0442\u0435\u0441\u0442\u044b \u043d\u0435 \u0442\u0440\u0438\u0433\u0435\u0440\u0440\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0430\u043d\u0442\u0438\u0430\u043b\u0438\u0430\u0441\u0438\u043d\u0433 \u0434\u043e\u043f\u0443\u0441\u043a\u0438     \u0432 self.tolerance.    \"\"\"    if a is None and b is None:        return True     diff = abs(a - b)     if diff == 0:        return True    elif diff &lt; self.tolerance[color]:        return True     return False<\/code><\/pre>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 <a href=\"https:\/\/github.com\/rsmbl\/Resemble.js\/blob\/dec5ae1cf1d10c9027a94400a81c17d025a9d3b6\/resemble.js#L121\"><u>Resemble.js<\/u><\/a>. \u041d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0438\u0430\u043b\u0435\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u00ab\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438\u00bb \u0446\u0432\u0435\u0442\u0430\u043c\u0438, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u044e\u0442 \u043c\u043e\u0440\u0433\u0430\u0442\u044c \u0438\u0437-\u0437\u0430 \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043e\u0441\u043e\u0431\u043e \u0442\u044f\u0436\u0435\u043b\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def test_search_block(self):    self.driver.get(\"https:\/\/go.mail.ru\/\")     def action():        element = self.driver.find_element_by_xpath(\"\/\/span[contains(text(), '\u0421\u043e\u0446\u0441\u0435\u0442\u0438')]\")        self.driver.execute_script(\"arguments[0].remove()\", element)     self.check_by_screenshot((By.CSS_SELECTOR, \".MainVerticalsNav-listItemActive\"), action=action)<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0437\u0430\u043b\u0438\u0432\u043a\u0443, \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0438 \u0442.\u0434.<\/p>\n<ol start=\"2\">\n<li>\n<p>\u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0437\u0430\u0442\u0443\u0445\u0430\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u043e\u043b\u043b\u0431\u0430\u0440\u044b. \u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0443 \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432 \u0441\u043e\u0432\u043f\u0430\u043b \u2014 \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u0444\u043b\u0430\u043a\u0430\u043b\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u044d\u0434\u043b\u0435\u0441\u0441 \u0440\u0435\u0436\u0438\u043c\u0430 \u2014 \u0441\u043a\u0440\u043e\u043b\u043b\u0431\u0430\u0440\u044b \u043f\u0440\u043e\u043f\u0430\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u0442\u0430\u043b\u043e\u043d\u044b \u2014 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0438\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430 \u0441\u043e\u0431\u043e\u0439 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043e\u0442\u043a\u0430\u0437\u0443 \u043e\u0442 \u044d\u0442\u0430\u043b\u043e\u043d\u043e\u0432.&nbsp; \u0417\u0430\u043e\u0434\u043d\u043e \u043d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0430\u043b\u043e\u043d\u044b \u0431\u044b\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u0442\u0430\u043c \u0436\u0435, \u0433\u0434\u0435 \u0433\u043e\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b (\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0440\u0430\u0437\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e).<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 (\u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u0438 <a href=\"https:\/\/chromedriver.chromium.org\/mobile-emulation\"><u>\u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u0432 \u0445\u0440\u043e\u043c\u0435<\/u><\/a>) \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439. \u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"python\">def _get_raw_coords_by_locator(self, locator_type, query_string):    \"\"\"\u0411\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.\"\"\"    wait = WebDriverWait(self.driver, timeout=10, ignored_exceptions=Exception)    wait.until(lambda _: self.driver.find_element(locator_type, query_string).is_displayed(),                    message=\"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f\")       el = self.driver.find_element(locator_type, query_string)    location = el.location    size = el.size    x = location[\"x\"]    y = location[\"y\"]    width = location[\"x\"] + size['width']    height = location[\"y\"] + size['height']    return x, y, width, height<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0410 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e\u043f\u0440\u0430\u0432\u043a\u0443 \u043d\u0430 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439:<\/p>\n<pre><code class=\"python\">def _get_coords_by_locator(self, locator_type, query_string) -&gt; Tuple[int, int, int, int]:    x, y, width, height = self._get_raw_coords_by_locator(locator_type, query_string)    return x * self.pixel_ratio, y * self.pixel_ratio, width * self.pixel_ratio, height * self.pixel_ratio<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0443\u0447\u0435\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e, \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0438\u0442\u0441\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u043a\u0440\u043e\u043c\u0435 \u043d\u0443\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c:<\/p>\n<pre><code class=\"python\">from selenium.webdriver import Chrome, ChromeOptions  options = ChromeOptions() options.add_experimental_option(\"mobileEmulation\", {'deviceName': \"Nexus 5\"}) options.add_argument('--headless') caps = options.to_capabilities() driver = Chrome(desired_capabilities=caps) driver.get(\"https:\/\/go.mail.ru\/\") print(driver.find_element_by_xpath(\"\/\/body\").size) driver.save_screenshot(\"test.png\") driver.quit()<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442: <code>{'height': 640, 'width': 360}<\/code> \u0434\u043b\u044f \u0431\u043e\u0434\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u0418 \u0432 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0435\u0440\u043d\u0435\u0442 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 1080 \u0445 1920:<\/p>\n<pre><code class=\"python\">\u276f file test.png test.png: PNG image data, 1080 x 1920, 8-bit\/color RGBA, non-interlaced<\/code><\/pre>\n<p>4.\u0422\u0435\u0441\u0442\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0435\u043b\u0435\u043d\u044b\u043c\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u043b\u0438\u0437\u0430. \u041b\u044e\u0431\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043f\u043e\u043a\u0440\u044b\u0442\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0437\u0430\u0441\u0442\u0430\u0432\u044f\u0442 \u0442\u0435\u0441\u0442\u044b \u043f\u043e\u043a\u0440\u0430\u0441\u043d\u0435\u0442\u044c, \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u044e\u0442 \u0438\u0445 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c (\u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u0437\u0443\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043d\u0430 \u0442\u0435\u0441\u0442\u0438\u043d\u0433\u0435 \u0438 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433\u0435). \u0423 \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0438 \u043f\u043b\u044e\u0441: \u043d\u0430 \u0434\u0438\u0444\u0444\u0435 \u0432 \u043e\u0442\u0447\u0435\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u0438.&nbsp;<\/p>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 ~570 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442-\u0442\u0435\u0441\u0442\u043e\u0432 \u0432 \u0434\u0432\u0443\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 (\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0438 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u0430\u044f). \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 20 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0438 \u0438\u0434\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 15 \u043c\u0438\u043d\u0443\u0442. \u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0440\u0435\u043b\u0438\u0437\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u043e\u043c\u0430\u044e\u0442 \u0442\u0435\u0441\u0442\u044b, \u0444\u043b\u0430\u043a\u0430\u044e\u0449\u0438\u0445 \u2014 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 2-3%. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0442\u0435\u0441\u0442\u044b \u043f\u0430\u0434\u0430\u044e\u0442 \u0438\u0437-\u0437\u0430 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0430, \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0432\u0435\u0440\u0441\u0442\u043a\u0435. \u041f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0442\u043e\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u043e, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0441\u0435\u043b\u0435\u043d\u0438\u0443\u043c-\u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u043c\u0438 (\u0442\u0435\u043a\u0441\u0442, \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c).&nbsp;&nbsp;<\/p>\n<p>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u0440\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u043c\u0438:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/blog.rinatussenov.com\/automating-manual-visual-regression-tests-with-python-and-selenium-be66be950196\"><u>https:\/\/blog.rinatussenov.com\/automating-manual-visual-regression-tests-with-python-and-selenium-be66be950196<\/u><\/a><\/p>\n<\/li>\n<li>\n<p>https:\/\/www.youtube.com\/watch?v=crbwyGlcXm0 <\/p>\n<\/li>\n<\/ol>\n<hr>\n<blockquote>\n<p>\u0423\u0437\u043d\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043a\u0443\u0440\u0441\u0435 <a href=\"https:\/\/otus.pw\/v8fH\/\">\u00abPython QA Engineer\u00bb<\/a>.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0432\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u0442\u0435\u043c\u0435 <a href=\"https:\/\/otus.pw\/pjAk\/\">\u00ab\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 Jenkins\u00bb. <\/a><\/p>\n<\/blockquote>\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\/otus\/blog\/545084\/\"> https:\/\/habr.com\/ru\/company\/otus\/blog\/545084\/<\/a><br \/><\/br><\/br><\/hr>\n<\/p>\n<\/blockquote>\n<\/div>\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-318925","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318925","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=318925"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318925\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}