鍍金池/ 問答/HTML/ puppeteer 點(diǎn)擊事件沒效果

puppeteer 點(diǎn)擊事件沒效果

const puppeteer = require('puppeteer');
(async () => {  const browser = await puppeteer.launch({headless:false})  
const page = await browser.newPage()  
await page.goto('https://www.baidu.com');  
await page.type('#kw','puppeteer',{delay:100})  
await page.click('#su')  
await page.waitFor(2000)  
await browser.close();
})();

下載了好多關(guān)于puppeteer的demo都是點(diǎn)擊沒效果,求解!

回答
編輯回答
檸檬藍(lán)

Life is not pink and more people have realized that. The larger the more people feel they are disadvantaged, have always been treated unfairly and betrayed by those around them.
whatsapp baixar

2017年12月26日 02:47
編輯回答
苦妄

Your site has a lot of useful information for myself. I visit regularly. Hope to have more quality items.
despacito lyrics ,
color switch 2

2018年1月2日 09:07
編輯回答
夢若殤

await page.waitFor(2000) 改成 await page.waitForNavigation() 試試看?

2018年2月20日 23:00