{"id":219320,"date":"2021-05-30T08:59:04","date_gmt":"2021-05-30T00:59:04","guid":{"rendered":"https:\/\/gulass.cn\/?p=219320"},"modified":"2021-05-24T08:59:51","modified_gmt":"2021-05-24T00:59:51","slug":"python-selenium-pytest","status":"publish","type":"post","link":"https:\/\/gulass.cn\/python-selenium-pytest.html","title":{"rendered":"\u300a\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u300bpdf\u7248\u7535\u5b50\u4e66\u514d\u8d39\u4e0b\u8f7d"},"content":{"rendered":"

\u300a\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u300b\u7cfb\u7edf\u5168\u9762\u5730\u4ecb\u7ecd\u4e86\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u6db5\u76d6\u4e86\u4ece\u6570\u636e\u5904\u7406\u5c42\u5230\u7528\u6237\u754c\u9762\u5c42\u7684\u5168\u65b9\u4f4d\u7684\u81ea\u52a8\u5316\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u8bfb\u8005\u80fd\u591f\u638c\u63e1Selenium\u4f46\u53c8\u4e0d\u9650\u4e8eSelenium\uff0c\u80fd\u591f\u5bf9\u57fa\u4e8ePython\u8bed\u8a00\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6709\u4e2a\u5168\u9762\u7684\u5b66\u4e60\u4e0e\u638c\u63e1\u3002<\/p>\n

\u300a\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u300b\u5185\u5bb9\u5305\u62ec\uff1a\u81ea\u52a8\u5316\u6d4b\u8bd5\u6982\u8ff0\uff0c\u914d\u7f6e Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u7f16\u7a0b\u73af\u5883\uff0c\u5fc5\u5907\u7684Python\u57fa\u7840\u77e5\u8bc6\uff0c\u81ea\u52a8\u5316\u6d4b\u8bd5\u6838\u5fc3\u77e5\u8bc6\uff0c\u5982\u5143\u7d20\u5b9a\u4f4d\u3001\u5355\u5143\u6d4b\u8bd5\u6846\u67b6Unittest\u548cPytest\u3001\u914d\u7f6e\u96c6\u6210\u5f00\u53d1\u73af\u5883\u3001Page Object\u6a21\u5f0f\u3001\u751f\u6210\u81ea\u52a8\u5316\u6d4b\u8bd5\u62a5\u544a\u3001\u63d0\u9ad8\u81ea\u52a8\u5316\u6d4b\u8bd5\u6548\u7387\u7684Python\u591a\u7ebf\u7a0b\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u9ad8\u7ea7\u5e94\u7528\u3001\u65b9\u6cd5\u7c7b\u5c01\u88c5\u8c03\u7528\u3001\u6570\u636e\u9a71\u52a8\u6d4b\u8bd5\u4ee5\u53ca\u8f85\u52a9\u5de5\u5177\u4ecb\u7ecd\u7b49\uff0c\u6700\u540e\u4ee5 Jenkins\u7684\u6301\u7eed\u96c6\u6210\u4ee5\u53caSelenium Grid\u5206\u5e03\u5f0f\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u5185\u5bb9\u7ed3\u675f\uff0c\u610f\u5728\u8ba9\u8bfb\u8005\u80fd\u591f\u5faa\u5e8f\u6e10\u8fdb\uff0c\u4e3a\u8fdb\u9636\u94fa\u8def\u3002<\/p>\n

\u300a\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u300b\u9002\u5408\u516c\u53f8\u5185\u90e8\u4ece\u4e8b\u81ea\u52a8\u5316\u6d4b\u8bd5\u843d\u5730\u7684\u6d4b\u8bd5\u4eba\u5458\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5\u5de5\u7a0b\u5e08\u53ca\u5e0c\u671b\u63d0\u9ad8\u81ea\u52a8\u5316\u6d4b\u8bd5\u6c34\u5e73\u7684\u76f8\u5173\u4eba\u5458\u3001Python \u6216Selenium\u521d\u5b66\u8005\u3001Python\u5f00\u53d1\u5de5\u7a0b\u5e08\u7b49\u3002\u672c\u4e66\u4ea6\u53ef\u4f5c\u4e3a\u9ad8\u7b49\u9662\u6821\u8ba1\u7b97\u673a\u53ca\u81ea\u52a8\u5316\u76f8\u5173\u4e13\u4e1a\u6216\u8005\u76f8\u5173\u57f9\u8bad\u673a\u6784\u7684\u6559\u6750\u4f7f\u7528\u3002\u81ea\u52a8\u5316\u4ece\u4e1a\u4eba\u5458\u4ea6\u53ef\u9009\u62e9\u672c\u4e66\u505a\u4e3a\u6848\u5934\u5fc5\u5907\u901f\u67e5\u624b\u518c\u3002<\/p>\n

\"\"<\/p>\n


\n

\u6839\u636e\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u56fd\u5bb6\u7248\u6743\u5c40\u76f8\u5173\u6cd5\u89c4\uff0c\u672c\u7ad9\u4e0d\u63d0\u4f9b\u8be5PDF\u7535\u5b50\u7248\u4e66\u7c4d
\n\u60a8\u53ef\u4ee5\u8fdb\u5165\u4ea4\u6d41\u793e\u7fa4\u4e2d\u7ee7\u7eed\u5bfb\u627e\u8d44\u6599\u6216\u8d2d\u4e70\u6b63\u7248\u4e66\u7c4d<\/p>\n

\"Linux\u4ea4\u6d41\u7fa4\" <\/a><\/p>\n

\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff1ahttps:\/\/gulass.cn\/club<\/a><\/p>\n

Linux\u4e66\u7c4d\u5728\u7ebf\u9605\u8bfb\uff1ahttps:\/\/gulass.cn\/chapter-00.html<\/a><\/p>\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

\u300a\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u300b\u7cfb\u7edf\u5168\u9762\u5730\u4ecb\u7ecd\u4e86\u57fa\u4e8ePython\u8bed\u8a00\u7684Selenium\u81ea\u52a8 […]<\/p>\n","protected":false},"author":1479,"featured_media":219322,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[430],"tags":[],"class_list":["post-219320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-books"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/219320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=219320"}],"version-history":[{"count":1,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/219320\/revisions"}],"predecessor-version":[{"id":219323,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/219320\/revisions\/219323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/219322"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=219320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=219320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=219320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}