marty90 / PyChromeDevTools

PyChromeDevTools is a python module that allows one to interact with Google Chrome using Chrome DevTools Protocol within a Python script.
Apache License 2.0
301 stars 41 forks source link

I think the example to measure time to load is wrong #21

Open fmrosa opened 4 years ago

fmrosa commented 4 years ago

Used the exact same example from notes. (python 2.7.3) Every website I go to takes 2 seconds to load. Tested with www.httpbin.org/delay/8 that should take a 8s delay and it also loaded in 2 seconds. how can I troubleshoot to understand what is going on?

choldener commented 3 years ago

The example is correct, however there is currently a bug in the module that causes a timeout after about 2 seconds giving incorrect results. the PR #23 fixes the problem and should avoid this in the future.