Method: Playwright::Request#timing
- Defined in:
- lib/playwright_api/request.rb
#timing ⇒ Object
Returns resource timing information for given request. Most of the timing values become available upon the response, responseEnd becomes available when request finishes. Find more information at [Resource Timing API](developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming).
Usage
“‘python sync with page.expect_event(“requestfinished”) as request_info:
page.goto("http://example.com")
request = request_info.value print(request.timing) “‘
200 201 202 |
# File 'lib/playwright_api/request.rb', line 200 def timing wrap_impl(@impl.timing) end |