title: Navigating to "url", waiting until "load" - Python Playwright Issue
body: <p>Hey I have code in python playwright for getting page source:</p>
  <pre><code>import json
  import sys
  import bs4
  import urllib.parse
  from bs4 import BeautifulSoup
  server_proxy = urllib.parse.unquote(sys.argv[1])
  link = urllib.parse.unquote(sys.argv[2])
  from playwright.sync_api import sync_playwright
  with sync_playwright() as p:
      #browser = p.chromium.launch(headless = False)
      browser = p.chromium.launch(proxy={&quot;server&quot;: server_proxy,'username': 'xxx',&quot;password&quot;: 'xxx' })
      context = browser.new_context(user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36')
      page = context.new_page()
      cookie_file = open('cookies_tessco.json')
      cookies = json.load(cookie_file)
      context.add_cookies(cookies)
      page.goto(link)
      try:
          page.wait_for_timeout(10000)
          cont = page.content()
          print(cont)
          page.close()
          context.close()
          browser.close()      
      except Exception as e:
          print(&quot;Error in playwright script.&quot; + page)
          page.close()
          context.close()
          browser.close()      
  </code></pre>
  <p>This works okay, but sometimes I receive this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;page_tessco.py&quot;, line 17, in &lt;module&gt;
      page.goto(link)
    File &quot;/usr/local/lib/python3.9/site-packages/playwright/sync_api/_generated.py&quot;, line 5774, in goto
      self._sync(
    File &quot;/usr/local/lib/python3.9/site-packages/playwright/_impl/_sync_base.py&quot;, line 103, in _sync
      return task.result()
    File &quot;/usr/local/lib/python3.9/site-packages/playwright/_impl/_page.py&quot;, line 464, in goto
      return await self._main_frame.goto(**locals_to_params(locals()))
    File &quot;/usr/local/lib/python3.9/site-packages/playwright/_impl/_frame.py&quot;, line 117, in goto
      await self._channel.send(&quot;goto&quot;, locals_to_params(locals()))
    File &quot;/usr/local/lib/python3.9/site-packages/playwright/_impl/_connection.py&quot;, line 36, in send
      return await self.inner_send(method, params, False)
    File &quot;/usr/local/lib/python3.9/site-packages/playwright/_impl/_connection.py&quot;, line 47, in inner_send
      result = await callback.future
  playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
  =========================== logs ===========================
  navigating to &quot;https://www.tessco.com/product/207882&quot;, waiting until &quot;load&quot;
  </code></pre>
  <p>I tried to add</p>
  <pre><code>page.wait_for_timeout(10000)
  </code></pre>
  <p>but still, these errors appear sometimes, any help, also im confused why this error appears only sometimes, what causes this error, if someone has experience please share it?</p>