This article is a mirror article of machine translation, please click here to jump to the original article.

View: 110|Reply: 0

[Source] [Playwright] (3) Automated testing to catch error exceptions

[Copy link]
Posted on5 days ago | | | |
Requirements: C# uses Playwright for automated testing, before manual testing, first ensure that the opened web page is free of errors, such as: 404 resources are inaccessible, js running abnormally and other common errors.

Use Playwright to get the PageError, console error log information, the code is as follows:
As shown below:





Previous:Optimization of user status in Discuz x3.4 post in guest mode
Next:Use XPath to retrieve XML, HTML document content
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com