在使用playwright时访问有些网站出现证书相关问题,codegen启动就闪退。
playwright codegen --ignore-https-errors https://example.com
编写代码中可以加入以下代码
context = browser.new_context(ignore_https_errors=True)
版权声明:本文为chengriyue原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
在使用playwright时访问有些网站出现证书相关问题,codegen启动就闪退。
playwright codegen --ignore-https-errors https://example.com
编写代码中可以加入以下代码
context = browser.new_context(ignore_https_errors=True)