mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
parent
c6c32491ec
commit
0d0e620405
@ -2962,9 +2962,9 @@ const puppeteer = require('puppeteer');
|
||||
|
||||
puppeteer.launch().then(async browser => {
|
||||
const page = await browser.newPage();
|
||||
await page.goto('https://google.com');
|
||||
const inputElement = await page.$('input[type=submit]');
|
||||
await inputElement.click();
|
||||
await page.goto('https://example.com');
|
||||
const hrefElement = await page.$('a');
|
||||
await hrefElement.click();
|
||||
// ...
|
||||
});
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user