Check POST Request Payload Data with Protractor

Say I have an angular page with several input elements and a save button. After clicking the "Save" button, a POST request will be sent. I am writing a Protractor e2e test for this page.

Question:

How can I check the payload data of a POST request after sending the application or before sending? I want to be sure that my application will send the correct data to the POST request.

+4
source share
1 answer

Following @Andres D comment: yes, there is a misconception here.

protractor - , . , , - , ..

, , , , js - , .


FYI, protractor-http-mock, , .

+2

All Articles