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 […]

Frequently Asked Java Program 10: Draw An Equilateral Triangle Using Stars Of Given Row

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a Java program to Draw An Equilateral Triangle Using Stars Of Given Row. Problem statement: Draw an Equilateral Triangle using stars of given row. Example: An Equilateral Triangle of 5 rows: Solution: Number of stars in a row is equal […]

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 […]

Frequently Asked Java Program 09: Printing Words In Circular Order From Given Index

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a Java program to Printing Words In Circular Order From Given Index. Problem: Suppose you have below string: “Make Selenium Easy” Where -“Make” is at position zero. -“Selenium” is at first position . -“Easy” is at […]

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 […]

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.