docs(api.md): fix sample code in API doc, request.url -> request.url() (#1889)

This commit is contained in:
Bamboo 2018-01-25 13:09:37 +08:00 committed by Andrey Lushnikov
parent f2b6016354
commit a39d96eae9

View File

@ -2156,7 +2156,7 @@ Example of logging all failed requests:
```js ```js
page.on('requestfailed', request => { page.on('requestfailed', request => {
console.log(request.url + ' ' + request.failure().errorText); console.log(request.url() + ' ' + request.failure().errorText);
}); });
``` ```