Hello Folks, Color code may represents an information about field. Consider below scenarios: All mandatory field of a web form will have a yellow bottom color. 2. If User does not enter proper value in a text box, color of text box will be converted in to red. You can verify these functionalities … Continue reading How to Validate Field Color in Selenium WebDriver – Validation for Mandatory FIeld or Valid values
Advanced Concept of Selenium – Design Patterns in Selenium WebDriver – There is Not Only Page Object Model Design Pattern
Hello Folks, When we talk about design pattern in Selenium WebDriver, we generally discuss about Page Object Model (POM) and Behavioural Driven Development (BDD). But there are many more. Before we go and see other design patterns in Selenium, I would like to explain "What is actually mean by Design Pattern?". Design Pattern: A design … Continue reading Advanced Concept of Selenium – Design Patterns in Selenium WebDriver – There is Not Only Page Object Model Design Pattern
TestNG Tutorials 64: Dependency in TestNG – ignoreMissingDependencies – Another Way of Achieving Soft Dependencies
Hello Folks, There are two types of dependencies in TestNG: 1. Hard Dependency : All the methods you depend on must have run and succeeded for you to run. If at least one failure occurred in your dependencies, you will not be invoked and marked as a SKIP in the report. 2. Soft Dependency : You will always be … Continue reading TestNG Tutorials 64: Dependency in TestNG – ignoreMissingDependencies – Another Way of Achieving Soft Dependencies
TestNG Tutorials 63: Dependency in TestNG – Usage of Regular Expressions with DependsOnGroup
Hello Folks, We have learnt in previous posts regarding establishing relationship between test methods. You can go through them below: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnMethod Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnGroup In this post, we will learn how can we use regular expressions with … Continue reading TestNG Tutorials 63: Dependency in TestNG – Usage of Regular Expressions with DependsOnGroup
Ways of Handling StaleElementReferenceException Without PageFactory
Hello Folks, Previously, I had published on Handling StaleElementReferenceException using PageFactory. But many people asked how to handle it if they do not use Page Factory design pattern. Understand StaleElementReferenceException through an image: You would have seen so many explanations of StaleElementReferenceException. I would like to explain in very simple words here. You mostly encounter StaleElementReferenceException when you … Continue reading Ways of Handling StaleElementReferenceException Without PageFactory
How to Verify if Options in Dropdown are Sorted as Expected In Selenium WebDriver – Java
Hello Guys, As I say always, your automation script is ineffective if you do not include logic to validate to make sure the desired action has been performed by Selenium script. For Example - You have a dropdown in your application. Manually you verify if dropdown contains desired options or it s sorted. Generally while … Continue reading How to Verify if Options in Dropdown are Sorted as Expected In Selenium WebDriver – Java
How To Verify If An Input Box Accepts Only Numbers Through Selenium
Hello Guys, You should not be able to type alphabets or special characters in a field which supposed to accept only numbers. Manually you can type alphabets or special characters and verify. But in automation it is little tricky. Your application developer might restrict alphabets and special characters by setting value of "type" attribute of input … Continue reading How To Verify If An Input Box Accepts Only Numbers Through Selenium
How To Verify Maximum Character Limit of an Input Box Through Selenium
Hello Folks, Recently a guy asked me this question which he was asked in an interview in IBM. What the ways to test maximum character limit of an input box through Selenium? To achieve this in Selenium, we have two ways: Suppose maximum character limit of an input box is 10 characters. Type more than … Continue reading How To Verify Maximum Character Limit of an Input Box Through Selenium
TestNG Tutorials 62: Dependency in TestNG – Types of Dependencies in TestNG – Hard Dependency & Soft Dependency
We have learnt in previous posts regarding establishing relationship between test methods. You can go through them below: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnMethod Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnGroup Before we learn about types of dependencies in TestNG, lets see one scenario first: If … Continue reading TestNG Tutorials 62: Dependency in TestNG – Types of Dependencies in TestNG – Hard Dependency & Soft Dependency
TestNG Tutorials 61: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnGroup
In previous post, We have learnt to Establish dependency among test methods. In this post, we will see another concept in Dependency called DependsOnGroup. Consider a scenario: You have created automation scripts for Integration testing. We know that in integration testing, data flows from one module to another. You divide your test methods as per group. … Continue reading TestNG Tutorials 61: Dependency in TestNG – Creating Dependency Among Test Methods – DependsOnGroup