This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Since Ruby preserves hash key insertion order, you can iterate over values. | |
request_hash = Hash.new { |h, k| h[k] = {} } | |
# Used to convert event timestamps to epoch time. | |
wall_time_offset = nil | |
# Note: Calling logs.get() will clear the log buffer. | |
performance_logs = page.driver.browser.manage.logs.get('performance') | |
# Extract request / response data from log messages. |