<br />
<b>Notice</b>:  Trying to get property 'ID' of non-object in <b>/var/www/html/feellikelearning/wp-content/themes/songwriter-premium/functions.php</b> on line <b>371</b><br />
{"version":"1.0","provider_name":"Feel Like Learning","provider_url":"https:\/\/feellikelearning.com","author_name":"feellikelearning","author_url":"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/","title":"Node js \u91cc\u6709\u6ca1\u6709\u50cfselenium\u7c7b\u4f3c\u7684framework? | Feel Like Learning","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"GWesu2nUax\"><a href=\"https:\/\/feellikelearning.com\/index.php\/2023\/05\/20\/node-js-selenium-like-framework\/\">Node js \u91cc\u6709\u6ca1\u6709\u50cfselenium\u7c7b\u4f3c\u7684framework?<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/feellikelearning.com\/index.php\/2023\/05\/20\/node-js-selenium-like-framework\/embed\/#?secret=GWesu2nUax\" width=\"600\" height=\"338\" title=\"&#8220;Node js \u91cc\u6709\u6ca1\u6709\u50cfselenium\u7c7b\u4f3c\u7684framework?&#8221; &#8212; Feel Like Learning\" data-secret=\"GWesu2nUax\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script type=\"text\/javascript\">\n\/*! This file is auto-generated *\/\n!function(c,d){\"use strict\";var e=!1,o=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},c.wp.receiveEmbedMessage);else if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(!t);else if(!(t.secret||t.message||t.value));else if(\/[^a-zA-Z0-9]\/.test(t.secret));else{for(var r,s,a,i=d.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),n=d.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),o=new RegExp(\"^https?:$\",\"i\"),l=0;l<n.length;l++)n[l].style.display=\"none\";for(l=0;l<i.length;l++)if(r=i[l],e.source!==r.contentWindow);else{if(r.removeAttribute(\"style\"),\"height\"===t.message){if(1e3<(s=parseInt(t.value,10)))s=1e3;else if(~~s<200)s=200;r.height=s}if(\"link\"===t.message)if(s=d.createElement(\"a\"),a=d.createElement(\"a\"),s.href=r.getAttribute(\"src\"),a.href=t.value,!o.test(a.protocol));else if(a.host===s.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener(\"message\",c.wp.receiveEmbedMessage,!1),d.addEventListener(\"DOMContentLoaded\",t,!1),c.addEventListener(\"load\",t,!1);function t(){if(o);else{o=!0;for(var e,t,r,s=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),a=!!navigator.userAgent.match(\/Trident.*rv:11\\.\/),i=d.querySelectorAll(\"iframe.wp-embedded-content\"),n=0;n<i.length;n++){if(!(r=(t=i[n]).getAttribute(\"data-secret\")))r=Math.random().toString(36).substr(2,10),t.src+=\"#?secret=\"+r,t.setAttribute(\"data-secret\",r);if(s||a)(e=t.cloneNode(!0)).removeAttribute(\"security\"),t.parentNode.replaceChild(e,t);t.contentWindow.postMessage({message:\"ready\",secret:r},\"*\")}}}}(window,document);\n<\/script>\n","description":"\u5728Node.js\u4e2d\uff0c\u6709\u4e00\u4e2a\u7c7b\u4f3c\u4e8eSelenium\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\u53eb\u505aPuppeteer\u3002Puppeteer\u662f\u4e00\u4e2a\u7531Google\u5f00\u53d1\u7684Node.js\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2aAPI\u6765\u63a7\u5236\u548c\u64cd\u4f5c\u6d4f\u89c8\u5668\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u6a21\u62df\u7528\u6237\u884c\u4e3a\u3001\u8fdb\u884c\u9875\u9762\u5bfc\u822a\u3001\u6267\u884cJavaScript\u3001\u63d0\u53d6\u6570\u636e\u7b49\u7b49\u3002 Puppeteer\u5177\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a \u53ef\u4ee5\u901a\u8fc7\u65e0\u5934\u6a21\u5f0f\u8fd0\u884c\uff0c\u5373\u5728\u6ca1\u6709\u754c\u9762\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\u6d4f\u89c8\u5668\u64cd\u4f5c\u3002 \u53ef\u4ee5\u4e0eChrome\u6d4f\u89c8\u5668\u65e0\u7f1d\u96c6\u6210\u3002 \u652f\u6301\u5bf9\u9875\u9762\u8fdb\u884c\u622a\u56fe\u548cPDF\u751f\u6210\u3002 \u5141\u8bb8\u6a21\u62df\u952e\u76d8\u548c\u9f20\u6807\u8f93\u5165\u3002 \u53ef\u4ee5\u8fdb\u884c\u9875\u9762\u81ea\u52a8\u5316\u6d4b\u8bd5\u548c\u722c\u866b\u7b49\u4efb\u52a1\u3002 \u4f60\u53ef\u4ee5\u4f7f\u7528Puppeteer\u6765\u5b9e\u73b0\u7c7b\u4f3c\u4e8eSelenium\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u548c\u6d4f\u89c8\u5668\u64cd\u4f5c\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\uff0c\u4f7f\u5f97\u63a7\u5236\u548c\u64cd\u4f5c\u6d4f\u89c8\u5668\u53d8\u5f97\u975e\u5e38\u65b9\u4fbf\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Puppeteer\u6765\u52a0\u8f7d\u7f51\u9875\u3001\u586b\u5199\u8868\u5355\u3001\u70b9\u51fb\u6309\u94ae\u3001\u6293\u53d6\u6570\u636e\u7b49\u7b49\u64cd\u4f5c\u3002 \u8981\u5f00\u59cb\u4f7f\u7528Puppeteer\uff0c\u4f60\u9700\u8981\u5148\u5b89\u88c5\u5b83\u3002\u53ef\u4ee5\u4f7f\u7528npm\uff08Node.js\u7684\u5305\u7ba1\u7406\u5668\uff09\u6765\u5b89\u88c5Puppeteer\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u5728Node.js\u811a\u672c\u4e2d\u5f15\u5165Puppeteer\u5e76\u5f00\u59cb\u4f7f\u7528\u5b83\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528Puppeteer\u6765\u6253\u5f00\u7f51\u9875\u5e76\u622a\u53d6\u9875\u9762\u622a\u56fe\uff1a \u8fd9\u6bb5\u4ee3\u7801\u4f1a\u542f\u52a8\u4e00\u4e2a\u65e0\u5934Chrome\u6d4f\u89c8\u5668\u5b9e\u4f8b\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9875\u9762\uff0c\u7136\u540e\u5bfc\u822a\u5230\u6307\u5b9a\u7684\u7f51\u5740\uff0c\u5e76\u6700\u540e\u4fdd\u5b58\u9875\u9762\u622a\u56fe\u4e3aexample.png\u3002 \u8fd9\u53ea\u662fPuppeteer\u7684\u4e00\u4e2a\u7b80\u5355\u793a\u4f8b\uff0c\u5b83\u8fd8\u6709\u5f88\u591a\u529f\u80fd\u548cAPI\u53ef\u4ee5\u63a2\u7d22\u3002\u4f60\u53ef\u4ee5\u67e5\u9605Puppeteer\u7684\u5b98\u65b9\u6587\u6863\u6765\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u548c\u793a\u4f8b\uff1ahttps:\/\/pptr.dev\/"}