A list of your recent invoices.
Sr No.Book NameBook GenreBook AuthorBook ISBNBook Published
1Alice. 'Oh, don't.QuasSohail Naruka97800376709712016-09-12
2Hatter, it woke up.VeniamSabina Wason97931360915471995-01-14
3She generally gave.ConsequunturJyoti Ahluwalia97964039323141988-10-18
4She did not like.VoluptasJaved Deo97860651166722007-09-26
5Dormouse went on.DoloresMaya Soman97904744388362015-12-04
6The Mouse gave a.OfficiaDamini Hayre97978658412131976-07-20
7The judge, by the.CorporisNutan Comar97972649641171970-10-13
8Queen's voice in.AmetOwais Kakar97816849235022002-06-09
9Duck. 'Found IT,'.DoloresSamir Banik97875317499811986-04-10
10Mock Turtle; 'but.QuisquamSrinivasan Mallick97923329978991979-05-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