当我在页面控制台中运行以下代码时,我试图抓取,我得到了picture。
document.querySelector('#sb-site > div.sticky_footer > div:nth-child(9)')
Run Code Online (Sandbox Code Playgroud)
但是,当我在我的程序中运行它时,控制台会记录它并返回“{}”
const inputContent = await page.evaluate(() => {
return document.querySelector('#sb-site > div.sticky_footer > div:nth-child(9)'); });
Run Code Online (Sandbox Code Playgroud) puppeteer ×1