In Java, a string is an object representing a sequence of characters. It’s used to store and manipulate text-based information. Properties of Strings: Immutable Nature: Once a string is created, its content cannot be changed. Any operation that appears to modify a string actually creates a new string. Creation: Strings can be created using double… Continue reading Java String
Tag: Selenium
Test dependencies in TestNG
In TestNG, you can create test dependencies to ensure that a particular test method runs only if the method it depends on completes successfully. This is especially useful when a certain test method needs another method to be successful before it can be meaningfully executed. Here’s how you can define test dependencies in TestNG: Using… Continue reading Test dependencies in TestNG
Handling Alerts in Java Selenium
Alerts are a common feature in web applications. They can be simple information messages, confirmation prompts, or even critical error notifications. Handling these alerts effectively is crucial for any Selenium test automation script. In this article, we’ll explore how to deal with alerts in Java Selenium. Handling Alerts in Java Selenium Selenium WebDriver provides a… Continue reading Handling Alerts in Java Selenium
What is OCP in Selenium Automation
OCP in the context of Selenium likely refers to the “Open-Closed Principle,” which is one of the five SOLID principles of object-oriented programming. The Open-Closed Principle states that software entities (such as classes, modules, functions, etc.) should be open for extension but closed for modification. This means that you should be able to extend the… Continue reading What is OCP in Selenium Automation
Maven Repository
A Maven Repository is a central component of the Apache Maven build tool and dependency management system. It plays a crucial role in facilitating the sharing and distribution of software libraries, plugins, and other artifacts in the Java and related software development ecosystems. Here are some key points to understand about Maven Repositories: Storage for… Continue reading Maven Repository
Maven Dependencies
Maven, a widely used build automation and project management tool in the Java ecosystem, simplifies the process of managing project dependencies. In software development, dependencies refer to external libraries or modules that a project relies on to function correctly. Maven’s dependency management system ensures that these dependencies are seamlessly integrated into your project, making it… Continue reading Maven Dependencies
Priorities in TestNG
In TestNG, you can set priorities for test methods to control the order in which they are executed. Priorities are used to define the sequence in which test methods should run within a test class. TestNG executes methods with lower priority values before those with higher priority values. Here’s an example of how to use… Continue reading Priorities in TestNG
Basic to Advanced locators in Selenium
Selenium Manager update (0.4.12)
Selenium Manager 0.4.12 is shipped with Selenium 4.12.0. This release aims to stabilize the features provided so far, delivering a new relevant characteristic: automated browser management for Firefox. A new release of Selenium Manager is out. For this release, we made a relevant decision concerning the Selenium Manager versioning format. From now on, Selenium Manager… Continue reading Selenium Manager update (0.4.12)
Annotations in TestNG
Introduction Testing is a crucial aspect of software development, ensuring that your code works as intended and meets the requirements. TestNG, a widely-used testing framework for Java, simplifies the testing process with its rich set of features and annotations. Annotations in TestNG serve as markers that provide metadata about the methods they annotate. In this… Continue reading Annotations in TestNG