Microsoft launches Playwright for Python for automating testing
Microsoft is making an attempt to make it simpler for builders to automate their end-to-end assessments. The corporate has introduced a preview of Playwright for Python, which permits builders and testers to put in writing such assessments in Python.
In line with Microsoft, automated end-to-end assessments have change into extra essential than ever as groups construct apps that run on various totally different sorts of units. The rise within the variety of targets coupled with elevated supply velocity has put extra stress on the testing course of, and automation is essential to allow testing on the velocity it must be achieved.
Playwright for Python gives timeout-free automation, which makes it extra dependable. Microsoft defined that always automated assessments depend on sleep timeout to handle the complexity of recent apps, however this typically results in unpredictable failures. Playwright waits for the UI to be prepared earlier than executing, and makes use of an event-driven structure that is ready to hear to express browser occasions like DOM modifications, community requests, and web page navigations.
The answer can be constructed for the trendy net and may automate newer net options like emulation of cell viewports, geolocation, and net permissions. It additionally works on all trendy browser engines, together with Chromium, WebKit, and Mozilla Firefox.