A list of your recent invoices.
Sr No.Book NameBook GenreBook AuthorBook ISBNBook Published
1Cat. 'Do you mean.InDaanish Magar97802559282671992-12-09
2I!' said the King.OccaecatiLeelawati Deshpande97843170619922010-01-07
3There was a body.UndeCharandeep Gill97951974025462018-05-11
4I should be like.NesciuntNitika Kata97946742428282000-01-02
5Dormouse: 'not in.AliasBiren Sehgal97948217030591992-08-17
6THE KING AND QUEEN.AutMustafa Divan97835109404172016-01-22
7The Dormouse had.BeataeVenkat Mahajan97843745060232025-08-26
8Would not, could.ExcepturiSahil Garde97958720363871981-06-30
9White Rabbit blew.VoluptasMona Chaudhry97926392150472002-09-06
10I can't tell you.TemporeShashank Shenoy97882485398411998-01-27

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