Systems | Development | Analytics | API | Testing

Taking Screenshots in Selenium [with Code]

In the automation testing field, capturing screenshots is very important to verify the behaviour of different aspects of an application. Screenshots are visual evidence that helps testers verify application behaviour, identify issues, and improve test documentation. Selenium WebDriver, a popular tool for automating web applications, offers the best support for capturing screenshots that help in effectively monitoring and validating test results.

How to Drag and Drop Elements When Using Selenium WebDriver?

When automating web applications with Selenium WebDriver, there are different scenarios where drag-and-drop functionality is needed. This occurs in test cases for applications featuring interactive UI elements, such as file uploaders, dashboards, Kanban boards, or drag-and-drop forms. This helps users move elements as expected without any errors or glitches. Read this blog to learn more about the drag-and-drop action process in Selenium WebDriver, along with its uses, challenges, and examples.

Using Apache POI to Read Data from Excel in Selenium

Data management is one of the most important aspects of Selenium test automation, as it allows for the perfect reading and writing of files. One simple method is using Excel files to store and retrieve test data. Apache POI (Poor Obfuscation Implementation) is a powerful Java library that allows Selenium WebDriver to read, write, and modify Excel files in XLS and XLSX formats. This improves the flexibility and maintainability of test scripts to support data-driven testing.

Page Object Model and Page Factory in Selenium (Java)

In Selenium test automation, managing test scripts efficiently is important for improved scalability, readability, and maintainability. The Project Object Model (POM) is a design pattern that improves the structure of automation scripts by creating a separate class for each web page in an application. Page Factory is a more advanced version of POM that further simplifies object repository management.

How to Use the Select Class in Selenium for Dropdowns?

Dropdown menus are important for user interactions in web applications, allowing users to choose from a pre-defined dropdown list. Selenium WebDriver simplifies dropdown handling through the select class, which provides various methods to interact with dropdown elements efficiently. Read further to understand the use of select class in Selenium scripts for your automated tests to interact with a dropdown element and navigate options effectively.

CSS Selectors in Selenium Explained (with Examples)

One of the most important tasks when automating web applications using Selenium is locating elements efficiently. CSS Selectors are one of the most powerful and preferred ways to locate elements due to their speed and flexibility. They provide a concise syntax to identify elements based on their attributes, relationships, and hierarchy. Unlike XPath, which can be more complex and slower in certain scenarios, CSS Selectors offer a streamlined approach to element selection.

Using JavaScriptExecutor in Selenium for Enhanced Browser Automation

JavaScriptExecutor executes JavaScript code directly within the browser. Using JavaScriptExecutor in Selenium, testers can perform advanced automation tasks like scrolling, clicking hidden elements, handling alerts, and manipulating the Document Object Model (DOM). This makes it an important tool for improving browser testing features. Read further to learn more about the basics of JavaScriptExecutor in Selenium, their use cases, working methods, benefits, etc.

Page Object Model and Page Factory in Selenium (Java)

In Selenium test automation, managing test scripts efficiently is important for improved scalability, readability, and maintainability. The Project Object Model (POM) is a design pattern that improves the structure of automation scripts by creating a separate class for each web page in an application. Page Factory is a more advanced version of POM that further simplifies object repository management.

How to Handle iFrames and Frames in Selenium WebDriver?

Frames and iFrames (Inline Frames) are regularly used in web pages to embed content from external sources or divide a page into multiple sections. Handling frames and iFrames is a common challenge during test automation for the Selenium WebDriver, as switching between different contexts within the same page is necessary to interact with elements appropriately. Read further to learn about the approach to handling frames and iFrames in Selenium WebDriver.

End-to-end Testing with #Playwright | David Paquette | The Test Tribe Calgary Meetup

The Test Tribe Calgary Meetup took place on 22nd January and featured David Paquette, Principal Software Engineer at Microsoft, who took us through the power of Playwright in making end-to-end testing seamless and reliable. If you've ever struggled with flaky tests, difficult test setups, or maintaining complex test code, this talk was packed with solutions. David demonstrated how to write stable cross-browser tests, debug efficiently using Playwright’s codegen, inspector, and trace viewer, and shared practical strategies to enhance test automation workflows.