#6 - Intercept Network /API Responses with Selenium Chrome dev tools

preview_player
Показать описание
In this Video, I have explained how to intercept/Mock Network responses with Selenium Listeners
Please check out Selenium 4 Latest Features Playlist to watch all the concepts in sequence

Get Lifetime access to all 30+ Automation courses with one single Subscription from below link.
*****************************************************************************
Thanks
Rahul Shetty - QA Trainer/entrepreneur
Telegram Group for Interview Prep
Рекомендации по теме
Комментарии
Автор

This is insane 👀 being able to mock API requests for functional tests is super powerful if used properly 👏

ryanlaseter
Автор

this is awesome.. i think we can even read bearer token using this and then use it in API

Udzial
Автор

Thanks for sharing. can you explain how to mock the response which is received from service

venkateshgoud
Автор

Hi Rahul, I just need to know that can we achieve this using C# because I didn't come across any such method/library or nuget package with which I can achieve it. Any help would be appreciated. Thanks.

sunilkundu
Автор

Hello Sir, Thank you for this video.I am facing a weird issue while running this script. devtools.addListener(Fetch.requestPaused(), request-> is not getting invoked. Hence the network is not intercepted. I don't get any error so able to resolve the issue. If you could help, it will be really helpful for my project.

monikapanda
Автор

Is it possible to read the network tab of existing session?

ramprakash-jxwp
Автор

Hi Rahul, how do I intercept network call for chrome version 116. Until chrome version 115, this was working but now I am getting devToolsExcetion and it is asking me to "include an implementation on the class path, possibly by adding maven dependency of devTools matching my browser version. Unfortunately I am not able to fine devTool dependency to match chrome 116.

nidhijha
Автор

Hi Rahul, can we capture network tab logs in javascript?

gohanvippi
Автор

Is it support only chrome driver? Will it support for edge driver as well

harinov
Автор

Can we measure time taken and size by server calls?

rishikumar-wevg
Автор

Hi sir i want to run some script in devtools console could you please suggest me how i can do this
??

alphawolf
Автор

If our script opens a new window, then how to handle network requests for both parent and child Window

vivekjoshi
Автор

Hi Sir, Very helpful video. I would like to know if we can change the response body of an external APi called from my application? If so, how can I do that? Thank you.

eshaccount
Автор

Hi Rahul
Getting below error
The method enable(Optional<Integer>, Optional<Integer>, Optional<Integer>) in the type Network is not applicable for the arguments (Optional<Integer>, Optional<Object>, Optional<Object>)

Please suggest solution for this error.

dwupyui
Автор

when will the next parts of this series upload?

MuhammadAli-unvp
Автор

Great informative tutorial. Is it possible to capture network responses, for example, if I need entire response of one the network log that is loaded on particular page, is ir possible to do with devtool?

pradeeppatil
Автор

How do you get the response body back from the Network tab? I need to know the response body in order to do the validation. Thanks!

HenryLeu