playwright: local variable ‘page‘ referenced before assignment

  1. 安装好playwright后,运行相关程序出现此错误,按照下述链接中的方法安装相关组件和浏览器驱动后,问题得以解决。
https://www.cnblogs.com/fengyangsheng/p/17531254.html
  1. 安装playwright
pip install -i https://mirrors.aliyun.com/pypi/simple/ playwright

安装组件和浏览器驱动

playwright install

playwright: local variable ‘page‘ referenced before assignment_第1张图片

你可能感兴趣的:(python,playwright,bug)