I want to click the confirm button in the pop-up
I used xrmApp.Dialogs.ConfirmationDialog(true); but it doesn't work,can anybody help me?

I used the following code and it still doesn't work
IAlert alert = client.Browser.Driver.SwitchTo().Alert();
alert.Accept();
error information: OpenQA.Selenium.NoAlertPresentException: no such alert
I want to click the confirm button in the pop-up

I used xrmApp.Dialogs.ConfirmationDialog(true); but it doesn't work,can anybody help me?
I used the following code and it still doesn't work
IAlert alert = client.Browser.Driver.SwitchTo().Alert();
alert.Accept();
error information: OpenQA.Selenium.NoAlertPresentException: no such alert