test automation
Blogs
- In test automation, locators allow test scripts to interact with elements on a page, mimicking real user actions. Choosing the right locators can make tests more robust, reliable, and less prone to breaking with minor UI changes. Poor locator strategies can lead to flaky tests that fail for the wrong reasons, wasting time and resources. By choosing the right locator strategy you can create tests that are stable, easy to understand, and closely aligned with how users interact with your application, ultimately improving test effectiveness and maintainability. Playwright comes with a very wide and flexible way of locators, and in this blog post we will dive deep into how to define resilient locators and I will propose a locator strategy that I personally use on my projects.
- Writing Playwright tests can be incredibly rewarding, but like any tool, improper use can lead to frustrating results. Many developers, especially those transitioning from Selenium, inadvertently carry over practices that don't align with Playwright's capabilities. In this blog, we'll explore the most common mistakes made when writing Playwright tests and provide actionable tips to help you avoid them.
- As teams adopt test automation, we often focus on writing tests, but overlook how to structure them for long-term maintainability. Just as we wouldn't build a house without proper architectural plans, we shouldn't build our test automation without a solid foundation. Whether you're a developer bringing your code organization expertise to testing, or an SDET looking for ideas on how to better structure your test project, this guide will provide several approaches and ideas on creating maintainable and scalable Playwright test framework.
- Playwright 1.51 has just landed, and I'm excited about one standout feature the new "Copy prompt" button. While it appears as a simple addition to the Playwright report, this functionality can significantly boost reporting capabilities, shorten debugging time, and streamline error resolution. By creating a bridge between Playwright and language models, it opens the way for innovative features that could transform how we leverage AI and LLMs in our testing workflows. Let's explore what's new and discuss how this addition could benefit test automation going forward.
- Imagine a test automation framework so powerful and versatile that it ignites a deep interest, making you eager to explore and understand every aspect of it. That's exactly what Playwright did for me. In a world filled with countless testing tools, Playwright stands out as a true game-changer, revolutionizing how we approach test automation.