Category: Selenium Topics

This category contains topics of Selenium.

Capturing Screenshot Using Robot Class In Selenium

Hello Folks, In last post we have seen Taking Screenshot Using TakesScreenshot Interface In Selenium. I have explained about its drawbacks as well. Drawbacks of using TakesScreenshot interface for taking screenshot in selenium: It will not take screen shot when an alert is open.  It will give you an exception stating “org.openqa.selenium.UnhandledAlertException”. It takes screenshot of visible area of […]

Taking Screenshot Using TakesScreenshot Interface In Selenium

Hello Folks, In this post we will learn how to take screenshots in Selenium webdriver using selenium provide interface TakesScreenshot . Why we need to take screenshot? When we perform manual testing , for each step or important steps, we take screenshot and attach in test result report. Screenshots are proof of test case status. It gives […]

Part 3: Handling Multi Select Drop-down Created Using SELECT Tag

Hello Folks, In current series of posts we have learnt: Basics of drop-down created using SELECT tag. Handling single select drop-down. Now, we will see how to handle multi select drop-down using Select class. We will be using below html code of multi select drop-down: When you will open above html file in a browser, […]

Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Hello Folks, In last post we have seen an important topic in Selenium Webdriver which was Handling Any Types Of Listbox/dropdown In Selenium Webdriver. Method discussed in this post will work for all types of drop-down created using any tags. Mostly drop-down are created using <select> tag and Selenium provides a special way to handle […]

Java Program 10: Replace All Occurrence Of Sub string In Given String

Hello folks, In this post, we will learn how to replace a sub string in a given string. Detailed description of problem is given below: Problem: You have an input string and you need to replace sub string from new sub string in given input string. Example: Input: This bike is my bike. Action: Replace […]

Handling Any Types Of Listbox/dropdown In Selenium Webdriver

Hello Guys, In this post we will learn how to handle a listbox/dropdown. What is dropdown/listbox? Suppose there is a form. This form consists below fields: Title Name Gender DOB: Day, Month, Year Country If you notice, some of fields can accept value from some definite set of values. For example: Title can be  any […]

All About getText() method: What, Why And How.

Hello Folks, In this post we will learn below topics: What is getText() method? Why we use getText() method? How we use getText() method? [Interview Question] Print all languages supported by Google. What are differences between getText() and getAttribute() methods? Let’s start: What is getText() method? getText() is a method which gets you the visible […]

Part 6: Waits In Selenium: What Happens When We Mix Implicit Wait And Explicit Wait ?

Hello Folks, In last post we have seen the behavior of webdriver when mixing sleep with other waits. In this post, we will learn behavior of webdriver when we mix implicit wait and explicit wait. I hope, you will have good idea about implicit wait and explicit wait from my old posts. We know when […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.