Hello Folks,
I will start series of posts on topic “Handling different types of popup in selenium webdriver”.
Website Popup:
Java code:
Output:
You can run above program and check. It will print header of pop up and enter details in text boxes.
You can notice, there was no need of any extra knowledge. Just remember, every popup does not require Alert interface to handle it.
Example 2:
When you open TimesOfIndia URL, you are asked for enable new notifications in a popup. You can inspect this and handle it like as a normal button. Try it for better understanding.
We will see other types of popups in upcoming posts.
If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe.
#ThanksForReading
#HappySelenium
My name is Amod Mahajan and I am an IT employee with 4+ years of experience in Software testing and staying in Bengaluru. My area of interest is Automation testing. I started from basics and went throw so many selenium tutorials. Thanks to Mukesh Otwani as his tutorials are easy and cover basics to advance. I have habit of exploring concepts by deep diving. I used to make notes. I thought of sharing my knowledge through posts and now I am here. #KeepLearning #ShareLearning
"How much Java I need to learn for selenium with Java binding?" is mostly asked question by a Professional who…
Hello Guys, You should not be able to type alphabets or special characters in a field which supposed to accept…
Hello Folks, Recently a guy asked me this question which he was asked in an interview in IBM. What the…
Hello Folks, As part of our API Testing series, we will see “Sending GET request with params in Postman”. In last…
We have learnt in previous posts regarding establishing relationship between test methods. You can go through them below: Dependency in…
In previous post, We have learnt to Establish dependency among test methods. In this post, we will see another concept…