摘要:
隐藏一个div实例 if((await page.$$(".sufei-dialog-jquery", e => e.length)) > 0) { await page.$eval('.sufei-dialog-jquery', (el, value)=> el.setAttribute('sty 阅读全文
摘要:
配置 page.setViewport: 设置视图大小 // 设置 浏览器视窗 await page.setViewport({ width: 1300, height: 938, }); page.setUserAget: 设置UserAgent await page.setUserAgent(' 阅读全文
摘要:
(async() => { // 模拟登录 async function login(page){ console.log('正在登陆....') await page.goto('https://login.1688.com/member/signin.htm', { waitUntil: 'ne 阅读全文
摘要:
// 页面宽高 const width = 1300; const height = 800; (async() => { // 新建浏览器实例 const browser = await puppeteer.launch({ executablePath: 'C:\\Users\\laborato 阅读全文