-
-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SeeTraffic & Grabbing network traffic not working #4524
Comments
Hello, Based on the configuration you shared, it appears that you are utilizing the WebDriver Helper without enabling the developer tools protocol. As per the documentation, network recording is only functional when the developer tools protocol is enabled. You can find the documentation here: https://codecept.io/helpers/WebDriver/#grabrecordednetworktraffics Only works when devtoolsProtocol is enabled. |
Hi kobenguyent, Thank you for your response. |
Some more information. Due to this, grabRecord* function is grabbing svg requestPostData, but not able to grab any xhr request post data. |
here is a scenario I grab from UTs.
is it the case you start the traffic recording after the navigation which somehow records nothing until you make some navigation?
|
What are you trying to achieve?
I am trying to use seeTraffic and grabRecordedNetworkTraffics functions. grab* function is returning array with empty values or each field. seeTraffic is always passing because it is not able to assert on 'requestPostData'
What do you get instead?
for grabRecordedNetworkTraffics I am getting empty values like below:
for seeTraffic, it is always passing.
As per my analysis,
For grabRecordedNetworkTraffics, startRecordingTraffic() always returning data with _response = null. Which is causing grabRecordedNetworkTraffics to return empty values.
For seeTraffic API call, I found that variable 'RequestPostDataObject' inside helper/network/utils.js is stringified but it is being used as object at line number 101 in the file.
Details
I am trying to assert some network API payload so that I can ensure, on submitting a form it is sending the correct data.
The text was updated successfully, but these errors were encountered: