How to wait for alert presnted in Selenium |Explicit Wait Demo|Kbtutorials

preview_player
Показать описание
this tutorial on selenium we will discuss on how to wait for alert presented .Using explicit wait concept in selenium we can handle .

#Selenium,#HowToWaitForAlertPresented,#ExplicitWait
Рекомендации по теме
Комментарии
Автор

Thanks for the video. Am trying to practice click on alert message on naukri site . It has alert window share my location or later options. But am not able to use alert accept or dismiss. Can you suggest why it is not working.

nareshkeeplearing
Автор

Hi Bro,

WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
Alert alert =
alert.sendKeys("Abhay");
Thread.sleep(5000);
alert.accept();

why I am not able to insert text to my alert box. This is also a right way. right?

abhaypaul