A list of your recent invoices.
Sr No.Book NameBook GenreBook AuthorBook ISBNBook Published
1Alice, very loudly.CumLakshmi Dara97817539529141990-05-02
2Mock Turtle went.PraesentiumAlpa Bal97936655062461991-12-31
3King said, turning.IpsamAditi De97934713456332008-08-20
4Caterpillar. Alice.QuiMohanlal Koshy97881586851261999-05-08
5At last the Mouse.DoloremAlpa Shroff97855975818422023-12-07
6No, no! You're a.IustoMustafa Dhaliwal97918528844982009-07-26
7I shall fall right.QuiaHimanshu Mathai97925092397391973-01-20
8Only I don't want.VoluptatumSukriti Chaudhary97981335503701992-02-03
9Alice. 'I'm glad.NequeBishnu Bhattacharyya97836254606332008-05-22
10At this moment the.DeseruntGhalib Murty97930970996202012-07-26

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