Handling ElementNotVisibleException And Element Is Not Clickable Exception In Selenium

Hello Folks, In this post, we will learn how to handle “ElementNotVisibleException ” and “Element is not clickable exceptions”. While running Selenium scripts, sometimes we face below exceptions: “org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (242, 845). Other element would receive the click” “org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be […]

How To Locate Web Element Which Has Multiple Class Names

Hello Folks, Recently I learnt new thing so just wanted to share with you. We will see how to locate web elements which has multiple class names as html attribute. See carefully below html code: You will see “CLASS” attribute which has value as “required_field cityPadRight ac_input“. Actually above web element has multiple class name […]

Handling Calendar Which Has Year & Month As Drop down In Selenium

Hello Folks, We have seen Handling of calendar of one type in last post. Adding to it, in this post we will see handling of calendar which has year and month as drop-downs. A calendar which has year and month has drop-downs looks as below: User needs to select year followed by month and day. This […]

Frequently Asked Java Program 11: Find Position Of Letter In Alphabet

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 Find Position Of Letter In Alphabet. Problem: Accept a letter from user and print position of input letter in alphabet. Example: A has 1st position in alphabet. B has 2nd position in […]

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

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.