Get list network request #972
-
Hello! Please tell me how to get a list of requests using python? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@AndrejSayadov Use the following code snippet in your Chrome tests: items = self.driver.execute_script("var performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; var network = performance.getEntries() || {}; return network;")
for item in items:
print(item) |
Beta Was this translation helpful? Give feedback.
-
This method does not get a response (body) from requests |
Beta Was this translation helpful? Give feedback.
-
@AndrejSayadov You can check through solutions listed in https://stackoverflow.com/questions/5799228/how-to-get-status-code-by-using-selenium-py-python-code |
Beta Was this translation helpful? Give feedback.
@AndrejSayadov Use the following code snippet in your Chrome tests: