Codekru

How to capture console logs using Playwright Java?

You might have faced situations where you want to capture console logs from a website or application. Console logs can provide valuable insights into the performance, behaviour, and errors of your website or application. This article will discuss capturing console logs using Playwright Java, a powerful tool for automating web browser interactions. Playwright provides “page.onConsoleMessage()”

How to capture console logs using Playwright Java? Read More »

innerText() vs textContent() in Playwright

When working with web elements in Playwright, knowing the difference between innerText() and textContent() methods is important. While both methods return the text content of an element, they differ in how they handle whitespace and non-textual elements. This article will explore the differences between innerText and textContent in Playwright and discuss how to use them

innerText() vs textContent() in Playwright Read More »