A list of your recent invoices.
Sr No.Book NameBook GenreBook AuthorBook ISBNBook Published
1How puzzling all.UtRajesh Agrawal97882129573811990-03-06
2It did so indeed.DeseruntAarif Nawal97929551440521981-05-25
3Dormouse. 'Don't.MagnamUday Ramroop97948008847551994-04-10
4Gryphon answered.EumKushal Naik97941947581821998-10-18
5How puzzling all.VelitAfreen Thomas97834990725741997-04-19
6I should frighten.ExpeditaBaalkrishan Mall97944362818741973-03-10
7SOMEBODY ought to.QuiJaswant Amin97857707812812014-06-18
8Footman's head: it.DictaIndira Pingle97915591533301977-10-22
9So she set to work.DolorMonica Brar97866262907591992-07-29
10Alice, seriously.OfficiaSameera Vig97822075493081989-05-13

Insight

On completion of this exercise, you can learn the following concepts:

  1. accept()
  2. dismiss()
  3. waits()
  4. sendKeys()
  5. switchTo()
  6. getText()

Introduction

There are 3 types of alert such as - Simple alert, Prompt alert, and confitmation alert. To automate the alert selenium provoide switchTo() method which changes focus of selenium webdriver to alert.

To handle them we are having different methods in selenium such as -

  1. accept,
  2. dismiss,
  3. sendKeys,
  4. getText,
  5. wait.
  6. switchTo

📄 Also Read: Top 10 Best Automation Practice Website