Get list network request #972
Answered
by
mdmintz
AndrejSayadov
asked this question in
Q&A
|
Hello! Please tell me how to get a list of requests using python? |
Answered by
mdmintz
Aug 25, 2021
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) |
4 replies
Answer selected by
mdmintz
|
This method does not get a response (body) from requests |
0 replies
|
@AndrejSayadov You can check through solutions listed in https://stackoverflow.com/questions/5799228/how-to-get-status-code-by-using-selenium-py-python-code |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@AndrejSayadov Use the following code snippet in your Chrome tests: