Skip to content

Get list network request #972

Answered by mdmintz
AndrejSayadov asked this question in Q&A
Aug 25, 2021 · 3 comments · 4 replies

You must be logged in to vote

@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)

Replies: 3 comments 4 replies

You must be logged in to vote
4 replies
@suredarv06

@mdmintz

@suredarv06

@mdmintz

Answer selected by mdmintz

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants