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