Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- await page.route('**/jsonstore/collections/books', (route, request) => { //на страницата регистрираме page.route
- route.fulfill({ // с fulfill връщаме данни
- body: JSON.stringify(mochData),
- status: 200,
- headers: {
- 'Access-Control-Allow-Origin': '*',
- 'Content-Type': 'application/json',
- }
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement