简体   繁体   中英

How do i intercept API calls in karate ui automation

I am looking for some info on how to intercept the api calls in the karate UI automation. Currently my use case is very similar to the one below, where i am looking at checking few request headers to redirect/block the request. https://github.com/puppeteer/puppeteer/blob/master/examples/block-images.js

Any tips would be helpful !

Thanks !

This has just been released as 0.9.6.RC2: Nice timing :)

Here is the documentation: https://github.com/intuit/karate/tree/develop/karate-core#intercepting-http-requests

You can see a video here: https://twitter.com/KarateDSL/status/1248996522357739521

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM