Selenium C# How to handle Alert “Open Pick an app”?
问题 I am trying to get the Alert's Text using Selenium C# for Chrome But this alert seems different from a normal JavaScript Alert, using the code below returns an error exception: string text = driver.SwitchTo().Alert().Text; OpenQA.Selenium.NoAlertPresentException: no such alert Is this considered as an alert? Is there a way to handle it? 回答1: The dialog you're seeing is shown on the OS level so there's no way for you to see that in the DOM or use Selenium to interact with it. If you really