【PlayWright】报错:AttributeError: ‘PlaywrightContextManager’ object has no attribute ‘_playwright’的可能解决方案

Python194

1.问题分析

1.1. 公司云桌面win7系统把之前C盘中自带的py3.7环境给还原了,之前跑得好好的PlayWright案例不能运行了

2.解决过程

2.1. 参考网上的解决方案,说是node的版本问题,但是我将之前可以运行的V12.22.12版本回退到V12.9.1以后,还是不行,但是我发现我的报错信息中,没有网上的这一段

Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.

Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly.

2.2. 重新翻阅安装过程,发现覆盖node.exe的这一步没有做,故覆盖完成后,即解决问题
【PlayWright】报错:AttributeError: ‘PlaywrightContextManager’ object has no attribute ‘_playwright’的可能解决方案

【PlayWright】报错:AttributeError: ‘PlaywrightContextManager’ object has no attribute ‘_playwright’的可能解决方案

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长