Advertisement
bebo231312312321

Untitled

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