{"id":767,"date":"2023-02-26T16:17:00","date_gmt":"2023-02-26T08:17:00","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=767"},"modified":"2023-04-29T16:57:54","modified_gmt":"2023-04-29T08:57:54","slug":"python-selenium-close-browser","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/26\/python-selenium-close-browser\/","title":{"rendered":"Python Selenium\u5173\u95ed\u6d4f\u89c8\u5668"},"content":{"rendered":"<p>\u5728\u524d\u9762\u7684\u4f8b\u5b50\u4e2d\u6211\u4eec\u4e00\u76f4\u4f7f\u7528<code>quit()<\/code>\u65b9\u6cd5\uff0c\u5176\u542b\u4e49\u4e3a\u9000\u51fa\u76f8\u5173\u7684\u9a71\u52a8\u7a0b\u5e8f\u548c\u5173\u95ed\u6240\u6709\u7a97\u53e3\u3002\u9664\u6b64\u4e4b\u5916\uff0cWebDriver\u8fd8\u63d0\u4f9b\u4e86<code>close()<\/code>\u65b9\u6cd5\uff0c\u7528\u6765\u5173\u95ed\u5f53\u524d\u7a97\u53e3\u3002\u4f8b\u591a\u7a97\u53e3\u7684\u5904\u7406\uff0c\u5728\u7528\u4f8b\u6267\u884c\u7684\u8fc7\u7a0b\u4e2d\u6253\u5f00\u4e86\u591a\u4e2a\u7a97\u53e3\uff0c\u6211\u4eec\u60f3\u8981\u5173\u95ed\u5176\u4e2d\u7684\u67d0\u4e2a\u7a97\u53e3\uff0c\u8fd9\u65f6\u5c31\u8981\u7528\u5230<code>close()<\/code>\u65b9\u6cd5\u8fdb\u884c\u5173\u95ed\u4e86\u3002<\/p>\n<p><!-- more --><\/p>\n<ul>\n<li>close() \u5173\u95ed\u5355\u4e2a\u7a97\u53e3<\/li>\n<li>quit() \u5173\u95ed\u6240\u6709\u7a97\u53e3<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u524d\u9762\u7684\u4f8b\u5b50\u4e2d\u6211\u4eec\u4e00\u76f4\u4f7f\u7528quit()\u65b9\u6cd5\uff0c\u5176\u542b\u4e49\u4e3a\u9000\u51fa\u76f8\u5173\u7684\u9a71\u52a8\u7a0b\u5e8f\u548c\u5173\u95ed\u6240\u6709\u7a97\u53e3\u3002\u9664\u6b64\u4e4b\u5916\uff0cWebDriv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221],"tags":[],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-selenium"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}