Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the browser API calls using Protractor?

I Need to verify if the required API is been triggered by the browser or not. So, is there a way to get the list of API's that been called by the browser using Protractor?

like image 300
S Pat Avatar asked Dec 19 '25 12:12

S Pat


1 Answers

There is nothing in Protractor or webdriver that I am aware of that will help with this (both of these mostly deal with the front end of the browser, not the server-facing end). Depending on which browser you are using you may be able to ask it, or install a plugin (E.g., How do I make the web browser log all activity, including requests, responses, cookie activity, to a log file that I can inspect?).

like image 87
P.T. Avatar answered Dec 21 '25 02:12

P.T.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!